r/programming • • May 29 '23

Python vs JavaScript: Which is a Better Programming Language?

https://thecompetenza.com/python-vs-javascript/
0 Upvotes

23 comments sorted by

View all comments

Show parent comments

0

u/persism2 May 29 '23

AI and data science Python is king of the hill

For no good reason except that the Sheldon Cooper types like it. It's completely insane using a single threaded, compatibility breaking, won't ever have a 4.0 version language.

2

u/mrprgr May 29 '23

It's very fast to develop in Python and it can have excellent performance by hooking into C/C++. Not sure what you mean by compatibility breaking, major version bumps will never have a guarantee to be backwards compatible.

1

u/ryantxr May 29 '23

It’s not any faster to develop in python than many other languages.

0

u/mrprgr May 30 '23

It's highly abstracted and has a ton of libraries that make it pretty easy to read and analyze data. That makes it good for developing something quickly. Plus, with data science/analysis, the code is often incidental rather than of great importance, which is quite different from software engineering. You don't need optimal performance or low-level control, you don't need much in the way of maintainability, you mainly need to get the job done. Python is great for that, so it's the tool of choice.

1

u/uardum Jun 01 '23

And that's why I hate integrating code from data scientists and AI people into real projects. They write shit code because they barely know how to program. My life would be so much better if they had to access TensorFlow directly in C++, simply because it would force them to delegate the programming to a programmer.