A Factory hides the details of instantiating objects within a class hierarchy. The client provides some information regarding the object it needs. Based on that information the factory determines which class of objects to instantiate and how to go about it. Factories are typically Singletons but don’t necessarily need to be, and it depends on the implementation needs. Factories is very common. Anytime you are … Continue reading Design patterns in TypeScript: Factory
In event-driven systems messages produced by one object can be handled by one or more other objects. None of the objects need to know of one another – all they need to share is a common mechanism for distributing messages. Messages are sent from one object to another making them part of a chain. This pattern is called “Chain of Responsibility.” Chain of responsibility in … Continue reading Design patterns in TypeScript: Chain of Responsibility
I’ve been trying for a long time to come up with a setup for using my iPad Pro as a development tool. There is a ton of options out there, mostly in the form of text editors and terminal emulators or some combination thereof. None made me happy. I want a full IDE, with no compromises. I see no reason why iPad Pro cannot be … Continue reading I built an ultimate development environment for iPad Pro. Here is how.
A singleton is a pattern that guarantees there is a single instance of an object in the system. A singleton can maintain a state which is shared across the entire system. Singletons abstract their internal workings from the rest of the system. Singletons are common in business applications. They help model real-life business processes that involve shared resources. Singletons in TypeScript In Node.js – and … Continue reading Singletons in TypeScript
In May 2017, IDG has laid off a good chunk of its publishing staff after the acquisition by a Chinese investment firm. In a way, that was the inevitable. Computerworld, an IDG publication, had its last printed run in 2014 and they struggled to stay afloat as a digital edition. The age of glossy computer magazines is pretty much over. It just so happens that … Continue reading The technology publishing industry needs to transform in order to survive
On June 16th, Amazon announced they would acquire Whole Foods in what to me seems like the most exciting M&A event of the past couple of years. As a long time customer of Amazon Prime and Amazon Fresh, I couldn’t be more excited at the possibilities. Of course, every other retailer is terrified. There are some ways the retailers can react to competition. One way would … Continue reading Rather than innovating Walmart bullies their tech vendors to leave AWS