Content deleted Content added
→Cut down examples: Reply |
GimliDotNet (talk | contribs) →Cut down examples: reply |
||
Line 148:
:I actually chose javascript because it ''wasn't'' OO, that way we had one example of polymorphism in an object context, and one in a function context. Why do we need two OO examples? The other benefit of the javascript example is that it's very simple. This is also true of the PHP and Python examples, which show the concept succinctly without getting bogged down in language-specific features and keywords that may not be accessible to a global audience. For instance, the java example (which is one of the best of the bunch), necessarily uses generics, annotations, and package imports inline between classes, without making it clear that they each need to be broken into separate files (why is that distinction important here anyway). I understand those concepts because I program in Java, but others may not. The C++ example has even more jargon. While that problem isn't "the end of the world", so to speak, it isn't a problem shared by other language examples we have readily available. What we need is a clear example in psuedocode (or as close to it as we can get), which is accessible to everyone from every background, with as few features as possible, which only serves to clearly highlight polymorphism, and nothing else. I don't believe the Java and C++ examples do that as well as others we could have chosen. — [[User:Mann_jess|<b>Jess</b>]]<span style="margin:0 7px;font-variant:small-caps;font-size:0.9em">· [[Special:Contributions/Mann_jess|Δ]][[User_talk:Mann_jess|♥]]</span> 16:43, 26 October 2011 (UTC)
:: The article is titled ''Polymorphism in object-oriented programming'' not polymorphism in general, that was my thinking behind leaving two OO examples. I'm not precious on the choice of languages though and agree the examples should be as simple as possible. According to http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html Java is still the number 1 popular programming language, that was the reasoning behind leaving that one in. Personally I'm a .net developer so would prefer a simple example in C#, but I went for the populist approach. I'm not too concerned with which gets chosen though. [[User:Carl Sixsmith|Carl Sixsmith]] ([[User talk:Carl Sixsmith|talk]]) 18:42, 26 October 2011 (UTC)
|