3 ms·
I just think you are wrong. It mostly takes mindshare from rookie developers that are insecure and need to cover all their bases lest they be called bad at bein
by ivape 1y ago
I just think you are wrong. It mostly takes mindshare from rookie developers that are insecure and need to cover all their bases lest they be called bad at being a developer. Many grow out of this insecurity and see things for what they are. TS is OKAY, but it's not worth my time.
- IshKebab 1y agoWell I'm objectively correct about it preventing bugs. This is one of the few things that has been fairly conclusively shown by studies. As for productivity, maybe it doesn't matter on tiny projects or short-lived one-man projects, but for anything else I don't see how you can argue it. You basically can't refactor reliably without static types, you can't navigate the codebase quickly without static types, and it makes it more difficult to understand other people's code without static types. Sure it might take slightly longer to write in the first place but that is easily outweighed by all those other benefits. Like, by an order of magnitude. It sounds like you are one of those "well I don't make mistakes" developers.
- ivape 1y agoYou basically can't refactor reliably without static types, you can't navigate the codebase quickly without static types, and it makes it more difficult to understand other people's code without static types. What a great interview test. I’d absolutely not hire someone that can’t do that. It also doesn’t make any sense. That’s like saying entire codebases without types can’t be worked on. Huh? Those are basic things you can do in any language. This Typescript anointing has got to die. It’s lame, and most of you overuse it even when it’s appropriate.
- IshKebab 1y agoI said reliably. Without static types in large codebases you are likely to miss things. E.g. you rename a variable but don't catch everywhere you should have updated it. Don't say "but tests".
- andersmurphy 1y agoIf your data model is open and not closed you only need to change the location you are changing. This is how the internet works. Types that don't support this model actively hinder refactoring.
- brazukadev 1y agoIfv you include the artificial restriction of not "use the correct tool/tests", then maybe you are right.
- brazukadev 1y agoCare to share one of your projects with zero bugs?