Stepan Zharychev

Stepan Zharychev

Programming Patterns. Strategy, Observer, Iterator

Programming Patterns. Strategy, Observer, Iterator

Use when you want to select between different algorithms in the process of task resolving. So basically all that you need to realize this pattern are strategies (each of them in the separated component/class, but with the same interface) and strategy selector (decides what strategy is more effective at the moment and uses it).

Programming Patterns. Facade, Adapter, Decorator

Programming Patterns. Facade, Adapter, Decorator

The main idea is a creation of simplified interface to application functionality. Basically, when you create components of your application the interfaces of these ones can be really complicated for outside usage. So to resolve this problem and provide easy-to-go solution, you can use Façade.

Programming Patterns. Introduction

Programming Patterns. Introduction

Patterns are the part of programming that needs to be studied regardless of the specific language, so that doesn’t matter what exactly you use: C, C++, C# or JavaScript, each of them uses some of the programming patterns, but there is the most interesting point how to implement the concept according to language specifics.