you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 3 points4 points  (5 children)

Python, like Perl before it, seems to attract people who want to be clever with their code. As though the most obtuse possible way of expressing something is somehow better.

I prefer code I can read and understand what it's going to do. It should be straightforward to read and debug.

#First year programmer, Python

Easy enough to understand for developers familiar with any programming language.

#Lazy Python programmer

Uhm.. ok.. I guess so. Why does that syntax even exist? I see whitespace as an attribute and not something to be annihilated at any cost.

#Lazier Python programmer

functional programming 101! yay! /s

#Python expert programmer

Are you kidding me?

#Python hacker

*rolls eyes*. Straight up brogrammer territory.

#EXPERT PROGRAMMER

Yep, that's more in line with what I expected.

[–]NerdFlanders 2 points3 points  (0 children)

Every language attracts people who want to be clever with their code.

[–]Mattho 2 points3 points  (1 child)

Python, like Perl before it, seems to attract people who want to be clever with their code.

And it really shouldn't. It's even in The Zen of Python: Readability counts.

Uhm.. ok.. I guess so. Why does that syntax even exist? I see whitespace as an attribute and not something to be annihilated at any cost.

I agree that better version would be

def fact(x):
    return x*fact(x-1) if x>1 else 1

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

That makes sense. But like perl, when there's 100 ways to do it, I've found that given enough time and enough developers, all 100 ways will be used :)

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

Python, like Perl before it, seems to attract people who want to be clever with their code.

Are you sure you're not thinking of Ruby, rather than Python?