Hacker News new | ask | show | jobs
by pupppet 4631 days ago
> if you’re writing CSS professionally then there’s really no good excuse for not using a CSS preprocessor.

I want to compile my CSS about as much as I want to compile my grocery list. Preprocessors add a layer of complexity on to something that is already impossibly simple.

2 comments

Preprocessors help with organization. I have one partial for each of my legos, for example.

They also allow you to do things like cache busting or sprite sheet generation.

Personally, I think it's totally worth it.

If your CSS ‘impossibly simple’ then it sounds like you don't need it. Every tool has its place: writing HTML by hand is still worthwhile in certain situations. My article assumes you are writing CSS in a project of sufficiently large scale that how you approach architecting it is important enough to think about.
There are very few large scale projects that warrant it. Preprocessors save you a few search and replaces, little else. You're left with a stylesheet that is no longer recognizable to its author and can't be debugged via your browser's developer tools.