Hi Mike,

Mike Orr wrote:
> Ugh, you really expect people to want to memorize this?  Sessions are
> supposed to be built into megaframeworks, not require some obscure
> import.  "I think I'll just use Rails instead; it's more
> straightforward."

The problem at the moment is worse, people start using Pylons having heard
how obvious/customisable it is and then can't work out where something
simple like a helper comes from. They then get frustrated and think about
using something else. Your concern about people not remembering where
things come from can easily be solved with some cheat sheets (which I'd be
happy to create). Explicit imports also make it more obvious to the user
how they can replace some Pylons default with another which is a good thing.

My point of view is that there are enough people confroming to the
framework norm and trying to make things *appear* easy whereas for me,
Pylons is more about things actually being easy because no-one is trying to
over-simplify things or produce convenient abstractions that hide what's
really going on. I don't object to abstractions or simplifications that
don't hide what's going on, they are great, but the moment a user with
basic Python knowledge can't work out how something in Pylons works then I
think that's a problem. Explicit imports seem one step along the road to
making the Pylons internals more obvious to a basic Python programmer so
that seems a good thing to me.

Incidentally I really dislike things like the @validate decorator too for a
similar reason, it actually hides what's going on too much and decorators
in general are harder for people to get their heads around than functions.
I think things like @validate should be an ordinary function in Pylons. If
people want to use it as a decorator in their own apps and they understand
decorators they can easily write their own @validate decorator which uses
Pylons' validate() function. That way beginners won't get put off and
experts don't loose any power.

That's my view of the world anyway and hopefully explains some of my
motivations.

Cheers,

James





--------------------------------------------------------------------
mail2web.com – What can On Demand Business Solutions do for you?
http://link.mail2web.com/Business/SharePoint



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to