3 ms·
I've been programming for a long time and TypeScript has been a slam dunk for me. It makes programming large web apps actually considerably more manageable. Un
by pixie_ 10y ago
I've been programming for a long time and TypeScript has been a slam dunk for me. It makes programming large web apps actually considerably more manageable.
Unfortunately I spend a lot of time defending the merits of static typing to my co-workers. At the same time they're going on about how unit tests are important, while static typing eliminates entire classes of errors and they don't get it for some reason. Unit tests while important don't prevent type errors, and if you tried using them for that you'd have orders of magnitude more tests to write.
I feel like I'm taking crazy pills having to defend static typing while every dynamic language I've used for any project of any considerable size has been a complete nightmare to manage. At this point I feel like a lot of new coders coming out of school just haven't written anything large enough yet and maybe that's why they don't see the point.
- bsaul 10y agoDon't worry, it's all coming to an end. All the trending languages either are statically typed ( go, swift, rust), or provide some kind of type hinting (elixir) to make up for it. Unit testing is great, but it doesn't provide autocompletion, or help you analyze your codebase before a refactoring.
- devuo 10y agoI feel your pain, intensely.
- nojvek 10y agoTypescript big value for me is code completion and refactoring. Their language server is like running the compiler on every keystroke. The squigglys are almost the same as what the compiler would say. When third party libs have dts files, it's a joy to use them.
- Yhippa 10y agoThe longer I work on bigger and complicated projects the more I'm thankful for static typing. I feel that static typing speeds up my development greatly and when I do have problems they're very easy to isolate and reason about. The tooling that enables is a huge speed boost as well.