Hacker News new | ask | show | jobs
by hither_shores 1373 days ago
> Almost all bugs are logic bugs or inconsistent state bugs (thanks OOP!), almost none are type bugs.

With a sufficiently powerful type system (and typescript is basically the only non-functional language that makes the cut here) these aren't all that distinct. But even in codebases that don't take advantage of that power, this has not been my experience. I recently converted about ten thousand lines of legacy javascript to typescript at work, and discovered several hundred type errors in the process. State bugs also slip through pretty often, but we almost always catch pure business logic errors at code review.