News for hackers. Stuff that matters.
Re:Write code that is easy to delete, not easy to extend by d0m on Sunday February 14, 2016 @12:27PM (#11099066)
Totally agree. One thing that I still find really hard to maintain/delete is CSS code. More and more I feel like it should be included with components rather than in a plain .scss or .css files. It feels good to be able to delete a component knowing that there isn't css crap left behind..
Re:Write code that is easy to delete, not easy to extend by cjcenizal on Sunday February 14, 2016 @02:38PM (#11099631)
To solve this issue I keep component-specific .scss files alongside each component's JS file, in a component-specific folder. A root index.scss file imports all of the components' .scss files.

Coupled with BEM, this also helps prevent component style interdependencies.