Talk:Class (computer programming)
This is the talk page for discussing improvements to the Class (computer programming) article. This is not a forum for general discussion of the article's subject. |
Article policies
|
Find sources: Google (books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL |
Archives: 1 |
![]() | Computing Unassessed | |||||||||
|
|
|
References
This article cites zero (yes, zero) references. It's been around for a few years... it's about time someone got in there and added something, anything in. Jess (talk) 03:18, 1 August 2010 (UTC)
Examples
The examples on this page were severely lacking in that they previously did not demonstrate why one would wish to use a class. (The PHP example is still poor, but I don't know enough about objects in PHP to fix it.)
In general, when you have multiple language examples then they should be functionally equivalent and demonstrate the property about which you are speaking. In this case, classes as a medium for data encapsulation and abstraction.
The comment about the Java example showing object instantiation is irrelevant, because both the Ruby and Lisp examples also instantiate objects. 62.253.228.193 (talk) 08:09, 31 August 2010 (UTC)
- We don't want all the examples to be functionally equivalent. On the contrary, we want them to all be different. This article isn't about comparing languages, it's about demonstrating what a class is. We want a few examples highlighting classes, and some of the features generally associated with OOP. It's good for us to use multiple languages for those examples since 1) they're simple enough to be considered pseudocode anyway, and 2) we want to keep this article general, and not cater to one language only.
- Each of the examples shows different things, and in different ways. In the long-run, it would be good to have an example within each section which highlights what's being talked about in that section... but for now a list of examples at the end is how the article was written, so that'll have to do. Jesstalk|edits 08:42, 31 August 2010 (UTC)
- That's not useful in any way whatsoever. None of the examples to date have even shown data encapsulation, inheritance, abstract base class, composition. By your own reasoning the examples are lacklustre - there's hardly any point having them. The moronic "hello world" Java class has exactly zero value.
- You have suggested how to improve the examples by moving them to the relevant sections. Until then, I don't believe these changes reduce the quality of the article. Learn to let go.
- "That'll have to do." -- Yep, that pretty much sums up the Wikipedia experience. 62.253.228.193 (talk) 09:06, 31 August 2010 (UTC)
- Please read WP:Civil and WP:AGF. You're quickly approaching a civility barrier which is making collaboration difficult. As I stated, the examples as they are now are less useful than they could be, and should be expanded upon and moved into specialized sections. However, that hasn't been done yet... so for right now they do very much serve a purpose at the end of the article. Changing all the examples so that they do the same thing eliminates that purpose. If we're just showing one thing, we should just have one example. Jesstalk|edits 09:30, 31 August 2010 (UTC)