3 ms·
Change for changes' sake is partly what frustrates me. Indents are such a stupid idea IMHO. What was wrong with curly braces?! Certainly Python sticks out in th
by Boothroid 10y ago
Change for changes' sake is partly what frustrates me. Indents are such a stupid idea IMHO. What was wrong with curly braces?! Certainly Python sticks out in this regard. I also think Python has evolved beyond its initial premise to the point where it has acquired many of the features it was trying to escape from at its inception. When I see all the ugly cruft in the average large Python app/library I start to question.
As a developer I care about these things when they pollute my work with their crappiness.. Be that in concept or execution.
I'm well aware of C's limitations. My point is that the types of environments in which C prevails are perhaps a little less prone to the latest trendy fad.
- Nadya 10y agoDo you indent your code when you use braces? this { foo: bar; } If so - how is scanning for {} any different than scanning for indentation level? this foo: bar; You'd have a valid point if you wrote code as thus: this { foo: bar; } or this { foo: bar; } If you're using indentation and curly braces - one of the two isn't necessary. In my opinion, indentation alone is more scannable for code blocks than curly braces alone. If I were to drop one - it would be curly braces. I don't find Python all that difficult to read - and I primarily deal with Javascript and C#.
- Boothroid 10y agoI prefer the last. Partly it's not being able to just drop a brace in the right place to make something compile when hacking that bothers me - ohh no, in Python you have to make sure every damn block is aligned correctly.. For a quick and dirty scripting language it sure is pedantic!
- luord 10y ago> This articulates a lot of what I've felt in recent years. > Certainly Python sticks out in this regard. I also think Python has evolved beyond its initial premise. So with recent years you meant 1991. Got it, I got confused for a moment. That aside, I agree with you, but your own words give ample evidence that this trend is, by no imaginable means, "recent". It's inherent to software. BTW, my favorite language is Python.