Addy
73p462 comments posted · 1 followers · following 0
12 years ago @ AddyOsmani.com | Where... - Exploring JavaScript's... · 0 replies · +1 points
12 years ago @ AddyOsmani.com | Where... - Faster JavaScript Memo... · 0 replies · +1 points
Reviewing your notes, I maintain that these tests aren't flawed. We're purposefully benchmarking the combined memoization and lookup times as a part of this experiment. You have highlighted however a very interesting (and important) point - from the perspective of the latter, it's just as critical that one analyze the lookup times independently to gauge just how well this part of the process performs. Your jsPerf test indicates the Fuchs implementation to be the fastest here and we have no problem admitting that when it comes to the look-up phase, it is. I guess it boils down to where someone is hitting pain-points in their application, the actual memoization phase or (arguably, depending on what you're doing - the more important lookup phase). I'd advise others to checkout your test just to be aware of all the gotchas.
Cheers!
Addy
12 years ago @ AddyOsmani.com | Where... - Getting Involved With ... · 0 replies · +2 points
You're absolutely right..there are OSS projects that just don't grok the importance of a well designed site, but there are solutions to that: if someone was to create a better looking website for them in a fork and showed it to the community, they could then let the project maintainers know whether or not thats the direction they'd like the site to take. Progress in these areas is definitely possible, even if it can take time.
12 years ago @ AddyOsmani.com | Where... - Exploring JavaScript's... · 0 replies · +1 points
12 years ago @ AddyOsmani.com | Where... - Exploring JavaScript's... · 0 replies · +1 points
12 years ago @ AddyOsmani.com | Where... - Getting Involved With ... · 0 replies · +1 points
12 years ago @ AddyOsmani.com | Where... - Exploring JavaScript's... · 0 replies · +1 points
I think the sentence about avoiding some of the uses of the OR operator mentioned is critical for any post like this. There are hundreds of interesting "quirks" with the language that are useful to know, even if useful means knowing when *not* to use them :)
12 years ago @ AddyOsmani.com | Where... - Exploring JavaScript's... · 0 replies · +1 points
12 years ago @ AddyOsmani.com | Where... - Writing Modular JavaSc... · 0 replies · +1 points
I would recommend checking out the RequireJS optimizer (if you haven't already), which allows you to combine your various script modules into one (or more) files and then minify them using UglifyJS - it's actually part of r.js, so unsure if you've explored it. Using this, your users don't have to rely on a script loader and a lot of the process doesn't require significant manual effort to get setup. Check out the optimizer here: http://requirejs.org/docs/optimization.html.
Are you looking to generalize the module namespaces into a more global one using the process you mentioned or are you just looking for a solution like the above?
Cheers!
Addy
12 years ago @ AddyOsmani.com | Where... - Getting Involved With ... · 1 reply · +1 points