Writing Code for Humans course notes part 2 - Naming
Naming matters #
“Is the class doing too much?
- It should be a noun
- It should be specific
- It should have a single responsibility
- Does having an instance of that class name make sense?
"What does this logic attempt to accomplish?”
Just have them own a self explanatory description
Rubber Ducking #
That eureka moment by talking to yourself.
Rhetorical questions out loud provoke the subconscious.