Joined May 2011
·
Posted to
Don't fight the CSS cascade.
over 1 year
ago
No. Compressing selectors goes directly against my point. Code order is an important part of the cascade. Order is meaningful. Letting a third-party tool adjust your code order based on nothing but selectors is a really bad idea, and could arbitrarily change the meaning of your code.
Posted to
Don't fight the CSS cascade.
over 1 year
ago
Hi Brad,
You're right. You also have me confused with the other Eric A. Meyer (meyerweb.com). Yes, there are two of us.
Cheers,
-e
Achievements
382 Karma
7,498 Total ProTip Views
Forked 100
Have a seriously badass project that's been forked at least 100 times
Kilo of Lemmings
Establish a space in the open source hall of fame by getting at least 1000 devs to watch a project
Octopussy
Have a repo followed by a member of the GitHub team
Python 3
Have at least three original repos where Python is the dominant language
Forked 50
Have a project with a thriving community of users that's been forked at least 50 times
Altruist
Increase developer well-being by sharing at least 20 open source projects
Forked 20
Have an established project that's been forked at least 20 times
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Python
Would you expect anything less? Have at least one original repo where Python is the dominant language
Lemmings 100
Write something great enough to have at least 100 watchers of the project
Forked
Have a project valued enough to be forked by someone else
Charity
Fork and commit to someone's open source project in need
Mongoose 3
Have at least three original repos where Ruby is the dominant language
Mongoose
Have at least one original repo where Ruby is the dominant language
Hauleth, I would never trust a compressor to re-arrange my cascade in ways I can't control.
Nerdfunk, Atomic is my favorite of those, and actually follows the cascade quite well. Both atomic design and the cascade move from general patterns towards more specific modules. SMACSS and BEM have a lot of good ideas (I often use naming conventions based on them), but it does seem like they're goal is to defeat the cascade rather than using it. No method is magic. Take what works for you, and leave the rest.