Code Simplified

Best practices on how to simplify code.
Nov
15
Clean Constructor Overloading

Clean Constructor Overloading

Clean constructor overloading is done either with a primary constructor or through static factory methods.
3 min read
Nov
14
Clean Method Overloading

Clean Method Overloading

Clean method overloading is done by understanding the two different use cases for method overloading.
2 min read
Nov
07
When and When Not to Abbreviate Names

When and When Not to Abbreviate Names

Don't abbreviate names unless the abbreviate name is more common than the non-abbreviate name.
2 min read
Nov
06
Scope and Good Variable Naming

Scope and Good Variable Naming

Considering the scope of the variable when naming them can help you better name variables.
3 min read
Oct
29
Proper Use of Nested Classes

Proper Use of Nested Classes

Nested classes are used to encapsulate a class.
2 min read
Oct
11
When to Choose Composition Over Inheritance

When to Choose Composition Over Inheritance

Choose composition for code reuse that doesn't require a class hierarchy.
3 min read
Oct
10
When to Choose Inheritance Over Composition

When to Choose Inheritance Over Composition

Inheritance is best used for code reuse when modeling data.
3 min read
Aug
30
The Principle of One Operation Per Line of Code

The Principle of One Operation Per Line of Code

A line of code should do one operation.
3 min read
Aug
23
Code Indentation and Code Simplicity

Code Indentation and Code Simplicity

This one coding standard will naturally simplify your code.
2 min read
Apr
12
Simplifying Logging in Test Code

Simplifying Logging in Test Code

Logging is for production code and shouldn't be used in test code.
3 min read