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)
Good idea, posted my reply: https://github.com/zmoazeni/csscss/issues/25
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.