Note that there are some explanatory texts on larger screens.

plurals
  1. PO(Open Source) Examples of JavaScript Prototypical OO
    text
    copied!<p><strong>Bounty Edit:</strong></p> <p>I'm looking for code written in a <em>pure</em> prototypical OO paradigm (think Self). Not a mixture of prototypical OO and classical OO. I don't want to see generic OO wrappers but simply usage of prototypical OO techniques and <em>only</em> prototypical OO techniques.</p> <p><strong>Reference Related Question:</strong></p> <p><a href="https://stackoverflow.com/questions/6526241/prototypical-oo-in-javascript">Prototypical OO in JavaScript</a></p> <p>In the above question I mainly focused on </p> <blockquote> <p>Can write prototypical OO like this?</p> <p>Do we need constructors and initialization logic, What are the alternatives?</p> </blockquote> <p><strong>New question:</strong></p> <p>Basically are there any <em>good examples of javascript prototypical</em> OO in large open source projects?</p> <p><strong>Clarification:</strong></p> <p>I will have to clarify what I mean with <strong>prototypical OO</strong> :</p> <ul> <li>There are no classes. There are only Objects.</li> <li><strong>There is <em>zero</em> emulation of the concepts of classes,</strong> again there is only objects and cloning objects to create new objects.</li> </ul> <p><strong>Further Clarification of Prototypical OO:</strong></p> <p>The difference between prototypical OO in JavaScript and classical OO emulation is a <em>very grey area</em>. It's not that I <em>value</em> avoiding classical OO. I want to learn prototypical OO in an academic fashion in it's own right, without learning the (probably more optimum) combination of classical OO emulation and prototypical OO.</p> <p>This is why I "ban" classes, just so that I can see these techniques in a pure fashion and extend my own OO tool kit. </p> <p><strong>Examples:</strong></p> <p>Popular examples like jQuery fail to meet the second criteria. The <code>jQuery</code> object is one big class emulation. It focuses on creating new objects from a class rather then cloning existing objects. </p> <p>If I actually knew any example of using <em>"pure"</em> prototypical OO I would have shown you. I believe 99% of JavaScript OO is too heavily influenced by classical emulation.</p> <p><strong>Bonus points</strong> </p> <p>If </p> <ul> <li>It's well comented / documented</li> <li>Has unit tests</li> <li>Is on github.</li> </ul> <p>I will also accept articles / tutorials and examples on how to write prototypical OO code that goes beyond your trivial hello world application.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload