Tagged “patterns”
-
TIL a bunch of new functional programming words patterns functionalprogramming image
It's so funny seeing developers re-invent functional programming paradigms. We really need to teach this stuff better.
-
TIL Cleaner data structures cleancode data patterns
Avoid unnecessary contexts, optional chaining, better error handling, avoid using flags
-
TIL Cleaner Functions cleancode functions patterns
tl;dr - Limit the number of arguments, Avoid executing multiple actions in a function, Avoid mutation, Avoiding non-negatives, Return Early
-
TIL a fancy word for auto-generating objects, A Factory Function programming patterns
So a factory function creates objects. That's all.
-
TIL the Singleton Pattern is hotly debated booksummary 97things patterns
Singleton Pattern is useful when exactly one object is needed to be used as a global instance to coordinate across the system. But it got problems.
-
TIL Observer Pattern patterns
The observer pattern defines a subscriber method, which will update every object that is subscribed to itself, making sure every subscriber gets the latest update.
-
TIL Singleton pattern patterns
Singleton is a creational design pattern that restricts class to have only one instance, while also creating a global access point to this instance. It is used when control access to a shared resource is needed.
See all tags.