Hacker News new | ask | show | jobs
by earcaraxe 3250 days ago
Look at mister test driven development over here. Hey everyone this guy writes unit tests.

I'm joking here but I think that a lot of people ignore basics like writing unit tests, and that statically typed languages will break a lot more quickly and predictably for people who are lazier, since it enforces structure.

However, I agree with you. Also I think that the people who really push for static typing are the kinds of people who already would write unit tests.

1 comments

We do. Most of our projects have 80%+ unit test coverage and decent amount e2e/acceptance tests.

The problem with TypeScript is that in most codebases you will need to disable useful type-checks. Without strict null checking, you will only catch trivial errors. Additionally, you will interface with a lot of JS code that do not provide typings.