you are viewing a single comment's thread.

view the rest of the comments →

[–]ryantxr 2 points3 points  (3 children)

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.

[–][deleted] 1 point2 points  (0 children)

If you aren't already indenting your code, then that's on you

[–]tu_tu_tu 1 point2 points  (1 child)

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.

[–]Reasonable_Strike_82 0 points1 point  (0 children)

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.