4 ms·
I've come to the conclusion that writing CSS is an anti pattern I don't think this is true. The biggest problem is people who write CSS do it as if they want C
by alwillis 5y ago
I've come to the conclusion that writing CSS is an anti pattern
I don't think this is true. The biggest problem is people who write CSS do it as if they want CSS to be something else and are trying to force it to be that.
Writing CSS using ITCSS (Inverted Triangle CSS) [1]
solves so many of the issues devs complain about it. It's simple: create layers in specificity order. Don't fight the cascade; make it work for you.
Writing good CSS isn't about getting the syntax right; it's about getting the architecture right [2].
Harry Robert's video does a great job of describing all the pain points ITCSS solves [3].
[1]: https://dev.to/carlillo/understanding-itcss-real-case-using-itcss-in-a-ghostcms-blog-1p9b https://dev.to/carlillo/understanding-itcss-real-case-using-...
[2]: https://www.xfive.co/blog/itcss-scalable-maintainable-css-architecture/ https://www.xfive.co/blog/itcss-scalable-maintainable-css-ar...
[3]: https://www.youtube.com/watch?v=1OKZOV-iLj4 https://www.youtube.com/watch?v=1OKZOV-iLj4
- madeofpalk 5y agoI think the problem is that just not that many people know how to write good css and good JavaScript. So I try and just require them to only know JS. I think it’s hard to hire lots (…hundreds) of developers who’s going to know CSS well enough to not screw it up.