Author: Barguti

0

Javascript Modules and Variable Scopes

The Issue with Javascript Global Scope Anyone with some background in programming knows that global variables are bad. Javascript is no exception. In fact, managing variable scopes in Javascript is even worse. This is...

Events 0

Delegates, Events and Lambda Expressions in C# – Part 4

Events Events are a system generated notification indicating that some occurrence has happened within the application, such as mouse click or a key press. They are used to notify the application of the event...

Delegates 0

Delegates, Events and Lambda Expressions in C# – Part 1

What are Delegates Delegates are one of the most powerful features of the C# language. When implemented correctly, they allow developers to implement applications that are loosely coupled and easily scalable. However, they can...

C# Dependency Injection 0

Creating a Custom Inversion-of-Control Container

Dependency Inversion Principle and Inversion of Control The letter ‘D’ in the SOLID design principle stands for ‘Dependency Inversion Principle (DIP)’. The principle refers to the concept that one should depend upon an abstraction...

C# Command Pattern 0

Design Patterns: The Command Pattern

The Command Pattern is a popular pattern in object-oriented designs and it is commonly used in applications we interact with daily. The premise of this pattern revolves around bundling pieces of business logic into...

0

Design Patterns: Chain of Responsibility Pattern

The Chain of Responsibility pattern is a simple pattern used in object-oriented designs. It is not as common as some of the other patterns, simply because it only applies in certain situations. However, when...

C# null object pattern 0

Design Patterns: Null Object Pattern

The null reference pattern is a very simple and useful pattern. When implemented properly, it can greatly reduce the amount of code by eliminating all the checks and guards against null object references. The...

C# Builder Pattern 0

Design Patterns: The Builder Pattern

The builder pattern is a very popular pattern and appears regularly in object oriented designs. The main purpose for the builder pattern is to simplify the creation and the management of complex domain objects....