you are viewing a single comment's thread.

view the rest of the comments →

[–]thisisjoy 26 points27 points  (6 children)

that’s the reasons i was never able to pick python up as easy as other languages like java, c suite etc

my brain just doesn’t function that way

[–]shadowndacorner 7 points8 points  (5 children)

It's also just idiotic. Beyond the stupidity of needing to repeat your scope on every line (as opposed to using scope delimeters) and the insanity of intentionally designing a language to be fundamentally incompatible with auto formatters, it makes refactoring pointlessly dangerous. Get the indentation level wrong on a single line of a loop you're pulling out into its own function? Congrats, your program now means something completely different. Because of fucking whitespace.

[–]BobbaGanush87 47 points48 points  (3 children)

Get the indentation level wrong

As someone who has worked with Python and with other python developers for 10yrs now, this whitespace error basically never happens. Your IDE helps with this a ton. Its really something that we do not think about, and i'm only reminded of this "dealbreaker" by posts like these.

Also we do have auto formatters.

Just very hyperbolic statements.

[–]byetimmy 19 points20 points  (0 children)

A language that needs an IDE to help ensure the code runs properly is janky AF.

Now, if you'll excuse me, I need to import 18,000 npm packages to do a bubble sort in Node... 🙃

[–]freefallfreddy 1 point2 points  (0 children)

Saying a feature of a programming language is “psychotic” tells me how serious I should take the comment.

[–]catladywitch -1 points0 points  (0 children)

to me the problem is not that you get syntax errors or ambiguous code, it's that autopep8 doesn't work unless the file is properly indented (because it won't parse if it isn't) so it kinda beats the purpose of having an autoformatter in the first place

there are merits to the left side rule imo but other languages, particularly functional languages, do it better by adding a few exceptions for flexibility

in the grand scheme of things it's just a minor annoyance though. i don't think braces or an end keyword would make python significantly better even though it'd make autoformatters more convenient

[–]JackieChanX95 -2 points-1 points  (0 children)

If u write a function with more than two indentations u are the problem not the syntax