All great replies. Thanks for the feedback, I think I'm going to alter it to:
- Briefly talk over prototypal inheritance vs. OOP - Give examples of where I use OOP principles when building interfaces in JS. Thanks! Samuel Richardson www.richardson.co.nz | 0405 472 748 On Mon, Dec 5, 2011 at 5:18 AM, Daniel Lucas <[email protected]> wrote: > 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 <[email protected]> > 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" <[email protected]> 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/[email protected]/ > > > > To search via a non-Google archive, visit here: > > http://www.mail-archive.com/[email protected]/ > > > > To unsubscribe from this group, send email to > > [email protected] > > -- > To view archived discussions from the original JSMentors Mailman list: > http://www.mail-archive.com/[email protected]/ > > To search via a non-Google archive, visit here: > http://www.mail-archive.com/[email protected]/ > > To unsubscribe from this group, send email to > [email protected] > -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected]
