TypeScript starts where JavaScript leaves off

As a software engineer, I learned that one measure of my success is whether or not the code I’ve written is in production and maintainable by others years after I moved on to other things. Self-documentation features of the programming language play a crucial role. The rapid adoption of JavaScript and Node.js in the enterprise revealed some flaws in the platform. While it is possible … Continue reading TypeScript starts where JavaScript leaves off

Node.js is a perfect enterprise application platform

In a July 2017 article, Node.js Foundation surveyed developers around the world asking them how they use Node.js. As it turns out, Node.js is taking over the world of business applications and the enterprise by storm and is rapidly supplanting platforms like Java which has to do with a few factors. JavaScript Node.js is a JavaScript platform. JavaScript is a simple language that in and … Continue reading Node.js is a perfect enterprise application platform

Design patterns in TypeScript: Factory

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

Design patterns in TypeScript: Chain of Responsibility

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 built an ultimate development environment for iPad Pro. Here is how.

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.

Singleton

Singletons in TypeScript

A singleton[1] 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