News for hackers. Stuff that matters.
Re:Stepping Away from Sass by gitgud on Friday April 26, 2019 @09:29AM (#19757210)
Thank you, I'll wear the title of: leading critic of nesting proudly! disclaimer I'm not a hugely experienced programmer, but have done a few open source projects in Vue, React and am currently working on a series of Angular applications with a team at work.

In Vue and Angular component styles are automatically encapsulated at the component level by scoping (I think) so nesting isn't really necessary to target specific components. Angular also recently deprecated a method of breaking out of component styling and soon it will be completely removed from the framework.

Although I'm a critic I'm not totally against nesting, I just feel that SASS encourages it, so without discipline things can get very complex and fragile. One level of nesting is OK with me though I suppose...

Re:Stepping Away from Sass by rhizome on Friday April 26, 2019 @06:52PM (#19762459)
without discipline things can get very complex and fragile

In what way(s) is SASS different than anything else in this regard?

Re:Stepping Away from Sass by gitgud on Friday April 26, 2019 @08:54PM (#19763040)
True, this could be said for any system, but in this case SASS makes it easy to create nested relationships, whereas CSS makes it hard.