4 ms·
Static Type Checking. I used to think Node.js was the greatest thing ever. I won't bother explaining the benefits but suffice it to say I much prefer writing a
by arduinomancer 8y ago
Static Type Checking.
I used to think Node.js was the greatest thing ever. I won't bother explaining the benefits but suffice it to say I much prefer writing a server in Java compared to node.
I think it takes getting burned at least once for new developers to understand why a lot of seasoned developers like types.
Over time I've realized that there's a simple principle that applies to a lot of stuff in software and engineering in general:
"The bigger something is, the more structure it needs"
Writing a quick script or small application? Sure use Python, use Node, it doesn't matter, but as size increases, structure needs to increase to stop complexity from exploding.
It doesn't just apply to typing either. The bigger a project is, the more you'll want frameworks, abstractions, tests, etc.
If you look around this principle applies to a lot of things in life too, for example the bigger a company is, the more structure is added (stuff like HR, job roles, etc...).
As a corollary, the inverse of the principle is:
"Don't add too much structure to a small thing"
- pacala 8y agoGood insights. Modern platforms are neither full dynamic nor rigidly static, but gradual, https://en.wikipedia.org/wiki/Gradual_typing https://en.wikipedia.org/wiki/Gradual_typing. Start with a dynamic script, add typing as you go to strengthen the system. Notable mentions: Typescript, Python + mypy, C#, Dart.
- wmnwmn 8y agoYes! How much time have I wasted chasing some stupid error that "just worked" in perl which C or Java would have blocked at the get go. Just say NO to languages that try to guess what you were probably trying to do.
- tejinderss 8y agoYou could use Typescript with node.