Ali Spittel DEV

Extreme makeover: code edition

Ali Spittel lays out 7 excellent tips for writing cleaner code.

  1. Use descriptive naming
  2. Functions should do one thing well
  3. Comments should tell the "why"
  4. ...

It's imperative to first learn rules like these, follow them for awhile, and then (and only then) you will be equipped to know when (and when not) to break the rules.

0:00 / 0:00