Easiest way to undestand Monad with Javascript In functional programming, monads are one of the most pattern for structuring code. But if you've just started exploring the world of funct…
React Reducer with Algebraic Data Types (ADTs) and TypeScript React Reducer with Algebraic Data Types (ADTs) and TypeScript In modern React applications, managing state effectively is crucial, especially …
Understanding the Abstract Factory Pattern in JavaScript In software design, patterns are solutions to common problems. Among these, the Abstract Factory Pattern stands out as a powerful method for cre…
Composition Over Inheritance: A Better Way to Build Flexible Code When writing a program, one of the fundamental questions developers face is how to structure their code for maximum flexibility and maintainabil…
How to read a book in a language you're learning Reading involves many small skills that we naturally use in our native language. For example, we quickly read to get the main idea or look for …
Melihat Puasa Dari Sudut Pandang Terdalam Spiritualitas Sudah lama sejak terakhir kali saya berbagi catatan kecil di blog sederhana ini, dan dengan cepatnya kita memasuki tahun 2024. Saat kita memasu…
Function Returning Function - FP Series Up to this point, we've explored how we can define functions in much the same way we define other data types, like numbers or strings. W…
Passing Function as Arguments - FP Series Now that we've explored several ways to treat functions just like other data types such as numbers or strings, let's delve into how we …
Functions as Data part 2 - FP Series In this post, we'll explore another fascinating aspect of first-class functions. Just like you can create lists of other data type…
Functions as Data part 1 - FP Series In a previous posts, I talked about how functional programming treats functions as "first-class citizens." This essentially means that…