All Stories

Promise.any() – when you need the first to fulfill

In modern JavaScript we have several Promise combinators (Promise.all, Promise.race, Promise.allSettled). With the release of ES2021 you also got Promise.any — a lesser-used but powerful tool when you care about...

Rails 7.2 — Better eager loading with Zeitwerk

With Rails 7.2 a subtle but useful change landed: more efficient eager loading of autoload paths via the Zeitwerk code loader.

Array Map in Javascript

Array Map can be used to create a new array by calling a function on each element on a another array using .map() method. This is done declaratively alternate to...

Early return for more readability

By returning early from a method, we can reduce the nested conditions and make code more readable.

Pattern Matching and Array Destructuring - Functional Programming

Pattern matching is a powerful concept used with Functional Programing. It is actually a mechanism for checking a value against a pattern. A successful match can also deconstruct a value...

Using Safe Navigation while navigating chained objects

In object-oriented programming, the safe navigation operator (also known as optional chaining operator, safe call operator, null-conditional operator, null-propagation operator) is a binary operator that usually returns null if its...