News for hackers. Stuff that matters.
Re:Csscss: a CSS redundancy analyzer that analyzes redundancy by pindi on Wednesday April 10, 2013 @01:06PM (#5526459)
It seems like when run on SCSS mode, it expands mixins before running the redundancy check. For instance, two of my selectors both include three of the same mixins, which end up expanding into 23 rules, and CSSCSS reports 25 shared rules between them. (Further inspection confirms that exactly 2 normal rules are shared.)

I would think that using mixins should also count as having eliminated redundancy. A simple solution would be to ignore them, or more ideally the redundancy check could treat mixins just as a normal rule, so that it could detect using the same set of mixins in multiple places as redundancy.

Re:Csscss: a CSS redundancy analyzer that analyzes redundancy by zmoazeni on Wednesday April 10, 2013 @01:16PM (#5526527)
This has come up a couple times. I wouldn't mind this topic moving it to github so the conversation doesn't get lost. And others can contribute to it long after this gets buried on HN.

My initial opinion is that even though your SCSS code is consolidated, the resulting CSS code is still duplicated all over the place. To me, that is a code smell. Particularly when I need to debug from the web developer tools.

Re:Csscss: a CSS redundancy analyzer that analyzes redundancy by pindi on Wednesday April 10, 2013 @02:24PM (#5527003)