Programming

SOLID

WHAT ARE THE SOLID PRINCIPLES? The SOLID Principles are the five basic principles that tell you how to write good object-oriented code. They were proposed by the famous American programmer Robert Martin. He is also one of the makers of the Agile Manifesto. “S” – Single Responsibility Principle By definition, this is simply the principle …

SOLID Read More »

Stub / Mock / Spy

STUB, MOCK, SPY In computer programming and computing, programmers use a technique called automated unit testing to improve software quality. In order to increase the isolation and independence of a unit test, so-called test doubles are used that actually “fake” dependent objects, but are not them. An example of this type of test double can …

Stub / Mock / Spy Read More »

Strategy Pattern

STRATEGY This pattern belongs to the group of behavioral patterns. In other words, those that deal with the structure of processes and activities in a broader perspective. It is characterized by the fact that it encapsulates the process. It divides it into smaller modules that contain elements of the problem solution. The strategy manages these …

Strategy Pattern Read More »

Decorator Pattern

DECORATOR This pattern belongs to the group of structural patterns. Decorators provide flexibility similar to that of inheritance, but in return offer significantly expanded functionality. This pattern expands the structure without interfering with the existing objects. It is helpful when we need to dynamically extend an object. What does it mean dynamically? This means that …

Decorator Pattern Read More »

Builder Pattern

BUILDER It is one of the design patterns included in the group of construction patterns. The process of creating an object is separate from its real representation here.  However, there are two popular variations of this pattern which can lead to confusion in its understanding. The first variety was described by the authors of the …

Builder Pattern Read More »