>You are welcomed to disagree with it, all of us hackers view things 
>differently.
>That said, understanding what Tim is saying will help you understand Python and
>the people who use it. Most of us agree with most of Tim's points. I believe 
>this
>was mentioned not to tell you to walk away.

Exactly. Todd, I'm not saying "agree or get out." All of the points in
the Zen of Python are opinion points. You could just as easily believe
the opposite of most of those points. It is just that, most Python
(and Django) programmers believe those things. The framework is built
with that mindset. It guides design decisions and allows us to move
beyond arguments over personal preference.

If you disagree with all (or most) of the Zen of Python, you are
welcome to stay, but unlikely to be happy.

If you start to complain about significant whitespace too, you aren't
welcome to stay either. :)

Alex

On Thu, Dec 3, 2009 at 12:46 PM, Javier Guerra <jav...@guerrag.com> wrote:
> On Thu, Dec 3, 2009 at 1:30 PM, Todd Blanchard <tblanch...@mac.com> wrote:
>> Not sure what you mean?  You mean something that looks through the code and
>> generates/expands urls for the view methods it finds?
>
> not exactly, just something like i wrote before: a small function that
> takes a list of views and constructs the url mapping from a template.
> remember that the mapping is not code, it's a data structure.  it's
> usually constructed explicitly line by line, but if you have a
> repeating pattern, you could factor it out.
>
>> I don't see the point of that exactly.  The dynamic dispatch I'm doing does
>> the same thing and I prefer dynamic dispatch to code generation (I abhor
>> code generation).
>
> to each his poison.
>
>> I do have one additional little complaint about url handling and application
>> integration in general.
>> settings.py has a list of applications to include (INSTALLED_APPS).  Fine.
>>  But then, in urls.py I have to repeat myself by importing each
>> application's urls.py to add them.      (r'^admin/', include(admin.urls)),
>
> remember that an app can do a lot more than provide views.
> autogenerating the mappings without being asked, would be definitely
> un-django-ist.  (and quite likely non-pythonic too).
>
> OTOH, a shortcut to deal with repeating code would be really welcomed.
>  again, just don't assume by default that it would have to be used,
> wait until it's called.
>
>
>
> --
> Javier
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.


Reply via email to