Using naming conventions such that you can learn them once and apply them everywhereUnidirectional data flows. Make it easy to follow the app flow.No magic numbers. I’d add they are even worse in CSS as it’s both the confusion they cause and how they are often tied to awkward or incorrect assumptions.Using data structures. Like state machines.Testing everythingGood code > good commentsAvoiding acronymsRefactoring opportunistically
To Shared Link — Permalink on CSS-Tricks
Building a newbie-friendly codebase originally published on CSS-Tricks. You should get the newsletter and become a supporter.