Jacob Thurman – I came across a great blog post yesterday by Robert Nystrom, Naming Things in Code. Robert goes through a whole bunch of examples and comes up with some rules for how things should be named. Here’s a an oversimplification: Type names should be nouns Functions that do things should be verbs Functions that return booleans should be questions etc… I don’t want to reproduce his article here. I want you to read his article. I’ve thought for a long time that the way things are named in code is one of the most important decisions a programmer can make. I’ve also ...
Visits by Source
Users who voted for this posting