Earlier quoted context omitted.
That's because Python is actually used extensively in the West outside the context of web development. Ruby really isn't. Rails became popular, and people decided to learn Ruby so they could use Rails. Most people who choose Python web frameworks do so because they are already familiar with Python.
Why do you say "In the West"? But I agree, I learned Python because it seemed like a great language, and learned Django because I was moving into web dev after years of other work with Python. I don't believe I'll ever pick up Ruby for anything other than learning Rails (and I doubt I'll even do that, since Python is so similar).
Why did Quora choose Python (over PHP and others) for its development?
21–30 of 45 posts
Re: Why did Quora choose Python (over PHP and others) for its development?
#22The biggest issues with Python are speed and the lack of typechecking. Interesting that they took this bit of wisdom away from programming in PHP . I say this because I've never heard anyone consider a lack of type-checking as an issue when considering Python. It's a feature. You either need type-checking or you don't. I suspect that the Quorum engineers didn't need type-checking, so I don't understand why the felt t…
Re: Why did Quora choose Python (over PHP and others) for its development?
#23"We didn't want to take the risk of being on Mono [...] It's not clear how long funding will be around for that project" Can anyone elaborate on that or point to some reading?
Re: Why did Quora choose Python (over PHP and others) for its development?
#24Re: Why did Quora choose Python (over PHP and others) for its development?
#25Get over yourself....]
No one in their right mind uses Ruby, The Failure of twitter has shown everyone that ruby is worthless if you ever wish to make millions and scale. Unless of course you are living off pennies like 37 signals ppl otherwise get over it, Use python all smart people use it.
Re: Why did Quora choose Python (over PHP and others) for its development?
#26The biggest issues with Python are speed and the lack of typechecking. Interesting that they took this bit of wisdom away from programming in PHP . I say this because I've never heard anyone consider a lack of type-checking as an issue when considering Python. It's a feature. You either need type-checking or you don't. I suspect that the Quorum engineers didn't need type-checking, so I don't understand why the felt t…
I don't think it's a bad idea to evaluate the alternatives, even if you are very comfortable with a specific language. Granted we were pretty cool with Python and that is definitely a major factor in the decision, but it can't be the only one.
For example, we were all very comfortable using SVN (another technology Facebook uses and is now locked in with). But we didn't use Subversion; we decided to use Git, because the advantages of using a DVCS outweigh our personal sense of comfort.
Re: Why did Quora choose Python (over PHP and others) for its development?
#27Wait, you mean this was a serious question? Not a comedy routine?
Re: Why did Quora choose Python (over PHP and others) for its development?
#28My biggest problem with Django is that the entire data model layer is designed with relational database in mind (i.e. normalization and JOINs). Many of the new data stores (RDF stores, Google Data Store for App Engine, etc) are inheritantly non-relational.
start with web.py then incrementally add code as you need it, how/where you need it, including how to persist
Re: Why did Quora choose Python (over PHP and others) for its development?
#29The python/ruby thing seems to be at an interesting point. Python as a language has a bigger mindshare but none of the python web stacks has close to the adoption that rails does. As far as I can tell there seems to be a lot more peripheral innovation in the ruby camp though, particularly in testing tools. Are there python equivalents to rspec, cucumber, factory_girl/machinist, shoulda, passenger, haml, webrat etc?
rspec: I'd argue doctest does the same thing, but without being clever consultantware. I've seen passing mentions to similar things in Python.
cucumber: http://lettuce.it/
factory_girl: I can't keep up with data fixture libraries, but there's quite a few
machinist: I don't quite understand it. It seems like a mocking library to me? There's a half dozen of those at least...
shoulda: Seems like Cucumber? I don't get this one either. Just a bunch of comparison helpers for your testing?
passenger: as in mod_passenger? Technically it supports Python. mod_wsgi is very similar.
haml: there's a bunch of more-or-less direct ports.
webrat: Twill, WebTest, zope.browser are a couple.
There's a lot of testing tools in Python; this list is very out of date, but at least shows some of them: http://pycheesecake.org/wiki/PythonTestingToolsTaxonomy
Re: Why did Quora choose Python (over PHP and others) for its development?
#30The python/ruby thing seems to be at an interesting point. Python as a language has a bigger mindshare but none of the python web stacks has close to the adoption that rails does. As far as I can tell there seems to be a lot more peripheral innovation in the ruby camp though, particularly in testing tools. Are there python equivalents to rspec, cucumber, factory_girl/machinist, shoulda, passenger, haml, webrat etc?
There are equivalents to many testing tools: rspec: I'd argue doctest does the same thing, but without being clever consultantware. I've seen passing mentions to similar things in Python. cucumber: http://lettuce.it/ factory_girl: I can't keep up with data fixture libraries, but there's quite a few machinist: I don't quite understand it. It seems like a mocking library to me? There's a half dozen of those at least...…