Content deleted Content added
GimliDotNet (talk | contribs) →Cut down examples: new section |
→Cut down examples: Reply |
||
Line 146:
Restored the examples, but then removed all but two. The ones I've chosen are C++ and Java, purely because this will cover a wide range of users, JavaScript is not OO and therefore is not a suitable example for this article, and Java/C/C# users should all be able to interpret the Java example quite easily. [[User:Carl Sixsmith|Carl Sixsmith]] ([[User talk:Carl Sixsmith|talk]]) 07:58, 26 October 2011 (UTC)
: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)
|