Hi Mike,

My one request would be to have a more sensible version of
webhelpers.date.distance_of_time_in_words helper.

Namely, I like what John Resig did in Javascript, which I ported to
Python:

http://gist.github.com/240045 (you're more than welcome to use it if
you like).

I submit that the current implementation is more granular and
flexible, but the code that's required to run it is complex,
overwhelming and hard to understand. I think this approach (which
Django has a similar one for) covers more than 80% of the use cases in
less than 20% of the complexity.

I've always seen webhelpers as a relatively minimal and concise
collection of tools that help cut that 80/20 utility/effort ratio. I
think this addition or modification would be a good candidate.

- shazow

P.S.
It's possible to do a wrapper to give this default behaviour on top of
the current implementation but the underlying complexity of the code
to achieve that seems overkill and makes me feel dirty.

On Dec 23, 2:08 pm, Mike Orr <[email protected]> wrote:
> On Wed, Dec 23, 2009 at 10:05 AM, [email protected]
>
> <[email protected]> wrote:
> > Hi Mike,
>
> > Thanks for the release. I have been using django just for utility
> > functions like urlify.
> > Now I can remove that dependencies.
>
> Are there any other generally useful functions you've been missing?
>
> --
> Mike Orr <[email protected]>

--

You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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-discuss?hl=en.


Reply via email to