Guard Clause

Guard Clause

Complexity in code makes it harder for to understand what the code is doing. The smallest unit of our code tends to be the function or method. You should be able to look at a given function and quickly determine … Continued
Design Patterns

Design Patterns

Design patterns are common approaches to solving similar problems. The 1995 book Design Patterns, by the so-called Gang of Four (GoF), describes 23 patterns. Pluralsight’s design patterns library includes 32 different¬†patterns, including most of the original GoF patterns. Some design … Continued
Builder Design Pattern

Builder Design Pattern

The Builder design pattern is a creational pattern, similar to the Factory pattern (Factory Method, Abstract Factory). Unlike the Factory pattern, which typically only offers one method for creating an object, the Builder pattern offers multiple methods that can be … Continued