Git on USB Stick


Sometimes within your development team, you might want to create a new or port an existing local Git repository to a USB drive/stick and share it. In such cases, what you need is to create a bare repository so that all developers can collaborate and push their changes to it.

Read More

Share Comments

Visitor Pattern

Design Patterns Overview

Definition

Define an Operation for One Family of Classes, Push Its Various Implementations to Another Family of Classes. The Former Is Called ‘Visitable’ or ‘Element’ and the Latter Is Known as ‘Visitor’.

Read More

Share Comments

Memento Pattern

Design Patterns Overview

Definition

Create a Restore Point to Revert Object State. Store an object’s state at some point in time in order to restore it later.

Read More

Share Comments

Mediator Pattern

Design Patterns Overview

Definition

Provide an Interaction-Contract object Called Mediator for a Group of Colleagues/components. Centralize Communications Among Colleagues/components Without Them Knowing Even About Each Other’s Existence. In Other Words, Centralize Complex Communications and Control Between Related Objects.

Read More

Share Comments

Interpreter Pattern

Design Patterns Overview

Definition

Map, Translate or Interpret a Given Data Into Different Formats. It Converts One Representation of Data to Another; Very Much Like a Language Interpreter.

Read More

Share Comments

Chain of Responsibility Pattern

Design Patterns Overview

Definition

Pass a Product to a Chain of Processors and Each Will Do Its Job.

Read More

Share Comments

State Pattern

Design Patterns Overview

Definition

Change the Behavior According to the State. Encapsulate State-Based Behaviors and Use Delegation to Switch Between Behaviors.

Read More

Share Comments

Proxy Pattern (Protection Proxy)

Design Patterns Overview

Definition

Limit Access to a Sensitive Class’s Properties and Behaviors. Wraps an Object In Order to Control Access to It.

Read More

Share Comments

Replacing Conditionals with Patterns

Since switches and if-statements are the most common control flow statements in many languages and are widely used throughout the code, removing the unnecessarily used ones will have a huge impact on the general readability of the code.

Read More

Share Comments

Flyweight Pattern

Design Patterns Overview

Definition

Improve Performance by Sharing Objects Instead of Creating Them.

Read More

Share Comments