Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Naming Things (without notes)

Avatar for Pete Pete
April 12, 2018

Naming Things (without notes)

There's an old joke that goes, “The two hardest things in programming are cache invalidation, naming things, and off-by-one errors.” In this talk, we'll discuss the subtle art of naming things – a practice we do every day but rarely talk about.

Avatar for Pete

Pete

April 12, 2018

More Decks by Pete

Other Decks in Programming

Transcript

  1. Programs must be written for people to read, and only

    incidentally for machines to execute. “ Harold Abelson Structure and Interpretation of Computer Programs
  2. The ratio of time spent reading versus writing is well

    over 10 to 1. We are constantly reading old code as part of the effort to write new code. Making it easy to read makes it easier to write. Robert C. Martin “Uncle Bob”
  3. The ratio of time spent reading versus writing is well

    over 10 to 1. We are constantly reading old code as part of the effort to write new code. Making it easy to read makes it easier to write. Robert C. Martin “Uncle Bob”
  4. The ratio of time spent reading versus writing is well

    over 10 to 1. We are constantly reading old code as part of the effort to write new code. Making it easy to read makes it easier to write. Robert C. Martin “Uncle Bob”
  5. On Exactitude To my mind exactitude means three things above

    all: (1) a well-defined and well-calculated plan for the work in question; (2) an evocation of clear, incisive, memorable images; (3) a language as precise as possible both in choice of words and in expression of the subtleties of thought and imagination. - Italo Calvino