Code Simplified
Documentation
Naming
- Avoiding Redundant Method and Variable Names
- When and When Not to Abbreviate Names
- Scope and Good Variable Naming
Values
Code Layout
- Horizontal and Vertical Code Formatting
- Code Indentation and Code Simplicity
- Grouping Statements by Concept, not by Variable
Code Duplication
Nulls
Control Flow
- Things to Avoid When Writing if Statements
- How to Simplify if Statements
- How to Lazy Load Without Using if Statements
- Being Positive When Writing if Statements
Methods and Functions
- Simple Return Statements and Values
- How Many Return Statements Should a Function Have?
- Clean Method Overloading
Classes
Patterns
- The Principle of One Operation Per Line of Code
- How to Implement a Simple Paging Model
- Factory Method Pattern
- The Util Class Antipattern
- Simplifying Your DAO Layer
- When to Choose Inheritance Over Composition
- When to Choose Composition Over Inheritance
- Proper Use of Nested Classes