As a guy who came from a background similar to the folks you're teaching the biggest leap I had to make when learning about OOP was the connection between OOP and what I had to do the code for an interface. The idea of OOP was easy, but when I should I be using it? So try to use some practical examples in your presentation when you have the time.
dan On Sun, Dec 4, 2011 at 12:59 PM, Jared Hirsch <ja...@jaredhirsch.com> wrote: > With only 10 minutes, you hardly have time to introduce the idea of code > reuse via inheritance to a non-programmer audience, let alone make clear the > distinction between classical and prototypal approaches. If they haven't > programmed in other languages, they won't have class-oriented oop experience > to draw on. > > Moreover, the first step designers usually take is not to problems where the > question is, "what inheritance method is most elegant?", but more like, "how > can i get jquery to do X?". > > If it were me, I'd talk about code reuse and composition vs inheritance by > appealing to very simple, concrete, DOM scripty examples. If you can show > where the inheritance approach to reuse is practical and useful (avoid zoo > animal examples), they will maybe be inspired to go further on their own. > > Hope this helps, > > Jared > > On Dec 4, 2011 4:29 AM, "Jarek Foksa" <ja...@kiwi-themes.com> wrote: > > I would focus on explaining how the inheritance works via __proto__ link. > > Once you understand that, you can choose yourself whether you want to > use constructor functions, Object.create() or pseudo-classical > frameworks like Prototype.js to build your prototype chain. > > > -- > To view archived discussions from the original JSMentors Mailman list: > http://www.mail-archive.... > > -- > To view archived discussions from the original JSMentors Mailman list: > http://www.mail-archive.com/jsmentors@jsmentors.com/ > > To search via a non-Google archive, visit here: > http://www.mail-archive.com/jsmentors@googlegroups.com/ > > To unsubscribe from this group, send email to > jsmentors+unsubscr...@googlegroups.com -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/jsmentors@jsmentors.com/ To search via a non-Google archive, visit here: http://www.mail-archive.com/jsmentors@googlegroups.com/ To unsubscribe from this group, send email to jsmentors+unsubscr...@googlegroups.com