What is “The Boy Scout Rule”?
Leave the campground cleaner than you found it.
Variable naming conventions
Function coding conventions
How should long switch statements in business logic be fixed?
What are the problems with comments?
When are comments good?
What are the problems with boolean parameters?
The usually indicate that the method is doing more than one thing, thus it should be split into two independent methods.
What are some of the most importand error handling rules?
What are the three laws of unit testing?
What are some of the best practices of unit testing?
What is the F.I.R.S.T. rule?
Best practices of writing classes.
What is cohesion in a class?
Cohesion indicates how many variables of a class is being manipulated by its methods. A class is maximally cohesive if its variable is used by all its methods. In practice it is usually not possible and advisable to create a maximally cohesive class.