Writings & Videos

Writings & Videos

Default styles in Storybook with Styled Components

Recently I was building a Storybook for my new project. While I enjoy the encapsulation it provides, global styles such as resets are still a common thing. Even though it doesn't change much, I still wanted to have them in my every Story.

  • styled-components
  • react
  • javascript
  • storybook

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