Talk:Object-oriented programming: Difference between revisions
TakuyaMurata (talk | contribs) I would like to rename this to object theory |
Undid revision 1258378443 by 182.2.100.90 (talk) rv random drive-by post |
||
(675 intermediate revisions by more than 100 users not shown) | |||
Line 1: | Line 1: | ||
{{talk header}} |
|||
I would like to rename this to [[object theory]]. I understand object-oriented programming is the most common term and nearly no one uses a word like object theory instead of it. But the trouble with the current title is OOP is a POV'd term. The situation is similar to that in socialism or communism. The majority of people claim class, inheritance and encapslation are foundamental aspects of OOP but some argue inheritance is not always necessary, for instance. It doesn't matter who is right. The fact is there are disputes regarding the definition of object-oriented programming. So it would be troublesome with the current name as some claim inheritance is an aspect of class-based OOP then the article sholdn't cover, while some say inheritance is a foundamental of OOP and there is no reason that the article doesn't cover it. I don't think such debate would be settled. The benefit of the title [[object theory]] is it is more abstract term. It can discuss languages before object-oriented programming. Ada8 something supports objects but is usually considered not OOP. Then where we should discuss such? A separate article? The title object theory implies it is about programming aspect regarding objects. It is a broader term that can contain class-based OOP, object-based programming and so on. [[Subprogram]] is an good example. People hardly uses a term subprogram over subroutines or functions. But in encyclopedia, use of such an abstract term is preferable because if the article named function, it implies a subprogram should be a function like in math, which is not the case. If named subroutine, it tends to emphasizes a behavior as side-effect and it makes hard to talk about function in functional languages. OOP is a similar case. |
|||
{{WikiProject banner shell|class=B|vital=yes|1= |
|||
{{WikiProject Computer science |importance=Top}} |
|||
{{WikiProject Computing|importance=High|software=y |software-importance=Top |science=y |science-importance=Top}} |
|||
{{WikiProject Software|importance=top|computing-importance=high}} |
|||
}} |
|||
{{findsources|object-oriented}} |
|||
{{User:MiszaBot/config |
|||
| algo = old(180d) |
|||
| archive = Talk:Object-oriented programming/Archive %(counter)d |
|||
| counter = 3 |
|||
| maxarchivesize = 100K |
|||
| archiveheader = {{Talk archive navigation}} |
|||
| minthreadstoarchive = 2 |
|||
| minthreadsleft = 4 |
|||
}} |
|||
== Common Lisp == |
|||
And as usual, if I don't see an object, I will go ahead. -- [[User:TakuyaMurata|Taku]] 13:44 23 May 2003 (UTC) |
|||
Common Lisp is NOT a object oriented language.You can do object oriented programming in Common Lisp (it even has its own set of operators for that: the Common Lisp Object System. Or you can write your own), but you don't have to, and most of the time, you won't need the extra garbage. [[Special:Contributions/77.171.29.82|77.171.29.82]] ([[User talk:77.171.29.82|talk]]) 23:59, 15 February 2024 (UTC) |
|||
:I'm a bit confused. The argument I see here is that because one can avoid doing object oriented programming in Common Lisp, Common Lisp is not object oriented. But that applies to many languages, e.g. C++ can be used procedurally (in its C subset). There is a term in the article "pure OO languages" which is defined as languages where everything is treated consistently as an object, which clearly Common Lisp and C++ do not satisfy. But the general concepts of OO seem present in CLOS. [[User:Mathnerd314159|Mathnerd314159]] ([[User talk:Mathnerd314159|talk]]) 01:18, 16 February 2024 (UTC) |
|||
:But all values in Common Lisp are objects and instances of some class. See for example the [https://www.lispworks.com/documentation/HyperSpec/Body/t_intege.htm integer class]. You do not have to write your own classes, still, and you can use normal functions instead of generic functions. But all classes (including structure classes made by defstruct) can be dispatched on by generic functions. I find using classes and generic functions in Common Lisp is useful and not garbage, and certainly people do use those features of CLOS, but "the extra garbage" would not be starting that discussion on the right foot. [[Special:Contributions/150.203.65.55|150.203.65.55]] ([[User talk:150.203.65.55|talk]]) 11:16, 19 March 2024 (UTC) |
|||
== We could write this more simply == |
|||
I'm taking an entry-level computer class and I can't make heads or tails of this article. Procedural programming seems simple but I don't know what the teacher means by "objects". [[Special:Contributions/136.223.34.54|136.223.34.54]] ([[User talk:136.223.34.54|talk]]) 15:19, 15 April 2024 (UTC) |
|||
:OOP is complex and vague - it is hard to discuss it concisely. I think the article structure is about as good as it gets. But you are right that the "objects" section does not define objects, I have added a definition. [[User:Mathnerd314159|Mathnerd314159]] ([[User talk:Mathnerd314159|talk]]) 21:43, 15 April 2024 (UTC) |
|||
::انا اول مره [[Special:Contributions/185.133.180.19|185.133.180.19]] ([[User talk:185.133.180.19|talk]]) 12:43, 17 April 2024 (UTC) |
|||
:@[[User:136.223.34.54|136.223.34.54]] i agree. this article is written poorly. OOP Is not a complex and vague topic as other says. people make it more complicated than it is. [[User:Stevebroshar|Stevebroshar]] ([[User talk:Stevebroshar|talk]]) 01:07, 25 October 2024 (UTC) |
|||
::That is a problem with WP. Perhaps articles are written by subject experts who are used to talking with other subject experts and put things in terms that others can't understand. |
|||
::Or maybe it is that so many make amendments it becomes an unintelligible mess, like C++. |
|||
::Or maybe it is because of things like C++ and UML that OO itself has become this mess that it should not be. [[User:Ian.joyner|Ian.joyner]] ([[User talk:Ian.joyner|talk]]) 07:27, 25 October 2024 (UTC) |
|||
:OOP helps organise projects, but in a disciplined and mathematical way. You should read [[Object-Oriented Software Construction]]. This is true and clean OO, but not one that simplifies the most sophisticated aspects of OO or programming. |
|||
:An object, in itself is a self-contained computer that handles one kind of data. Objects interact via messages. |
|||
:Don't get misled by horrors such as C++ or UML. [[User:Ian.joyner|Ian.joyner]] ([[User talk:Ian.joyner|talk]]) 07:21, 25 October 2024 (UTC) |
|||
== Criticism section no longer present? == |
|||
In the 'Real-world modeling and relationships' section, a 'criticism' section is referenced. This seems to be no longer present. [[User:BartYgor|BartYgor]] ([[User talk:BartYgor|talk]]) 07:19, 3 May 2024 (UTC) |
|||
:Good catch, indeed the criticism was added to the section (the Yegge quotes). [[User:Mathnerd314159|Mathnerd314159]] ([[User talk:Mathnerd314159|talk]]) 14:26, 3 May 2024 (UTC) |
|||
== "[[:Criticism of object-oriented programming]]" listed at [[Wikipedia:Redirects for discussion|Redirects for discussion]] == |
|||
[[File:Information.svg|30px]] |
|||
The redirect <span class="plainlinks">[//en.wikipedia.org/enwiki/w/index.php?title=Criticism_of_object-oriented_programming&redirect=no Criticism of object-oriented programming]</span> has been listed at [[Wikipedia:Redirects for discussion|redirects for discussion]] to determine whether its use and function meets the [[Wikipedia:Redirect|redirect guidelines]]. Readers of this page are welcome to comment on this redirect at '''{{slink|Wikipedia:Redirects for discussion/Log/2024 November 11#Criticism of object-oriented programming}}''' until a consensus is reached. <!-- Template:RFDNote --> [[User:Tea2min|Tea2min]] ([[User talk:Tea2min|talk]]) 09:55, 11 November 2024 (UTC) |
Latest revision as of 23:41, 19 November 2024
This is the talk page for discussing improvements to the Object-oriented 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, 2, 3Auto-archiving period: 6 months |
This level-4 vital article is rated B-class on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Find sources: Google (books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL
Common Lisp
[edit]Common Lisp is NOT a object oriented language.You can do object oriented programming in Common Lisp (it even has its own set of operators for that: the Common Lisp Object System. Or you can write your own), but you don't have to, and most of the time, you won't need the extra garbage. 77.171.29.82 (talk) 23:59, 15 February 2024 (UTC)
- I'm a bit confused. The argument I see here is that because one can avoid doing object oriented programming in Common Lisp, Common Lisp is not object oriented. But that applies to many languages, e.g. C++ can be used procedurally (in its C subset). There is a term in the article "pure OO languages" which is defined as languages where everything is treated consistently as an object, which clearly Common Lisp and C++ do not satisfy. But the general concepts of OO seem present in CLOS. Mathnerd314159 (talk) 01:18, 16 February 2024 (UTC)
- But all values in Common Lisp are objects and instances of some class. See for example the integer class. You do not have to write your own classes, still, and you can use normal functions instead of generic functions. But all classes (including structure classes made by defstruct) can be dispatched on by generic functions. I find using classes and generic functions in Common Lisp is useful and not garbage, and certainly people do use those features of CLOS, but "the extra garbage" would not be starting that discussion on the right foot. 150.203.65.55 (talk) 11:16, 19 March 2024 (UTC)
We could write this more simply
[edit]I'm taking an entry-level computer class and I can't make heads or tails of this article. Procedural programming seems simple but I don't know what the teacher means by "objects". 136.223.34.54 (talk) 15:19, 15 April 2024 (UTC)
- OOP is complex and vague - it is hard to discuss it concisely. I think the article structure is about as good as it gets. But you are right that the "objects" section does not define objects, I have added a definition. Mathnerd314159 (talk) 21:43, 15 April 2024 (UTC)
- انا اول مره 185.133.180.19 (talk) 12:43, 17 April 2024 (UTC)
- @136.223.34.54 i agree. this article is written poorly. OOP Is not a complex and vague topic as other says. people make it more complicated than it is. Stevebroshar (talk) 01:07, 25 October 2024 (UTC)
- That is a problem with WP. Perhaps articles are written by subject experts who are used to talking with other subject experts and put things in terms that others can't understand.
- Or maybe it is that so many make amendments it becomes an unintelligible mess, like C++.
- Or maybe it is because of things like C++ and UML that OO itself has become this mess that it should not be. Ian.joyner (talk) 07:27, 25 October 2024 (UTC)
- OOP helps organise projects, but in a disciplined and mathematical way. You should read Object-Oriented Software Construction. This is true and clean OO, but not one that simplifies the most sophisticated aspects of OO or programming.
- An object, in itself is a self-contained computer that handles one kind of data. Objects interact via messages.
- Don't get misled by horrors such as C++ or UML. Ian.joyner (talk) 07:21, 25 October 2024 (UTC)
Criticism section no longer present?
[edit]In the 'Real-world modeling and relationships' section, a 'criticism' section is referenced. This seems to be no longer present. BartYgor (talk) 07:19, 3 May 2024 (UTC)
- Good catch, indeed the criticism was added to the section (the Yegge quotes). Mathnerd314159 (talk) 14:26, 3 May 2024 (UTC)
The redirect Criticism of object-oriented programming has been listed at redirects for discussion to determine whether its use and function meets the redirect guidelines. Readers of this page are welcome to comment on this redirect at Wikipedia:Redirects for discussion/Log/2024 November 11 § Criticism of object-oriented programming until a consensus is reached. Tea2min (talk) 09:55, 11 November 2024 (UTC)
- B-Class level-4 vital articles
- Wikipedia level-4 vital articles in Technology
- B-Class vital articles in Technology
- B-Class Computer science articles
- Top-importance Computer science articles
- WikiProject Computer science articles
- B-Class Computing articles
- High-importance Computing articles
- B-Class software articles
- Top-importance software articles
- B-Class software articles of Top-importance
- All Software articles
- All Computing articles