Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #31234
| Date | 2012-10-14 03:58 +0100 |
|---|---|
| From | MRAB <python@mrabarnett.plus.com> |
| Subject | Re: Feedback on my python framework I'm building. |
| References | (3 earlier) <mailman.2124.1350146902.27098.python-list@python.org> <5f18f5d1-1442-4a10-922c-783dc6ddf657@googlegroups.com> <mailman.2132.1350153223.27098.python-list@python.org> <9c958a7c-04db-4c6d-a8a2-38400e67e718@googlegroups.com> <507a2298$0$6574$c3e8da3$5496439d@news.astraweb.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2160.1350183518.27098.python-list@python.org> (permalink) |
On 2012-10-14 03:25, Steven D'Aprano wrote: > On Sat, 13 Oct 2012 15:24:04 -0700, nbvfour wrote: > >> On Saturday, October 13, 2012 2:33:43 PM UTC-4, Chris Angelico wrote: >>> >>> Nice theory, but this is the bit that I fundamentally disagree with. >>> Forcing programmers to work in one particular style is usually not the >>> job of the language/framework/library. That should be up to the >>> programmer, or at least the local style guide. >> >> Have you ever read the zen of python? "Theres only one way to do it" is >> a core motto of the python language. > > Have *you* ever read the Zen of Python? The line from the Zen is: > > "There should be one-- and preferably only one --obvious way to do it." > > Paraphrasing for emphasis: > > There SHOULD be one (or more, but one is best) OBVIOUS way to do it. > > as opposed to languages where there are no obvious ways to things, or > thirty. > > Don't believe me that the emphasis is on *obvious* rather than "only"? > The very next line of the Zen tells you: > > "Although that way may not be OBVIOUS at first unless you're Dutch." > > [emphasis added] > > Not being Dutch, I don't know whether the obvious way to do command line > argument handling is the getopt module or argparse. But there certainly > isn't *only one way* to do command line argument handling. > > It is a gross canard, mostly spread by Perl programmers, that Python is > "limited" to "only one way to do it" and therefore isn't as good as Perl > which gives you "more freedom" (to write unreadable, unmaintainable code). > > It simply isn't true that Python only gives you "only one way". The > acronym OOWTDI stands for *one obvious way to do it*. > I think it's the "Paradox of Choice". The more choices there are, the more time you'll spend trying to decide which one is "best".
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Feedback on my python framework I'm building. nbvfour@gmail.com - 2012-10-12 21:49 -0700
Re: Feedback on my python framework I'm building. Etienne Robillard <animelovin@gmail.com> - 2012-10-13 04:18 -0400
Re: Feedback on my python framework I'm building. Chris Angelico <rosuav@gmail.com> - 2012-10-14 01:12 +1100
Re: Feedback on my python framework I'm building. nbvfour@gmail.com - 2012-10-13 08:57 -0700
Re: Feedback on my python framework I'm building. Etienne Robillard <animelovin@gmail.com> - 2012-10-13 12:10 -0400
Re: Feedback on my python framework I'm building. Chris Angelico <rosuav@gmail.com> - 2012-10-14 03:48 +1100
Re: Feedback on my python framework I'm building. nbvfour@gmail.com - 2012-10-13 11:18 -0700
Re: Feedback on my python framework I'm building. Chris Angelico <rosuav@gmail.com> - 2012-10-14 05:33 +1100
Re: Feedback on my python framework I'm building. nbvfour@gmail.com - 2012-10-13 15:24 -0700
Re: Feedback on my python framework I'm building. Chris Angelico <rosuav@gmail.com> - 2012-10-14 10:06 +1100
Re: Feedback on my python framework I'm building. Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-10-14 02:25 +0000
Re: one obvious parser (was "Feedback on my python framework I'm building.") Tim Chase <python.list@tim.thechases.com> - 2012-10-13 21:53 -0500
Re: Feedback on my python framework I'm building. MRAB <python@mrabarnett.plus.com> - 2012-10-14 03:58 +0100
Re: Feedback on my python framework I'm building. nbvfour@gmail.com - 2012-10-13 15:24 -0700
Re: Feedback on my python framework I'm building. Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-10-14 03:37 +0000
Re: Feedback on my python framework I'm building. Chris Angelico <rosuav@gmail.com> - 2012-10-14 15:20 +1100
Re: Feedback on my python framework I'm building. Roy Smith <roy@panix.com> - 2012-10-14 08:48 -0400
Re: Feedback on my python framework I'm building. Dave Angel <d@davea.name> - 2012-10-14 18:38 -0400
Re: Feedback on my python framework I'm building. MRAB <python@mrabarnett.plus.com> - 2012-10-15 00:40 +0100
Re: Feedback on my python framework I'm building. Roel Schroeven <roel@roelschroeven.net> - 2012-10-15 19:29 +0200
Re: Feedback on my python framework I'm building. nbvfour@gmail.com - 2012-10-13 11:18 -0700
Re: Feedback on my python framework I'm building. Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2012-10-14 01:43 +0100
Re: Feedback on my python framework I'm building. nbvfour@gmail.com - 2012-10-13 08:57 -0700
Re: Feedback on my python framework I'm building. Etienne Robillard <animelovin@gmail.com> - 2012-10-13 10:44 -0400
csiph-web