Skip to content
Cover of 97 Things Every Programmer Should Know

97 Things Every Programmer Should Know

Kevlin Henney

Read

  • Avoid technical debt. If you can’t, at least pay it off as soon as possible.
  • Know functional programming principles. Applying them brings a higher degree of referential transparency. This means that your functions does as their names indicate, and no more. This means little to no side effects.
  • False consensus bias: we think people think like us. We label them as ‘defective’ if they don’t.
  • Automating code standards
    • Make formatting a part of the build process.
    • Use static code analysis for unwanted antipatterns. Break the build if they are found.
    • Don’t only measure test coverage - check the results. Break the build if the test coverage is too low.
  • Before you refactor, read the existing code. Understand it. Understand its faults and its merits. It’s easy to think you can do better without doing so, but you may end up doing worse.
  • Be careful with throwing out code. It’s already battle tested if it’s in production. And it may contain fixes that you aren’t aware of.
  • Many small changes are better than one massive change.

Newsletter

Liked these notes? Get the next ones by email.

Subscribed

Search and commands

Keyboard shortcuts

Go to

gh Home
gb Writing
gp Projects
gl Books
gt Tools
ga About
gn Newsletter

Move

jk Next / previous item, or scroll
hl Left / right in the book grid
[] Previous / next section
du Half page down / up
gg First item, or the top
G Last item, or the bottom
↵ Open focused item
⌘↵ Open in new tab

Search

/ Search: books filter or palette
: Commands
⌘K Command palette
? This panel
esc Close, cancel, or leave a field