When to Use a Private Constructor – Object-Oriented TypeScript

In this blog post, I explain how using a private constructor helps to force a single way to create an object, and why it’s most commonly used with the Factory Pattern. Read more

Similar

Branch by Abstraction Example (TypeScript)

The strangler pattern is useful for scenarios where you can intercept the calls at the edge of your monolithic application. But what do you do in a scenario where the functionality you're trying to extract is not called directly from the outside, rather i... (more…)

Read more »