Building a Newbie-Friendly Codebase

Pedro Santos has published a set of suggestions for making a codebase easier for newcomers to work in.

  1. Adopt naming conventions that can be learned once and applied everywhere.
  2. Use unidirectional data flows, so the app flow is easy to follow.
  3. Avoid magic numbers — and note that they are even worse in CSS, where they cause confusion and are often tied to awkward or incorrect assumptions.
  4. Use data structures, such as state machines.
  5. Test everything.
  6. Prefer good code over good comments.
  7. Avoid acronyms.
  8. Refactor opportunistically.