Code Simplified

Best practices on how to simplify code.
Mar
22
Removing Code Duplication Using Loops and Collections

Removing Code Duplication Using Loops and Collections

Think in terms of data and not operations
3 min read
Mar
15
What Type of Comment Should You Use, and How Do You Format Them

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?
3 min read
Feb
02
Simplifying Magic Literals

Simplifying Magic Literals

Literals should be either variables or constants.
3 min read
Jan
26
How to Implement a Simple Paging Model

How to Implement a Simple Paging Model

Paging complexity centers around the first index to load.
2 min read
Jan
19
Factory Method Pattern

Factory Method Pattern

A factory is a powerful pattern used for controlling object creation.
2 min read
Dec
29
Things to Avoid When Writing if Statements

Things to Avoid When Writing if Statements

Avoiding these things will help further simplify your if statements.
3 min read
Dec
22
How to Simplify if Statements

How to Simplify if Statements

Writing simple if statements is all about thinking in concepts.
2 min read
Dec
15
How to Lazy Load Without Using if Statements

How to Lazy Load Without Using if Statements

You can eliminate the if statement when lazy loading by mirror lazy loading in other languages.
2 min read
Dec
08
Being Positive When Writing if Statements

Being Positive When Writing if Statements

Being positive first when writing logic will make it easier and faster to understand.
2 min read
Dec
01
The Util Class Antipattern

The Util Class Antipattern

Utility classes can make your code more complex and harder to read.
3 min read