[Tutor] [Slightly OT] Inheritance, Polymorphism and Encapsulation
kent37 at tds.net
Wed Sep 19 13:08:15 CEST 2007
Alan Gauld wrote:
> What I was referring to was the lack of any kind of class
> structure at all, a purely prototype driven OOP style.
Wikipedia has an article about prototype-based programming:
This paper makes an interesting argument for prototype-based OOP in
They say that in UI programming, single-use classes are often created;
classes that implement a specific widget or window. In these cases the
dichotomy between class and object is not useful, in fact it adds extra
cognitive load to the program without providing any benefit.
Prototype-based programming is a better fit for this problem domain
because instanced with the desired behaviour are created directly.
More information about the Tutor