News for hackers. Stuff that matters.
Re:TypeScript 4.1 by cjonas on Friday November 20, 2020 @12:40AM (#25157620)
I've actually come to enjoy writing types as much, if not more, than the code itself.

Part of it is just being able to write code that is extremely dynamic, yet still provides an amazing developed experience.

Re:TypeScript 4.1 by reflectiv on Friday November 20, 2020 @10:11AM (#25161162)
I especially love typescript when it comes to refactors or API changes...on my team we strictly type as much as possible and it has made refactors and API changes so much easier and fail-proof.

For example if an API change occurs on backend, the first step is to make the change to the request/response typings in the frontend...from there the source code will light up with all the errors you have to fix. I can just click through each one in VS Code and fix them, then re-run tests to validate...love it.