There are many reasons that a developer may want to stick with Javascript, instead of applying Typescript to their codebase. That last one is a bit tongue-in-cheek; but to some extend Typescript does force you to do more work (even if just a little), on top of regular Javascript. But let’s dive in and take […]
3 reasons to use classes over constructor functions in Typescript
Have you ever spent any time working in Typescript (or Javascript, really), and found yourself wondering if you should use constructor functions – which is commonplace in Javascript – or use Classes? Well, look no further! In this article we’ll be going over just three reasons for using classes instead of constructor functions when building […]
How to get better at Typescript Generics
Generics are hard! Or at least, many of us seem to think that way. It is a viewpoint I have seen shared many times over, partially implying that “Generics” is a concept, much more difficult than most other Typescript concepts. I’m here to tell you, it’s not! It’s easy for that all-too-common imposter syndrome to […]
Why ‘optional’ is powerful in Typescript
Coming from another language, feeling like the optional type is pointless? Like many others, perhaps you have also noticed that it is indeed possible to define a class or even an interface with a sub-interface. This prevents you from creating the object without defining all the properties, they’re not even nullable and that’s great! Let’s […]
Arguments for why a team should use Typescript instead of Python
Typescript is statically typed and has compile time checks, which significantly boosts developer experience. I realize that is as close to what the official docs says as it can get without me quoting it directly, but I honestly don’t think you need to say more than that! So you would use Typescript over python, for […]