499 error and setting nginx timeout for specific paths on kubernetes ingress

Timeout, but where?! Some time ago I had a situation, where Kubernetes cluster thrown an unexpected timeout in faces of my clients. Situation a bit awkward, since timeout doesn’t mean nothing good…

How TypeScript guards react components

Some time ago we discussed discriminated unions as a super-feature of TypeScript which helps in keeping business rules straight in the code. Here is how we can transform this idea into React ecosystem…

Here’s why I’m not excited about JavaScript types

A few weeks ago, the news that JavaScript would finally have its type system came like a bolt from the blue. A team whose members are, among others, responsible for creating TypeScript prepared a…

How union let me sleep tight

Discriminated Union is my one of the most favorite mechanisms delivered by TypeScript. Maybe you are not aware, but unions are perfect for modeling business domain inside your application. In this…

json-server, best friend of solitude startuper

Prototyping idea is a crucial part of building application. You can check if your product works and meet future clients requirements. It’s easy to handle, when you are in a big team, with many…

Sequelize - order by joined models

Sometimes we want to get more data from the database at once. Sequelize gives us such possibility by including models. But what if we want to do something more with these joined models? Let’s take a…