▲ | hbrn 3 hours ago | |||||||||||||||||||||||||||||||
> Writing software without types lets you go at full speed. Full speed towards the cliff. Isn't it strange that back when Python (or Ruby) didn't even have type hints (not type checkers, type hints!), it would easily outperform pretty much every heavily typed language? Somehow when types weren't an option we weren't going towards the cliff, but now that they are, not using them means jumping off a cliff? Something doesn't add up. | ||||||||||||||||||||||||||||||||
▲ | dinosaurdynasty 3 hours ago | parent | next [-] | |||||||||||||||||||||||||||||||
It's because the nature of typing has changed drastically over the last decade or so, in well known languages, going from C++/Java's `FancyObject *fancyObject = new FancyObject()` (which was definitely annoying to type, and was seen as a way to "tell the compiler how to arrange memory" as opposed to "how do we ensure constraints hold?") to modern TypeScript, where large well-typed programs can be written with barely a type annotation in sight. There's also a larger understanding that as programs get larger and larger, they get harder to maintain and more importantly refactor, and good types help with this much more than brittle unit tests do. (You can also eliminate a lot of busywork tests with types.) | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||
▲ | IshKebab 3 hours ago | parent | prev [-] | |||||||||||||||||||||||||||||||
> when types weren't an option we weren't going towards the cliff Erm yes we were. Untyped Python wasn't magically tolerable just because type hints hadn't been implemented yet. | ||||||||||||||||||||||||||||||||
|