News for hackers. Stuff that matters.
Re:Learning Advanced JavaScript by TheBranca18 on Friday April 30, 2010 @11:02PM (#1310031)
This is really informative. Being able to edit the examples like that reminds me of the W3c site on crack :). It's silly but I think the colors and fonts have something to do with it.

One thing though, on Chrome (Mac 5.0.342.9 Beta), intermittently I can't click next to get to the next slide, I get the following error: /apps/learn/jquery.chili.js:241 Uncaught ReferenceError: $el is not defined. This does not happen every time.

Re:Learning Advanced JavaScript by darrenkopp on Friday April 30, 2010 @11:30PM (#1310047)
i ran into some points where i would get stuck on a slide, but refreshing fixed the issue.
Re:Learning Advanced JavaScript by iamwil on Friday April 30, 2010 @11:49PM (#1310067)
I went through the entire thing before and learned alot. I highly recommend it.
Re:Learning Advanced JavaScript by asnyder on Saturday May 01, 2010 @12:44AM (#1310124)
Feels very similar to The Little/Seasoned Schemer, I'm sure with a bit more prose this could be the new equivalent. The hard part is coming up with an alternative to all the elephants.
Re:Learning Advanced JavaScript by domdefelice on Sunday May 02, 2010 @03:39AM (#1312157)
Yeah, I thought about the same book as well :-) I love this kind of tutorials
Re:Learning Advanced JavaScript by Silhouette on Saturday May 01, 2010 @06:38PM (#1311359)
I must be missing something here: all I see are the slide titles, the code area, and the results underneath. I see no explanatory text anywhere, though the HTML source for each slide is full of it. :-(

Running Firefox 3.6 on Windows XP if that makes any difference.

Re:Learning Advanced JavaScript by domdefelice on Sunday May 02, 2010 @03:30AM (#1312147)
There is NO explanatory text anywhere.. which HTML source have you seen? The tutorial is really just title, code area and results :-) This is a "learn by example" tutorial, aimed at who already knows a little javascript.
Re:Learning Advanced JavaScript by ericlavigne on Saturday May 08, 2010 @05:35PM (#1330967)
I started this tutorial with zero prior knowledge of Javascript, but I have still learned a lot from it. I am now 2/3 of the way through. The challenge of guessing what will work helps to keep me engaged. The extra time that I need to spend on a slide, compared to someone who already knows a little Javascript, is probably paid back in extra retention. I love this tutorial and am excited about adding a little Javascript to my projects.
Re:Learning Advanced JavaScript by Silhouette on Sunday May 02, 2010 @11:26AM (#1312593)
I just did a view source on one of the pages to see if I was missing something, and it was full of what looked like explanations: loads of text in HTML definition lists, which seemed a bit unusual, but I figured that was something to do with how the material was meant to be structured.
Re:Learning Advanced JavaScript by ck2 on Friday April 30, 2010 @11:56PM (#1310071)
Never a bad suggestion but it's still a dupe

http://www.google.com/search?q=site:ycombinator.com+http://e...

Re:Learning Advanced JavaScript by domdefelice on Sunday May 02, 2010 @03:27AM (#1312143)
This is really very nice. Made me learn a lot. It also reminded me of "the little schemer" :-)
Re:Learning Advanced JavaScript by simplegeek on Saturday May 01, 2010 @09:52AM (#1310552)
Does anybody know of any other such tutorials? Thanks in advance for the help.
Re:Learning Advanced JavaScript by mhansen on Saturday May 01, 2010 @09:59AM (#1310562)
I enjoyed Eloquent Javascript. http://eloquentjavascript.net/
Re:Learning Advanced JavaScript by olegkikin on Saturday May 01, 2010 @02:13PM (#1310923)
Re:Learning Advanced JavaScript by jmtame on Saturday May 01, 2010 @07:12AM (#1310422)
i hadn't thought about caching results from a function before. that's pretty cool.
Re:Learning Advanced JavaScript by mumrah on Sunday May 02, 2010 @11:04AM (#1312554)
It's called memoization
Re:Learning Advanced JavaScript by apphacker on Saturday May 01, 2010 @01:55AM (#1310192)
The closure section needs work. My closures never look like that. I have functions that return functions to create my closures, usually via a library via dojo.hitch, $.hitch, or goog.bind.
Re:Learning Advanced JavaScript by axod on Saturday May 01, 2010 @05:42AM (#1310356)

  window.setTimeout(function(c){return function() {
    c.doSomething();
  }}(this), 1000);
Mine usually look like that. Using any library to do that seems like overkill to me.
Re:Learning Advanced JavaScript by apphacker on Saturday May 01, 2010 @12:26PM (#1310729)
Well a hitch or bind function delivers more than just ability to create quick closures. It lets you define the functionality you want in a named function, allowing for code re-use and more readable code. Also I'm obviously not using the library just for bind.