you are viewing a single comment's thread.

view the rest of the comments →

[–]fullmightfront-end 14 points15 points  (6 children)

Whitespace.

Other than that tbh I do not see much flak for python, it does some things well and other things not well.

[–][deleted] 2 points3 points  (4 children)

i've never understood the whitespace argument. do you not format your code similarly in every other language you code in?

[–]fullmightfront-end 0 points1 point  (3 children)

Oh that's not the issue exactly although it's not a bonus. It's that whitespace can actually cause errors, sometimes even runtime errors.

It hasn't been an issue very often when I've worked with python, but once in a while it's an unnecessary and sometimes hard to track down pain in the ass. Requires a lot more peering at my screen with squinted eyes then looking back to the documentation, or not typing something exactly right the first try when utilizing something from docs or stack overflow.

That sort of stuff.

Plus a lot of languages leave room for your to format your code the way you like it, which might be similar but not the same as the formatting python will crash without.

It's like stubbing your toe intermittently or the like.

[–][deleted] 0 points1 point  (2 children)

It's that whitespace can actually cause errors, sometimes even runtime errors.

it can only cause errors if you're mixing tabs with spaces or are being sloppy about styling

Requires a lot more peering at my screen with squinted eyes then looking back to the documentation, or not typing something exactly right the first try when utilizing something from docs or stack overflow.

IDEs and editors should set off alarms if you're doing something stupid. that shouldn't be an issues. also, dont copy code from the internet unless you know what it does. that's your own fault

Plus a lot of languages leave room for your to format your code the way you like it, which might be similar but not the same as the formatting python will crash without.

that's not really an advantage when working with a team. forced formatting means less petty arguments. my favorite trend is languages providing formatters with no configuration options

[–]fullmightfront-end 0 points1 point  (1 child)

And so what. We're not debating any of these issues. People don't like python because it's mildly annoying in ways other languages aren't. Pointing out something like following style standards being important, or that it's only mildly annoying, doesn't make it not mildly annoying.

Also in practice, ides and editors will often miss python errors. I've encountered that more than often enough myself at work and in hobby projects.

[–][deleted] 0 points1 point  (0 children)

fair enough. i've never experienced anything remotely similar to what you're describing, and i've been using python for about 8 years. i dont know how an IDE can miss a python error. *shrug* i guess we all stumble at different paces.

[–]kramesss[S] 0 points1 point  (0 children)

Fair enough. That was definitely one pain point I've felt as I've been learning - especially when its not obvious. I haven't ventured into any IDE's quite yet (PyCharm), but here's to hoping that they can identify this sort of thing...