Show:
Questions
Responses
Print
Principles
Parts of Speech
Scope Length
Code Rot
Name That
Author
100
Good class, method, and variable names should communicate this.
What is Intent
100
Classes and variables should be this part of speech.
What is a Noun
100
The longer the scope, the length of a variable name should be.
What is Longer
100
This occurs when a change in one place requires changes in other places.
What is Rigidity
100
"Clean code does one thing and does it well."
Who is Bjarne Stroustrup or C++ inventor
200
Giving a concrete name to an abstract class is an example of this.
What is Disinformation
200
Methods should be this part of speech.
What is a Verb
200
The longer the scope, the length of a method name should be.
What is Shorter
200
This refers to code that is like a house of cards.
What is Fragility
200
"Clean code should read like well written prose" (prose - natural flow of speech).
Who is Grady Booch - author of Object-Oriented Designs with Applications
300
The variable name of qdox is a “poor” example of this.
What is Pronounceable Names
300
Variable names should be derived from this.
What is a Class name
300
The longer the scope, the length of a class name should be.
What is Shorter
300
Code that’s hard to understand and does not communicate the author’s intent.
What is Opacity
300
"Clean code looks like it was written by someone who cares."
Who is Michael Feathers - author of Working Effectively with Legacy Code
400
p_numberarry, i_Animal, and m_name are all examples of this “poor” practice.
What is Encodings (Hungarian Notation)
400
Enums tend to be states or object descriptors so they are often this.
What is an Adjective
400
The more derived a class is the more of this part of speech will be used to define it. For example an Account <---- SavingsAccount.
What is Adjective
400
These kind of people are at fault for bad code.
What is Programmers
400
He said "The only way to go fast is to go well."
Who is - Bob Martin...aka - Uncle Bob