Removing Code Duplication Using Loops and Collections
Think in terms of data and not operations
What Type of Comment Should You Use, and How Do You Format Them
Comments come in different forms, but when should you use each form?
Simplifying Magic Literals
Literals should be either variables or constants.
How to Implement a Simple Paging Model
Paging complexity centers around the first index to load.
Factory Method Pattern
A factory is a powerful pattern used for controlling object creation.
Things to Avoid When Writing if Statements
Avoiding these things will help further simplify your if statements.
How to Simplify if Statements
Writing simple if statements is all about thinking in concepts.
How to Lazy Load Without Using if Statements
You can eliminate the if statement when lazy loading by mirror lazy loading in other languages.
Being Positive When Writing if Statements
Being positive first when writing logic will make it easier and faster to understand.
The Util Class Antipattern
Utility classes can make your code more complex and harder to read.