Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I found that structure of teaching awkward.

If someone already knows some basic javascript, you could show them a basic, familiar function but then show them how it can become a closure. Then make them realize that everything can be treated essentially as an object in javascript, nearly everything, but especially functions.

I didn't know the formal names of "Stateful Closures" or "Continuation Passing" but I knew that I can make a copy of a function as another object so it retains different values than another copy and that I can pass a function as a return value.

They should also cover self-executing closures and using timers in closures via setTimeout(function(){ - I don't think those concepts are too advanced.



The pedagogical structure he is using is known as "programmed instruction." It was popular in the 60's through the 80's for many kinds of technical instruction. One of the interesting characteristics about it is that its progression always seems very easy (often too easy) because it takes small steps and uses repetition. This ensures that the learner is ready for the subsequent step.

It is highly effective if you want the learner to understand a specific set of details quickly. I like it in this context.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: