Wikipedia:Articles for deletion/Comparison of Java and C++

From Wikipedia, the free encyclopedia
The following discussion is an archived debate of the proposed deletion of the article below. Please do not modify it. Subsequent comments should be made on the appropriate discussion page (such as the article's talk page or in a deletion review). No further edits should be made to this page.

The result was keep. Sandstein 08:48, 1 January 2022 (UTC)[reply]

Comparison of Java and C++[edit]

Comparison of Java and C++ (edit | talk | history | protect | delete | links | watch | logs | views) – (View log | edits since nomination)
(Find sources: Google (books · news · scholar · free images · WP refs· FENS · JSTOR · TWL)

Although this article's been around for a while, I don't see it as encyclopedic. None of the cited sources explicitly contrast the two languages, so it's mostly original research to compare them beyond face value. In that respect, any meaningful comparison beyond a table would just be a special case of "pros/cons of garbage collection, native code vs bytecode..." which can be better dealt with at each feature's respective article. More generally, comparing two vastly different languages like this isn't Wikipedia's job. "Comparison of C and C++" would arguably make sense, for example, because they are closely related and the difference between them is important (some valid C is not C++, etc), but that's not the case here. Even if Java and C++ are both old, popular and object oriented, that's not a particularly compelling reason to dedicate an article to comparing them. Cheers, Ovinus (talk) 16:43, 17 December 2021 (UTC)[reply]

  • Delete per nom. This should be a YouTube video, not an encyclopedic entry. Waddles 🗩 🖉 17:42, 17 December 2021 (UTC)[reply]
  • Keep, some of the sources in the article do explicitly contrast the two languages.[1][2] There are also many more sources which do the same.[3][4][5][6][7] So the comparison is notable.

References

  1. ^ Robert C. Martin (January 1997). "Java vs. C++: A Critical Comparison" (PDF). Archived from the original (PDF) on 11 May 2008. Retrieved 15 December 2007.
  2. ^ Hundt, Robert (2011-04-27). "Loop Recognition in C++/Java/Go/Scala" (PDF). Stanford, California: Scala Days 2011. Retrieved 2012-11-17. Java shows a large GC component, but a good code performance. [...] We find that in regards to performance, C++ wins out by a large margin. [...] The Java version was probably the simplest to implement, but the hardest to analyze for performance. Specifically the effects around garbage collection were complicated and very hard to tune; 318 kB
  3. ^ Prechelt, L. (1999). "Technical opinion: comparing Java vs. C/C++ efficiency differences to interpersonal differences" (pdf). Communications of the ACM. 42 (10): 109–112. CiteSeerX 10.1.1.64.2193. doi:10.1145/317665.317683. S2CID 18549854.
  4. ^ Ghosh, D. (2004). "Generics in Java and C++ a comparative model". ACM SIGPLAN Notices. 39 (5): 40–47. CiteSeerX 10.1.1.453.2181. doi:10.1145/997140.997144. S2CID 14265893.
  5. ^ Mayrand, J.; Patenaude, J.F.; Merlo, E.; Dagenais, M.; Laguë, B. (2000). "Software assessment using metrics: A comparison across large C++ and Java systems". Annals of Software Engineering. 9 (1). Springer: 117–141. doi:10.1023/A:1018924724621. S2CID 9023504.
  6. ^ Gherardi, L.; Brugali, D.; Comotti, D. (2012). A java vs. c++ performance evaluation: a 3d modeling benchmark (PDF). Lecture Notes in Computer Science. Vol. 7628. Springer. pp. 161–172. doi:10.1007/978-3-642-34327-8_17. ISBN 978-3-642-34326-1. {{cite book}}: |journal= ignored (help)
  7. ^ As’ad Mahmoud Alnaser; Omar AlHeyasat; Ashraf Abdel-Karim Abu-Ein; Hazem (Moh’d Said) Hatamleh; Ahmed A. M. Sharadqeh (2012). "Time Comparing between Java and C++ Software". Journal of Software Engineering and Applications. 5 (8): 630–633. doi:10.4236/jsea.2012.58072.

SailingInABathTub (talk) 21:10, 17 December 2021 (UTC)[reply]

@SailingInABathTub: Wikipedia is not for comparing things though, regardless of how comparable the two products are. Wikipedia's an encyclopedia, not a buying guide. Waddles 🗩 🖉 22:16, 17 December 2021 (UTC)[reply]
What about Comparison of programming languages, Category:Programming language comparisons, and Category:Comparison of individual programming languages? SailingInABathTub (talk) 22:23, 17 December 2021 (UTC)[reply]
@SailingInABathTub: I'm slightly indecisive on what I think of these. On the first hand, those seem different from the one in this discussion. I'd say they are more encyclopedic list rather than guides like this one is. On the second hand however, they are still somewhat more of an answer to "what should I use?" versus an encyclopedia entry and I don't see any other use of those for anyone besides people looking for what they should use, and really only serve people outside of Wikipedia. I'd say I lean more towards deleting them all, because the only other comparisons on Wikipedia that I know of involve languages, like Portuguese vs Spanish and US English vs UK English. Waddles 🗩 🖉 23:28, 17 December 2021 (UTC)[reply]
There is also Comparison of top chess players throughout history, Comparison of the AK-47 and M16, Comparison of web browsers, Comparison of American and Canadian football, Comparison of Macintosh models and many, many more. I think notable comparisons are pretty ubiquitous on Wikipedia. I agree though that this particular article requires improvement. SailingInABathTub (talk) 00:55, 18 December 2021 (UTC)[reply]
It is a reasonable position to take that Wikipedia is not for comparing things, but it would need a wider discussion than this for us to accept that principle. I find 780 pages in article space with "comparison of" in the title. Phil Bridger (talk) 11:02, 18 December 2021 (UTC)[reply]
Looking over those articles, it seems many "comparison of" deletion discussions are contentious. There are definitely some notable comparisons, but I'm not sure (and I don't know of a guideline about this) what metric should be used to gauge whether a comparison deserves its own article. I daresay this topic is more notable than "Comparison of ALGOL 68 and C", but that's an WP:OTHERSTUFFEXISTS argument. With regards to the presented sources, most of the recent ones are comparing particular implementations in Java and C++—not the languages themselves. And anything published before, say, 2006, is pretty firmly outdated; this was before HotSpot really got good at optimization and much before C++11 came out, a version which transformed the modern language. Ovinus (talk) 15:46, 18 December 2021 (UTC)[reply]
  • Keep: comparison is quite informative and exhaustive. - Hatchens (talk) 18:09, 21 December 2021 (UTC)[reply]
  • Keep: The motion (or lean-toward) to delete all comparative articles directly contradicts a long-standing precedent positing that some comparative articles do belong on Wikipedia, complete with their own page. The Comparison of Star Trek and Star Wars article has withstood more than a couple separate VfDs, whereas a formerly existing "Differences Between Pokémon and Digimon" article was deleted. As Ovinus correctly asserts, the issue is dependent on a presently non-existent metric to dictate which comparisons are and are not notable. To begin considering such a metric, we should primarily consider a specific comparison's (1) general prevalence or logical connection, (2) historical or social significance, or (3) legislative relevance. In the case of the Trek/Wars article, its notability arises from the fact that the comparison spawned a sort of social phenomenon; likewise, the immensely pervasive Java/C++ comparisons hold academic and professional significance. As Java is directly influenced by C++, the comparison has historical significance, validating the older presented sources and lending to their encyclopedic (albeit not learning manual-made) relevance. There are serious issues in the article's structure and presentation, but these qualify editing, not deletion. Misandrism (talk) 03:08, 22 December 2021 (UTC)[reply]
  • Keep. Summarizing several refutations of the OP's arguments, partially discussed above:
  • "Although this article's been around for a while, I don't see it as encyclopedic." --- This is a valid perspective but if true, it would require site-wide consensus and not just targeting this specific article
  • "None of the cited sources explicitly contrast the two languages, so it's mostly original research to compare them beyond face value." --- SailingInABathTub lists sources which do independently cover the comparison, and these should be added to the article
  • "comparing two vastly different languages" --- this part is just wrong IMO, C++ and Java are often considered directly adjacent and mentioned in the same sentence. They are the two mainstream languages most known for performance and OOP. It's true that for example, an article on "Comparison of Python and Haskell" or "Comparison of Pascal and Brainfuck" would be ridiculous, but that is not the case here.
The article does, however, need a better lead written. Caleb Stanford (talk) 05:50, 23 December 2021 (UTC)[reply]

Relisted to generate a more thorough discussion and clearer consensus.
Relisting comment: There has been some refutation to the keep arguments, it seems that the existence of sources that directly compare the two languages and the notability conferred from that have shown an argument to keep under WP:GNG; however, there is still a dispute as to how WP:WAX factors into all of this.
Please add new comments below this notice. Thanks, snood1205 01:30, 25 December 2021 (UTC)[reply]

  • Keep - while I have some sympathy for the WP:NOT and WP:SYNTH argument of the nom, the fact is, the editors have managed to put together a quality resource based on verifiable claims that do not have the kind of V/N issues that the SYNTH policy guards us against. The article is problematic, but deletion would not improve our offering as a reference resource and no reasonable ATD has been offered. — Charles Stewart (talk) 22:06, 27 December 2021 (UTC)[reply]
The above discussion is preserved as an archive of the debate. Please do not modify it. Subsequent comments should be made on the appropriate discussion page (such as the article's talk page or in a deletion review). No further edits should be made to this page.