design patterns
-
Solved: TIL that class constructor overloads are possible – but I can’t get it right! Why?
Struggling with Python constructor overloads? Learn why `__init__` can’t be overloaded and discover three practical patterns to achieve the same goal. Continue reading
-
Solved: How to store functions with same parameter but different generic in an object?
Manage collections of TypeScript functions with differing generic types. Explore wrapper patterns and discriminated unions to maintain type safety and Continue reading
-
Solved: GitHub – doeixd/machine: Minimal TypeScript state machine library with compile-time safety through Type-State Programming where states are types, not strings.
Eliminate runtime state errors in TypeScript using Type-State Programming. Learn to build robust state machines with compile-time guarantees, not stri Continue reading