Mild-Mannered Canadian Fury

Doug Stephen is Politely Peeved

shame.css


Mon, 22 Apr 2013 «permalink»

We all know that, no matter how hard we may try, sometimes we do need to use quick fixes, hacks and questionable techniques in our code. It happens, whether we like to admit it or not.

[…]

Whilst this isn’t ideal, we have to do it from time to time; all of us.

The real problem, though, is that we rarely go back and tidy these things up. They slip through the cracks, get ignored, go unnoticed, and stay for good. This we do not have to do.

The idea behind shame.css is that you keep a specific file, called potentially shame.css, where all of your hacky !importants and magic numbers and fiddly stuff go to live. This obviously works best with CSS preprocessors so you don’t have an actual 2nd stylesheet called “shame.css” linked on your sites.

Anyway. I like the idea. Good thoughts.