Writings & Videos

Writings & Videos

Method overloading in TypeScript

Some time ago, while building an API, I though that stacking `if` statements depending on function parameters leads to complex business logic. One of the solutions I found was "methods overloading", used mainly in Java (and C#).

  • typescript

Facade pattern in JavaScript

When building an application, we often face problems with external APIs. One has simple methods, other has them very complicated. Unifying them under one common interface is one of uses of the facade pattern.

  • design-patterns
  • javascript

Singleton in JavaScript

A quick look on singleton pattern and its implementation in JS

  • javascript
  • design-patterns