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.
If Statement vs Switch Statement
Switch statements execute one or more blocks of code based on an expression, whereas if statements execute a single block.
What Functionality Does the First Release of an Application Need
Your first release should only be what is absolutely needed and nothing more.
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.