typescript

21st February 2023

7 Tips That Make You a Better Typescript Programmer

Learning Typescript is often a rediscovery journey. Your initial impression can be pretty deceptive: isn’t it just a way of annotating Javascript, so the compiler helps me find potential bugs? Better Typescript Programmer Although this statement is generally true, as you move on, you’ll find the most incredible power of the language lies in composing, inferring, and manipulating types. This article will summarize several tips that help you use the language to its full potential. #1 Think in {Set} Type is an everyday concept to programmers, but it’s surprisingly difficult to define it succinctly. I find it helpful to use Set as a […]
17th May 2022

Useful TypeScript and JavaScript shorthands to know

JavaScript and TypeScript share a number of useful shorthand alternatives for common code concepts. Shorthand code alternatives can help reduce lines of code, which is something we typically strive for. In this article, we will review common TypeScript and JavaScript shorthands. We will also explore examples of how to use these shorthands. JavaScript and TypeScript shorthands Using shorthand code is not always the right decision when writing clean and scalable code. Concise code can sometimes be more confusing to read and update. It is important that your code is legible and conveys meaning and context to other developers. Our decision to […]
24th May 2019

TypeScript 3.5 Fixes ‘unbearably slow’ Type-Checking Bug

New release candidate addresses regression in TypeScript 3.4 that impacts build times and editor operations TypeScript 3.5, the latest version of Microsoft’s popular typed superset of JavaScript, is now available in a release candidate. The update is set to add optimizations for type-checking, addressing a serious speed regression introduced with the previous release. With TypeScript 3.5, Microsoft’s TypeScript development team focused on optimizing code paths and stripping down certain functionality to make TypeScript faster. Compile times have fallen compared to TypeScript 3.4; code completion and other editor operations should be “snappier” as well, the TypeScript developers noted. In making these […]