3 ms·
> One thing i learned with css is that as a programmer you have to take it seriously. We generally don't consider it a programming language so we work on it the
by seanwilson 9y ago
> One thing i learned with css is that as a programmer you have to take it seriously. We generally don't consider it a programming language so we work on it the least
Agree with this. I've seen frontend work collapsing under its own weight because the CSS was kept in one huge file, you couldn't tell what was dependent on what, JavaScript was being used to alter the DOM based on classes and window resizes, there were around 20 different media query size widths, nothing was shared as variables...changing anything was terrifying and took forever.
You need to keep CSS modular, stick to naming conventions, reduce duplication and keep code concise; exactly like you do with regular programming languages. You can get far with CSS without any programming knowledge but at a certain scale you need to understand good coding fundamentals.