Recent articles

TypeScript: Low maintenance types

Stefan Baumgartner

Written by @ddprrt

Posted in TypeScript

I write a lot about TypeScript and I enjoy the benefits it gives me in my daily work a lot. But I have a confession to make, I don’t really like writing types or type annotations. I’m really happy that TypeScript can infer so much out of my usage when writing regular JavaScript so I’m not bothered writing anything extra.

That’s how I write TypeScript in general: I write regular JavaScript, and where TypeScript needs extra information, I happily add some extra annotations. One condition: I don’t want to be bothered maintaining types. I rather create types that can update themselves if their dependencies or surroundings change. I call this approach creating low maintenance types.

Tidy TypeScript: Name your generics

Posted in TypeScript, JavaScript, Tidy Typescript

Tidy TypeScript: Avoid traditional OOP patterns

Posted in TypeScript, JavaScript, Tidy Typescript

Tidy TypeScript: Prefer type aliases over interfaces

Posted in TypeScript, JavaScript, Tidy Typescript

Tidy TypeScript: Prefer union types over enums

Posted in TypeScript, JavaScript, Tidy Typescript

TypeScript Docs for Preact.js

Posted in TypeScript

My new book: TypeScript in 50 Lessons

Posted in TypeScript, Books

Go Preact! ❤️

Posted in Preact, React

Want more? Check out all 154 articles
Coding soundtrack

The Good, The Bad, The Ugly

Cinema

Bryan Cantrill: Ethical Dilemmas in Software Engineering

Guide

TypeScript + React

Stay up to date!

3-4 updates per month, spam-free, hand-crafted. Our newsletter gives you links, updates on fettblog.eu, conference talks, coding soundtracks, and much more.