Hacker News new | ask | show | jobs
by tom-jh 2487 days ago
Seconding TypeScript. If you are a js dev looking to pick up something new, just rename a .js file to .ts, open it in vscode, watch the magic. It will, I think, make you a better js dev.
1 comments

Java dev you mean ;) I dont see how types make you a better dev, its like saying automated dictionary in input text fields make you a better speller. It just makes you a lazy speller.
Types have fundamental meaning and function way beyond simply being a dictionary. Javascript's lack of type systems means it's crippled when it comes to serious numeric computation, simulation or modelling. Even a 64-bit number can;t be stored properly, to say nothing of SIMD operations.
it makes you think about your code in a more structural way where composability and low coupling start playing a fundamental role
Can you link to a reference where this is explained more? i am genuinely interested.