JavaScript58

Check out the latest posts
Aphinya Dechalert

A Comprehensively Short Guide to let, var and this

Back in September, I wrote this story [https://medium.com/madhash/how-variable-types-can-determine-the-life-or-death-of-cats-in-javascript-b1cd2f50a8b1] on var, let and the keyword this However, some people still found it hard to distinguish between the difference — or rather, they wanted something that was more visually accessible. So I decided to change the format a little...

Aphinya Dechalert

Understanding JavaScript Adapter Pattern

Traditionally, structural patterns are described as the thing that helps simplify the process of object composition. Its purpose is to help identify the relationship between different objects, making sure that if something changes within the system, it doesn’t force the entire system to change with it. Let’s begin...

Aphinya Dechalert

Understanding JavaScript Bridge Pattern

The bridge pattern is another ideological abstraction that keeps the boundaries of your code clean and separated. While it has similarities with the adapter pattern, it is not quite the exact same. The bridge pattern can be seen as an extension of the adapter pattern — or commonly known as the...

Aphinya Dechalert

Understanding JavaScript Composite Patterns

A composite pattern deals with the complexity of how objects are related to one another. According to the original definition, [a composite pattern] allows you to compose objects into tree structures to represent part-whole hierarchies Design Patterns: Elements of Reusable Object-Oriented Software (Addison-Wesley Professional Computing Series) But what does this...

Aphinya Dechalert

Understanding JavaScript Decorator Patterns

The decorator pattern works by extending an object’s behavior without changing the original object itself. What exactly does this mean? Imagine that you’ve just bought yourself a new phone. However, carrying the phone around in its current form feels risky. What if you drop it? What if it...

You’ve successfully subscribed to matcha.fyi
Welcome back! You’ve successfully signed in.
Great! You’ve successfully signed up.
Success! Your email is updated.
Your link has expired
Success! Check your email for magic link to sign-in.