This is awesome. I just started toying around with the jQuery source and got so thrown off by a couple of things (that opening parenthesis was driving me crazy!) and this cleared everything up. And I was totally thinking of 42 during the "audience participation" o_O
RE: (function(){})() - following the ES spec you do need the brackets (or some other operator) to force the interpreter to treat it as an expression that can be called. Otherwise it's treated as a FunctionDeclaration (which interpreters are suggested to not permit, and has disputable behaviour)
Re: compression of "window" by YUI/Closure - after gzip that effect is negligable/null.
I like your monkey-patches to speeds etc, but for sites that are developed long-term it's too closely linked IMHO.
with regard to 10:16 , wouldn't that cause a memory leak? since, when using recursion you are calling the function from within a function? Would it not have to store the function in memory to await a result before it can move forward and return?
Or does setTimeout(code, ms) set a timeout in a global sense, and allow you to move forward to the next line of code?
Thank you for going into detail with jQuery! Because of you willing to take the time and run through some of these key features, jQuery is a lot less intimidating to me now.
Your unique modification is ingenious, I feel quite silly that it took me so long to realize it. Can you provide links to your jQuery enhanced git project
Is there really any advantage to the Function constructor version? Can you explain further? Does it limit the execution rights of the code in a way the eval doesn't?
You're the man Paul Irish.
xoreznik 5 days ago
Loopsiloopsiloo
shortysbest 2 months ago
He is definitely drunk ;p
jaseemabid 3 months ago 8
Dude you are freaking genius very well done.
webchamp930 4 months ago 5
Best part: 32:00 LOL
HQExperience 5 months ago
@HQExperience I am convinced that Paul was totally drunk when making this... lol
DavidVII7 3 months ago
Cornify!
johnarleyburns 5 months ago
Great and Fascinating !
It's funny and very educational !
Thanks.
jazzyjester 6 months ago
This is awesome. I just started toying around with the jQuery source and got so thrown off by a couple of things (that opening parenthesis was driving me crazy!) and this cleared everything up. And I was totally thinking of 42 during the "audience participation" o_O
Neurotrace 6 months ago
local variables is selection between active point of choice.
flowewritharoma 7 months ago
29:33-29:36 your wiener is showing
frosty1433 7 months ago
The asshole effect. This explanation is the booomb son!
midinerd 9 months ago 2
lol @ 25:45
"thats how to do cross-browser ajax, no big deal"
O_o
xec7 11 months ago 3
This overview is fantastic! Thanks so much for putting your time and effort into making this Paul, I found it quite informative and helpful.
dandymcgee 11 months ago
RE: (function(){})() - following the ES spec you do need the brackets (or some other operator) to force the interpreter to treat it as an expression that can be called. Otherwise it's treated as a FunctionDeclaration (which interpreters are suggested to not permit, and has disputable behaviour)
Re: compression of "window" by YUI/Closure - after gzip that effect is negligable/null.
I like your monkey-patches to speeds etc, but for sites that are developed long-term it's too closely linked IMHO.
timwintle 1 year ago
@timwintle Correct, you will need to parse it to run it, that's what !, + or () do.
xx0430 2 months ago
with regard to 10:16 , wouldn't that cause a memory leak? since, when using recursion you are calling the function from within a function? Would it not have to store the function in memory to await a result before it can move forward and return?
Or does setTimeout(code, ms) set a timeout in a global sense, and allow you to move forward to the next line of code?
arpace 1 year ago
Comment removed
arpace 1 year ago
Comment removed
arpace 1 year ago
man you are smart haha
JREAMdesign 1 year ago
Damn funny.
Loved the witty overtones and spectacular insights.
Keep up these videos... they are both entertaining and highly instructive.
Thanks so much.
ThomasBurleson 1 year ago
pretty good Paul, thanks.
gusaiani 1 year ago
Thank you for going into detail with jQuery! Because of you willing to take the time and run through some of these key features, jQuery is a lot less intimidating to me now.
skatershaner 1 year ago 9
Your unique modification is ingenious, I feel quite silly that it took me so long to realize it. Can you provide links to your jQuery enhanced git project
hebetude113 1 year ago
Why am i seeing INNA - Love[Official Video] in Suggestions?? ;)
boneysin 1 year ago
Really good vid, thanks.
Nosforit 1 year ago
lol @ 24:20 :)
shatminer 1 year ago
Cheers, woah, like, I can't believe I sat through all that, but, like, it was really interesting all the same, woah. jQuery rules. \m/
jamesfurey 1 year ago
Jump to 07:46 for the part about async recursion (setInterval vs setTimeout).
geertdd 1 year ago 13
what text editor is this?
Liammm123 1 year ago
@Liammm123 textmate
ranzadk 1 year ago
var foo = eval("(" + data + ")");
// vs.
var foo = (new Function("return " + data))();
Is there really any advantage to the Function constructor version? Can you explain further? Does it limit the execution rights of the code in a way the eval doesn't?
dukdukgoos 1 year ago
Awesome. Sending a BIG THANK YOU !
dusanhlavaty 1 year ago
This video is a bundle of awesomeness!
javascripterrific 1 year ago
This is a really good video, packed with useful info. The presenter does look to be on drugs though, laughing at his own jokes :)
bertrandleroy 1 year ago
da good stuff
Nerform 1 year ago
Wow...reaaaalllllyy usefull video. Thank you very much Paul
gotys2 1 year ago
Uh! 04:22 when he switch windows you can see the name of the editor. Its TextMate, sadly is not free :(
artaviar 1 year ago
What editor is he using?
artaviar 1 year ago
Comment removed
chsnover 1 year ago
It's just typical thing you have in prototype based language, such as IO (interpreted) or Lisaac (compiled). These languages permit more...
Ontologiae7 1 year ago
Nice video.
AlicanC 1 year ago
Great video.
But I thought, that $.browser was deprecated.
So why you used that? Because you couldn't figure out that browser is IE in another way? Could you explain that?
singlespl 1 year ago
longgg video :)
iy8686 1 year ago