L
lorlarz
If you missed them, this will get you to one:
http://developer.yahoo.com/yui/theater/video.php?v=crockonjs-3
(the other 2 recent lectures are also more than worthwhile)
In addition to the one piece of mysterious code I asked about earlier
today
(and which I really, really really still need more explanation of),,
Crockford also showed (,but did not explain) the following:
The Y Combinator
function y(le) {
return (function (f) {
return f(f);
}(function (f) {
return le(function (x) {
return f(f)(x);
});
}));
}
varfactorial = y(function (fac) {
return function (n) {
return n <= 2 ? n : n * fac(n -1);
};
});
varnumber120 = factorial(5);
While I would love to hear the full explanation I could understand of
this,
it is more important to me to here a more full explanation of
memoization --
which I asked about in an earlier thread today.
BUT, Crockford says if you can expalin The Y Combinator, then
you are truly someone who can declare himself a computer scientist.
http://developer.yahoo.com/yui/theater/video.php?v=crockonjs-3
(the other 2 recent lectures are also more than worthwhile)
In addition to the one piece of mysterious code I asked about earlier
today
(and which I really, really really still need more explanation of),,
Crockford also showed (,but did not explain) the following:
The Y Combinator
function y(le) {
return (function (f) {
return f(f);
}(function (f) {
return le(function (x) {
return f(f)(x);
});
}));
}
varfactorial = y(function (fac) {
return function (n) {
return n <= 2 ? n : n * fac(n -1);
};
});
varnumber120 = factorial(5);
While I would love to hear the full explanation I could understand of
this,
it is more important to me to here a more full explanation of
memoization --
which I asked about in an earlier thread today.
BUT, Crockford says if you can expalin The Y Combinator, then
you are truly someone who can declare himself a computer scientist.