DEV Community

Cover image for The Zen of Proverbs
Lane Wagner
Lane Wagner

Posted on β€’ Originally published at wagslane.dev

1

The Zen of Proverbs

20 rules of thumb for writing better software.

  • Optimize for simplicity first
  • Write code for humans, not computers
  • Reading is more important than writing
  • Any style is fine, as long as it's black
  • There should be one way to do it, but seriously this time
  • Hide the sharp knives
  • Changing the rules is better than adding exceptions
  • Libraries are better than frameworks
  • Transitive dependencies are a problem
  • Dynamic runtime dependencies are a bigger problem
  • The surface area of an API is a liability
  • Returning early is a good thing
  • Plain text is usually best
  • Compiler errors are better than runtime errors
  • Runtime errors are better than bugs
  • Tooling is better than documentation
  • Documentation is better than nothing
  • Configuration sucks, but so does convention
  • The cost of building a feature is its smallest cost
  • Types are one honking great idea -- let's do more of those!

Homage and references

Any color the customer wants, as long as it’s black.

-- Henry Ford (maybe)

πŸ‘‹ While you are here

Reinvent your career. Join DEV.

It takes one minute and is worth it for your career.

Get started

Top comments (0)

πŸ‘‹ Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay