Cathasaigh

Cathasaigh

I'm an author, writer, musician, and a software developer with over 17 years experience. All glory goes to God.
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
Jan
12
If Statement vs Switch Statement

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.
1 min read
Jan
05
What Functionality Does the First Release of an Application Need

What Functionality Does the First Release of an Application Need

Your first release should only be what is absolutely needed and nothing more.
3 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