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.
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.
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.