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

3

u/ryantxr May 29 '23

They are ok. Neither is great. JavaScript is famous for its odd incoherent responses at times. The only reason JavaScript succeeded is because it’s the only language built into browsers.

I find Python’s use of indentation to indicate structure infuriating.

2

u/tu_tu_tu May 29 '23

I find Python’s use of indentation to indicate structure infuriating.

The greatest thing ever for a script language. If you get a piece of code written by some random ops at least it won't look like a modern art.

1

u/Reasonable_Strike_82 Oct 31 '23

That's what IDEs and linters are for. If somebody else wrote code that's a misformatted mess, I just pop it open in VSCode, hit "Save", and it magically fixes itself.

I used to carefully indent and format my code to make it look just so. Then I discovered that I could have the computer do it for me, and now I don't even think about it.

Except in Python, where the indentation has semantic meaning, so I still have to do it all by hand.