Home > Designing, Others > Building a newbie-friendly codebase

Building a newbie-friendly codebase

February 3rd, 2022 Leave a comment Go to comments

Pedro Santos suggests:

  1. Using naming conventions such that you can learn them once and apply them everywhere
  2. Unidirectional data flows. Make it easy to follow the app flow.
  3. 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.
  4. Using data structures. Like state machines.
  5. Testing everything
  6. Good code > good comments
  7. Avoiding acronyms
  8. Refactoring opportunistically

To Shared LinkPermalink on CSS-Tricks


Building a newbie-friendly codebase originally published on CSS-Tricks. You should get the newsletter and become a supporter.

Categories: Designing, Others Tags:
  1. No comments yet.
  1. No trackbacks yet.