Why did Quora choose Python for its development?

Octavian Rasnita orasnita at gmail.com
Mon May 23 15:05:28 EDT 2011


From: "Terry Reedy" <tjreedy at udel.edu>
> On 5/23/2011 4:49 AM, Octavian Rasnita wrote:
> 
>> But let's remember from what this discussion started. This is not a
>> Python critique, because each language has its own ways.
>> I just wanted to show that the fact that "there is more than one way to
>> do it" in Perl and that "there is a single way" in Python are just
>> buzzwords,
> 
> Agreed. The latter is simply incorrect for Python and I don't know why 
> people say that. The statement from the Zen of Python is as follows:
> "There should be one-- and preferably only one --obvious way to do it."
> where 'it' is some reasonable common operation. This is a statement of 
> *intent* that is opposed to "All possible ways of doing things should be 
> included". The key word that people too often omit is *obvious* (once 
> one learns Python). There are usually, of necessity, multiple ways to do 
> something, but for common operations, there should be one way that is 
> obvious to the experienced Python programmer.

Yes you are right. And it is exactly the same in case of experienced Perl programmers.

There is even a Perl book regarding the best practices, with many recommendations for the obvious way to do various things, and there is the module Perl::Critic with its command line percritic that follows those best practices very closely, so it is also just a buzzword that "there is more than one way to do it" for experienced Perl programmers.


> > because this was an example where in Python there are many
>> ways to do it while in Perl there is a single way used usually, which is
>> also more simple.
> 
> Here I disagree. As I replied before, you are either ignoring the 
> obvious Python way or talking about a rare need.


I was talking about the method of creating a dictionary from an array which is much shorter and clear in Perl than in Python, and if you are using this very rarely, others might need to use it often.

Octavian






More information about the Python-list mailing list