Live data from Hacker News

Shame.css

csswizardry.com

31–40 of 57 posts

Re: Shame.css

#31
post #17

We have the same thing in Javascript, we call it 'hacks.js'. That's the place you go when things are broken and you're not yet ready to pay down tech debt. Hacks.css sounds nicer than shame.

I'd go with dirtyha.css

Re: Shame.css

#33

Unfortunately I think most of my CSS would deserve to be in shame.css Related: is there a good short "remedial CSS for programmers" book or something?

I'm just going to leave here some of my CSS Good Practices bookmarks:

* https://github.com/necolas/idiomatic-css

* http://coding.smashingmagazine.com/2009/04/08/from-table-hel...

* http://engineering.appfolio.com/2012/11/16/css-architecture/

* http://www.stubbornella.org/content/2011/04/28/our-best-prac...

Re: Shame.css

#34

Pedantry: can we call it "guilt.css" instead? In psychological literature, guilt is defined as the "I did something bad" emotion, shame is the "I am bad" emotion. The crucial difference between them is that guilt can be fixed by making amends. That seems like exactly the mindset you want to encourage with this: guilt.css implies that you feel guilty about all the hacks you have and want to make amends, while shame.cs…

I understand it differently: they are ashamed of the code (its ugly), but not feeling guilty, since there are no alternatives at the moment...

Re: Shame.css

#36
Or you could just use a comment.

I know I can search my codebase for HACK and see all of my greatest embarrassments.

Re: Shame.css

#38
This is a great idea. Too bad code can't really be isolated this way. I feel that marking a hack is one of the few legitimate uses for comments in code:

//TODO HACK HACK HACKITY HACK

Re: Shame.css

#39

This is a great idea. Too bad code can't really be isolated this way. I feel that marking a hack is one of the few legitimate uses for comments in code: //TODO HACK HACK HACKITY HACK

few legitimate uses for comments in code

You mean comments in CSS specifically?

Post reply on HN