I have been quoted saying:
I recently tweeted about a simple scenario I was investigating and was called a “fanboy” by my friend Chris DeMars.
TypeScript literally enables me to write a shit-ton of code that will not fail because of a typo or because I passed an incorrect argument to an unknown API….no.
TypeScript’s language services will come to the proverbial rescue. I can rest assured that if my TypeScript code successfully transpiles, that these errors cannot possibly exist. Instead I’m left to tend to the matter of actual development where I care more about implementation details, design-patterns and best practices. I can leverage Visual Studio Code to write reliable, robust and even object-oriented code.
I was curious how difficult it would be to define an
interface, then create a
interface. Finally, I would have a sub-class of the implementation that
If you’re not using TypeScript today, perhaps it is time to cave in and give it a go?! Take it from me, one of countless “fanboy’s”. TypeScript can literally do so much more than this, checkout another post I wrote on TypeScript here.