Builder Pattern

Design Patterns Overview

Definition

Simplify Creation of Objects Which Need Many Properties for Creation.

Read More

Share Comments

Singleton Pattern

Design Patterns Overview

Definition

Making Only One Object of a Class to Be Available for All. Making Only One Object of a Class to Be Available for All.

Read More

Share Comments

Abstract Factory Pattern

Design Patterns Overview

Definition

Group Factories That Produce Similar Products. Choose a Factory at Runtime, in Order to Create Different Objects of a Certain Category.

Read More

Share Comments

Factory Method Pattern

Design Patterns Overview

Definition

Having Decisions of object creation to be made at Runtime. Create Objects Without Knowing the Specific Type.

Read More

Share Comments

Observer Pattern

Design Patterns Overview

Definition

Receive topic updates from publisher by subscribing to them. Objects/subscribers are notified of an event when it happens or a topic when it’s published.

Read More

Share Comments

Strategy Pattern

Design Patterns Overview

Definition

Adding Behavior at Runtime. Strategy pattern encapsulates Interchangeable Behaviors and Uses Delegation to Decide Which One to Use.

Read More

Share Comments

Design Patterns Cookbook


Even after reading the original GoF book and “Head First Design Patterns” (which is one of the best book in this field), as well as many articles, I still found it very daunting and hard to grasp the gist of each pattern and apply the most suitable one for a certain scenario. All the examples and UML diagrams do help understanding the pattern, but deep down, developers are far better at reading code; specially code snippets.

Read More

Share Comments

Better Naming Practices

Since code is read many times more than is written, then code readability becomes of extremely high importance among developers. Naming among other readability factors becomes the coder’s crucial task that needs more attention and scrutiny.

Read More

Share Comments