Live data from Hacker News

Shame.css

csswizardry.com

11–20 of 57 posts

Re: Shame.css

#11

Why is overflow hidden a hack?

He didn't say that it was bad by itself, but when used to hide something instead of fixing it:

> "overflow:hidden;" instead of working out what’s actually broken our layout

Re: Shame.css

#12

Why is overflow hidden a hack?

I think he was referring to those instances where you have something which as far as you can tell at the moment should be a certain height but inexplicably (at the moment, because you need it fixed now!) has this weird margin underneath it. With a quick look at the web inspector and your code you can't work out where it's coming from so in the interests of fixing a problem now, you might `overflow-y:hidden` it with the intent to come back later.

Re: Shame.css

#13
Kindly upload shame.css to a github.io page

This could make shame.github.io/shame.css available to all sites at no charge to the users...

Re: Shame.css

#15

Why is overflow hidden a hack?

overflow: hidden; is not a hack. It can do a lot of things which in his opinion are hacks (wtf). Suggested reading: http://colinaarts.com/articles/the-magic-of-overflow-hidden/

I think he was merely saying that it is a hack in the instance where a proper fix, without using overflow: hidden, COULD be found but in order to fix it NOW it was required to be used.

Re: Shame.css

#16
Kindly upload shame.css to a github.io page

This could make shame.github.io/shame.css available to all sites at no charge to the users...

Re: Shame.css

#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.

Re: Shame.css

#19

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…

On that line, I agree, but I think the delineation is more precisely between personal and socially induced "feeling bad". I feel like "shame" connotes a social, or at least, public feeling of ostracizing or sadness.

Regardless, I would agree that guilt.css would have less of a deterrent effect (think chocolate), and illustrate the premise more effectively.

Re: Shame.css

#20

Been doing this for years. I usually call the file ie8.css, though.

I usually hate to leave low content replies on this site, but this comment had me literally laughing out loud. Good show.
Post reply on HN