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 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.
Most projects nowadays use auto formatting tools for convenience. Any python auto formatting tool will automatically convert tabs to spaces. Tabs are a no no in python, as their rendering might depend on the settings of the IDE. Spaces are nice and constant.
Why do you believe that?
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 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.
Most projects nowadays use auto formatting tools for convenience. Any python auto formatting tool will automatically convert tabs to spaces. Tabs are a no no in python, as their rendering might depend on the settings of the IDE. Spaces are nice and constant.