by ddellacosta · 14y ago · 0 comments
I'll say right off the bat: I don't think my experience is really enough to judge an entire community on. I also feel pretty strongly--as I've read a bunch of articles on Python from a number of perspectives while learning about it--that there are a variety of perspectives within the Python community, some more conservative, some less. In fact, it may be harder to characterize the Python community with a broad brush than the Ruby community (although I live in Japan, and meeting some of the old-school Japanese Ruby coders shifts your perspective a lot...but that's another story).
What I will say, however, is that there are aspects of the community that correspond very much to the stereotypes. More to the point, there are folks who use the talking points within the Python community as an excuse for really foolish practices.
For example, I work with a developer who insists that you should do your damnedest to use nothing outside of the standard Python library. So he ends up writing his own web framework from scratch (!) rather than using Django, or anything really--we are on raw webob/webapp2. This has something to do with, in his words, "There should be one-- and preferably only one --obvious way to do it."
He will also turn code into long blocks of if/else statements because he insists this is easier to grasp; and Python code should be readable..."Explicit is better than implicit. Simple is better than complex." Etc. etc.
The Ruby community has its own normative qualities, I won't deny (I...kinda agree with Zed Shaw: http://learncodethehardway.org/blog/AUG_19_2012.html). But my experience roughly corresponds to the original article's perspective: Ruby, as a community, tends to have a more forward thinking, "break it and fix it quick" perspective. And as far as Rails at least, testing is entrenched, which I think is a good thing. Generally speaking, experimentation is good, and conservatism can get stuffed.
I don't think Python is a bad language. But I personally think having these philosophical statements like "the Zen of Python" and "Pythonic" and whatnot is actually poisonous to the community as a whole. It promotes a certain type of dogmatic thinking that I think is really harmful--even if the ideas expressed are correct! It becomes easy for bad programmers (or good ones who haven't had their ass kicked in a while) to fall back on when they don't feel like challenging themselves.
Also, this is kind of neither here nor there but functional programming paradigms in Python suck. Well, maybe 3.x is better, I haven't really checked it out in depth yet...
(Edit: sorry that last bit about functional programming in Python was a cheap shot, with no bearing on the conversation at hand...)
Python has such a huge ecosystem of external modules that you're completely missing out on by being silly enough to go standard-lib-only. In fact, a number of external packages are much better than what is found in the stdlib (requests vs httplib/urllib/urllib2, anyone?).
My overarching point is: There are people with bad habits/behaviors in all communities. There are also people who love staying cutting edge in Python (I do, bring on the change). The stereotypes are awful, at best, and stuff like the Zen of Python is interpreted differently by each individual (ie: your friend's interpretation is much different than mine).
As an addendum, these Python vs. Ruby articles really are a waste of time. The two languages and communities are very strong. Spend some time reading some Ruby and Python, poke around, and pick which one you like better. They're both going to be than OK for most cases. It really just comes down to personal preference, and which community you feel like you can hire from more easily.
And this is exactly my point about why having the Zen of Python is problematic: it is not in any way definitive, but it is treated as though it is. Meanwhile you have folks like the guy I work with, and folks like you, supposedly in the same community. But your ways of thinking and working couldn't be more different.
Even though I love Ruby (and actually, lately I've been wanting to be in a Clojure shop...) I want to work in a Python shop just to get the bad taste out of my mouth from this gig...
As an addendum, these Python vs. Ruby articles really are a waste of time.
Well, I agree and I disagree. If they turn into stupid flamewars then yes, they are a waste of time. But I like hearing opinions like yours, which I wouldn't have been exposed to outside of this kind of a post.
"And this is exactly my point about why having the Zen of Python is problematic: it is not in any way definitive, but it is treated as though it is."
What does that even mean?
Not having 'one way' of doing things is a good thing. People program in different ways. Not everyone is the same. Its ok, don't panic.
I've encountered countless 'you're doing it wrong' messages from the rails community; or 'that's not idomatic ruby'.
Simple example, naming your files: MyClassName.rb instead of my_class_name.rb; I've never yet encountered a python guy who's hassled me for naming my python files differently. I've yet to meet a single ruby developer who hasn't commented on it.
...but you know what, that's ok too. I don't mind; these are different communities, and they have different outlooks.
I'm really not sure what point you're trying to make, but the point I'm making is: these are different tools, and the communities for them have different priorities.
Why do we need to rank them and say there's something 'wrong' with the community of one compared to the other?
The python vs ruby debate is unnecessarily divisive flame bait in almost all circumstances.
Sorry, I guess I didn't express my point well. What I'm trying to say is that it is problematic for a community to have these kinds of overarching statements about their communal philosophy, when that communal philosophy is not, in fact, shared by all members of the community in a consistent way.
This results in one person saying one thing that means one thing, and another saying something completely different, but both are pointing to the same set of "first principles" as their guide. In my opinion, this is problematic.
Not having 'one way' of doing things is a good thing.
I absolutely agree. But that's not a very Pythonic way to think about things: "There should be one--and preferably only one--obvious way to do it." (See what I'm saying?)
Listen, I'm not trying to talk shit about the Python community, or claim the Ruby community is a consistent exemplar of the best in programming language community behavior--if anything, the norms in the community merely fit my personality better. And I acknowledged in my original post that the Ruby community errs on the side of normativism to a fault at times: this is something it would appear you've experienced. In fact, I don't really want to be identified as a member of this community or that one, in the end I want to be viewed as a developer who considers the tools he is using from a more expansive perspective.
I'm merely pointing out my observations as a developer, with (as it so happens), a lot of recent experience in Ruby, who is starting to program Python. I think the Python community, insofar as there are a group of people who identify as a part of the Python community, could benefit from some outside perspective. Outside perspective is good sometimes, right?
I have been able to use Python as a middle ground. A place that I can go and work to make web tools, but also go offline to solve little problems that bug me.
Is this something that is equally easy in Ruby? I mean, if I was going to go to the web strictly, I can see comparing the two as apples to apples, but that's not why I use Python...
Ruby is used a lot for sysadmin, systems management stuff (more than Python, surprisingly, because of good tooling). It's also used for stuff like iOS development (RubyMotion), and general purpose scripting.
That said, _is_ there anything of importance happening "outside of the web" nowadays?
Seriously??? You can't swing a cat without hitting someone singing the praises of "Big Data". We're at a point where machine learning is moving from academia out into "real world" in a major way. Statistics, data analysis and simulation is playing a more and more significant role in more and more fields every day. Both GIS and BIM, while still pretty niche, are growing rapidly in importance in their respective fields. I could go on all day. I'd almost (but not quite) say web frameworks is least important or interesting thing happening these days.
Which I also consider BS. I've seen tons of those "can't swing a cat without hitting X" fads in my time come and go, at best staying small niches.
But I've also read a lot of stupid arguments in threads about what is "Pythonic" or not...so it's not just one idiot.