Hacker News new | ask | show | jobs
by fastball 2209 days ago
Eh, the weak typing intrinsic in JS still makes Python win out between those two.
2 comments

That really is use case dependent for me. In the context where I have made a thoughtful choice to use a dynamically typed language, I find strong typing seems to make things unnecessary clunky with not much gain, especially in webdev dealing with a lot of JSON and UI display. And if I’m in a situation where JS/dynamic language is not a good choice then I prefer a real statically typed language, not a middle-ground.
In what situations do you find weak typing useful? I've only ever had it introduce bugs and not make my life any easier. Meanwhile dynamic typing makes it a lot quicker to prototype things (vars that can be null or an int, for instance).
Python turns you into someone who cares how many invisible characters and of which type for each line you code. Weaking typing vs strong typing is the least of your concern
You (should) do that in other languages too. I'm not a fan of the way Python does it, but 1. it's not like you decide tabs vs spaces anew on each line, and 2. this is simply not a practical issue, unlike weak vs strong typing.