- Using naming conventions such that you can learn them once and apply them everywhere
- Unidirectional 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 everything
- Good code > good comments
- Avoiding acronyms
- Refactoring 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.
from CSS-Tricks https://ift.tt/bw21qyM
via IFTTT
No comments:
Post a Comment