Category: Writing Grokkable Code
-
writing grokkable code
One topic I love coming back to is how to write grokkable code. ‘Grokkable’ in this sense means code that is easy to reason about, and hopefully intuitive to read. But that’s easier said than done. Writing code like that requires that we make careful, deliberate choices in the naming and structuring of our code.…
-
structuring tests for conciseness
I was pairing with a friend of mine the other night and we had an impromptu discussion about how to structure tests. Imagine that we’re building a birthday party hosting application. One of our business requirements is that the invite list can only be seen by the user who’s hosting the party. In addition, they…