Linked by Thom Holwerda on Mon 25th Jun 2007 20:10 UTC, submitted by ganges master
Thread beginning with comment 250601
To view parent comment, click here.
To read all comments associated with this story, please click here.
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[3]: Re: Indentation
by DoctorPepper on Wed 27th Jun 2007 16:11
in reply to "RE[2]: Re: Indentation"
I agree. I picked up Python in mid-2005, because it was the scripting language of choice at my new job. I had been using Perl as my scripting language, and resisted the change, but after a couple of days of using Python, I got used to the indenting and lack of braces/semi-colons, and now I much prefer Python over Perl.
Just my own experience and preferences.






Member since:
2005-11-11
The trouble is that as soon as the indentation is damaged, either by someone using an editor that is configured to use hard tabs or by copying code to another place (eg. to move it into a function)
Yes, those might be problems. An editor that isn't python-aware, can mess things up for you, so that is something to watch out for. I haven't really seen those problems myself, but it might be a bigger issue than I realize.
Copy-paste bugs, I have had. Unittesting catches almost all of those for me. Even if there was no risk of error in copy-paste, I'd still not feel comfortable about code that didn't go through unittesting, so for me that's not additional work.
Yes, there are situations where those are real problems. But there are also ways to avoid most of those situations.