Hacker News new | past | comments | ask | show | jobs | submit login

I mean, I do occasionally, but I think one big difference is that nobody is forced to use python. If they want a feature a normal language doesn't have, they can easily choose another.

That's simply not true for JS.




> I mean, I do occasionally, but I think one big difference is that nobody is forced to use python. If they want a feature a normal language doesn't have, they can easily choose another.

Most domains heavily constrain your language choice though...C/C++ for games, Java/Kotlin for native Android, Swift for native iOS, PHP/Node/Python/Java/Ruby for server-side. The libraries you need constrain the choice even more. I'd love to use OCaml everywhere if I could but there's just no support for it.

Anyway, my point is complaining that vanilla JavaScript is bad is a real disservice to modern JavaScript. What's so bad about it if you use TypeScript?


You can use practically any language for games or web servers; they are certainly not constrained to the ones you listed. Game engines are usually written in C++ but the logic usually isn't. Even more importantly, the reason they're written in C++ is because it's usually the best tool for the job, NOT because nothing else is available. Nothing prevents you from writing a game engine in Rust or JavaScript or assembly language or whatever you want. And on servers, anything really does go.


I love JS and especially the variety of tools available.

It's a double edged sword. But once you have your tools is great.

I love webpack, vscode, Typescript, npm, preact and mocha. All great tools to solve a specific problem.

So much better than a number of other language. Have you ever dealt with the horrors of package management with pip because it's inconsistent installs.


> So much better than a number of other language. Have you ever dealt with the horrors of package management with pip because it's inconsistent installs.

Personally I'm surprised the null/undefined checking feature of TypeScript isn't raved about more which is missing from many typed languages.


Most domains constrain your language choice into something that fits that domain.

It is just mobile and web that constrain your choice into some arbitrary stuff that may or may not work well, and it's your problem to deal with the consequences.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: