Hacker News new | ask | show | jobs
by kissgyorgy 2686 days ago
I never understood, that people who don't understand Python at all, or don't like essential Python constructs, why they bother using it? Why not use a different language in the first place? If you are using this library, you are not writing Python anymore and you lost the biggest advantage of the language: simplicity.
1 comments

Often the language is chosen because it is the only option like JS for web, or it is the best option for the project. For example, you are doing physics and you need a general purpose language that is easy to write and handles gigantic numbers correctly so you pick Python.
>Often the language is chosen because it is the only option like JS for web, or it is the best option for the project. For example, you are doing physics and you need a general purpose language that is easy to write and handles gigantic numbers correctly so you pick Python.

You could pick Julia, or R. A community could create their own tools. It's not like JS, which has an absolute monopoly and people were forced to use it.

Python __became__ popular for that purpose.

Not Java. Not Haskell.

So don't try to implement Java or Haskell error handling in Python if you are using Python in a niche where it shines: it shines here because people working in that field decided it fits well.

JS interpreter, thanks to asm.js, can be used to run any language. Knock yourself out.

Of course you get to deal with a bit of FFI when calling built-in functionality of the browser.

Thanks to adapters, you can plug an american fridge in a french socket. I'll still buy the one made for the local electrical system.
So, you'd write in an inferior language when even web framework authors don't want to?

(See CoffeeScript, TypeScript, Elm, etc. Or Transcrypt if you want pythonic semantics.)

I understand this being a business requirement made by a business droid. Other than that, there is really no reason to be married to JavaScript.