Not the previous commenter, but using indentation as syntax rather than an aid to understanding tge program structure is just painful when you come from any more conventionally structured language. The meme above may be an exaggeration, but it’s not much of one. An IDE can probably help, but needing one just to be able to more easily read the code is excessive.
That said, it’s a popular language and there are plenty of useful libraries, so sometimes the trade off is worth it.
I’ve programmed Python mostly without IDE without any problem. It’s no more difficult to understand the structure of the program than a bracketed language.
Don’t get me wrong, I know it’s quite possible, I find it just grates when you’re used to braces and semi-colons. They’re sort of a standard across many languages, and is an extra mental gearshift to python syntax.
Coming from C++ and Java over to Python was challenging. The IDE I used at the time also did not like when I used tabs instead of spaces, which drove me up a wall.
I will say that for beginners where python is their first language, it does a good job at reinforcing good practices for writing legible code.
I even coded my first few python programs in nano text editor without any annoying indentation issues. I use TABs btw. Problems usually happen when people mix tabs with spaces
Ah, now we stray into ‘holy war’ teritory. I’d agree with you should use tabs, but the language style guide says 4 spaces per level. As you saym don’t try to mix them.
lemmyingly@lemm.ee 1 year ago
Why do you believe that?
notabot@lemm.ee 1 year ago
Not the previous commenter, but using indentation as syntax rather than an aid to understanding tge program structure is just painful when you come from any more conventionally structured language. The meme above may be an exaggeration, but it’s not much of one. An IDE can probably help, but needing one just to be able to more easily read the code is excessive.
That said, it’s a popular language and there are plenty of useful libraries, so sometimes the trade off is worth it.
magic_lobster_party@kbin.social 1 year ago
I’ve programmed Python mostly without IDE without any problem. It’s no more difficult to understand the structure of the program than a bracketed language.
notabot@lemm.ee 1 year ago
Don’t get me wrong, I know it’s quite possible, I find it just grates when you’re used to braces and semi-colons. They’re sort of a standard across many languages, and is an extra mental gearshift to python syntax.
Marcbmann@lemmy.world 1 year ago
Coming from C++ and Java over to Python was challenging. The IDE I used at the time also did not like when I used tabs instead of spaces, which drove me up a wall.
I will say that for beginners where python is their first language, it does a good job at reinforcing good practices for writing legible code.
mexicancartel@lemmy.dbzer0.com 1 year ago
I even coded my first few python programs in nano text editor without any annoying indentation issues. I use TABs btw. Problems usually happen when people mix tabs with spaces
notabot@lemm.ee 1 year ago
Ah, now we stray into ‘holy war’ teritory. I’d agree with you should use tabs, but the language style guide says 4 spaces per level. As you saym don’t try to mix them.