On Wed, Feb 10, 2010 at 8:57 AM, Adam Warski <[email protected]> wrote:

> >
> > All i would like is some clarification if this statement is in fact true,
> if not i will go on with my project happily using reflection snippets. If it
> is true i then would be looking for a better alternative.
> >
> > It is much better practice in my opinion to use an explicit dispatch.
>  But you do whatever you want.  If it becomes a performance problem for you
> and you're on a production site, then we'll look at it.
> >
> > More broadly, we like to help newbies and folks with live production
> sites.  But, we also expect that newbies will bring us real issues that they
> themselves are facing, not premature optimizations.  We have limited time to
> help people and wasting (and this thread has crossed seriously into
> time-wasting land) time with stuff that doesn't really impact you means that
> (1) you will get a lot less attention in the future (think the boy who cried
> wolf) and (2) it lowers the quality of discussion for the rest of the folks
> on the list.
>
> I really don't get your response, as Hugo just asked about a statement on
> the wikipage, which very clearly says that using reflection snippets brings
> a performance hit and is discouraged to be used in production. Now, it may
> very well be that this statement shouldn't be there as it's not true - which
> is your opinion I think.
>

My "opinion" is that using dispatch snippets is the best practice because
it's clearer to other team members what's going on.


>
> Maybe it would be better to write something like:
> "If you are experiencing performance problems because of too many
> reflection calls, the cause may be using reflection snippets. Consider using
> dispatch snippets".
>

I did not write the wiki entry.  I rarely post to the wiki.  You can write
whatever you want.


>
> But why do you say to new users who just ask about statements from the wiki
> that their posts are time-wasting and that they can get less attention in
> the future I really don't understand.
>

Please read the entire thread and the other threads that Hugo has started.
Hugo is pushing on this issue (without any real basis, measurement,
problems, statistics) and not letting it go.  I've answered his question a
number of times (using dispatch snippets is best practices [more from a code
readability standpoint, but also there is a minor performance penalty]) and
he keeps harping on the issue.

If you repeat the same question over and over *after Tim and I have answered
it* it is a waste of time.

David


>
> Peace :)
>
> --
> Adam Warski
> http://www.warski.org
> http://www.softwaremill.eu
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<liftweb%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

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

Reply via email to