Hacker News new | ask | show | jobs
by jeroenhd 1717 days ago
The introduction of Typescript at my job has made developing code so much better.

There's probably no need for Typescript in simple projects that are less than a few hundred lines of code, but the immense spider web of dependencies this blog features becomes unmaintainable if you don't use proper type validation. Remembering what properties are in what objects in a Rube Goldberg machine like this are simply impossible.

I appreciate languages like Javascript, PHP and Python for their ease of use, but I don't think they're well suited for any complex project.

1 comments

I wouldn’t add python to that list as it supports decent typing (even though it’s not forced one you by default). When you disallow untyped methods and functions with mypy, the resulting code is quite clean and maintainable imo. And I wouldn’t call a language that’s used by probably the majority of all large web projects, including Instagram for example, in some way or other “not well suited for any complex project”.