Hi,

On Jul 4, 10:20 pm, Rodrigo Rosenfeld Rosas <[email protected]>
wrote:
> > Crockford's rules are backed by pretty strong logic. I'd recommend
> > reading "The Good Parts" ... he has some compelling arguments.
>
> I'll take a look when I have some free time.

http://developer.yahoo.com/yui/theater/

It is very, very well worth taking the time watching the videos - even
if it takes a couple of hours total!

I managed to convince several programmers to at least take a look, and
they all ended up watching almost all of it.

Crockford is the inventor of the JSON format - but more important, he
is credited with being largely responsible for spreading the news that
JS is a great modern programming language. Several now widely used
patterns for encapsulation, inheritance (prototypical or classic),
etc. are his design. He isn't just some random programmer, he carries
enormous weight in the JS community (meaning more those on the top
including in the ECMA commities etc., those who "only use" the
language unfortunately are not all aware of him - as can be seen
here).


> As I said, once you know the reasoning you can follow his suggestions.
> It just happens that we don't use minifiers at our company since

Excuse me, but here we are talking about the JS in Rails, a framework
used by thousands!


> Javascript is cacheable and there is no such "one-time users" thing with
> our products. The overhead is also negligible for not using any JS
> minifier. I mean, even if the JS code is reduced to 1/3 that would mean

That is WRONG. Please multiply the homepage by the nr. of hits. Okay,
the reasoning for Google and Yahoo is orders of magnitude stronger...

Pls. also have a look at the research mentioned somewhere at Yahoo, in
one of those videos above by a Yahoo (JS) engineer in one of the other
videos I believe about users and page loading. From personal
experience I agree with their findings. Way too many pages even of big
professional sites (who should know  better!) waste my time and make
me very impatient with loading of way too much stuff before I get to
see anything. It's one thing for an app (e.g. gmail), but when I load
a page for German-English translation to look up a word and have to
wait several seconds - even though there's just one lonely input
field... anyway, cutting down from 800ms to 500ms page load time IS a
huge deal!

If you feel it is not necessary pls. go ahead and don't minify your
code - but pls. leave that option open for the rest of the Rails
users. We are talking about the rules for a widely used framework, not
about individual decisions.

Great discussion though.

Michael

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" 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/rubyonrails-core?hl=en.

Reply via email to