Re: What is OOP?

Liste des GroupesRevenir à cl c++ 
Sujet : Re: What is OOP?
De : chris.m.thomasson.1 (at) *nospam* gmail.com (Chris M. Thomasson)
Groupes : comp.lang.c++
Date : 03. Dec 2024, 21:16:51
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vinovj$aonc$1@dont-email.me>
References : 1 2 3 4 5
User-Agent : Mozilla Thunderbird
On 12/3/2024 2:38 AM, wij wrote:
On Mon, 2024-12-02 at 14:59 -0800, Chris M. Thomasson wrote:
On 12/2/2024 12:49 AM, wij wrote:
On Sun, 2024-12-01 at 20:34 -0800, Tim Rentsch wrote:
wij <wyniijj5@gmail.com> writes:
>
In response to the question of the subject line...
>
Just because a program is being written in a language that has
functions doesn't mean that what is being done is functional
programming.
>
Just because a program is being written in a language that has
classes and objects doesn't mean that what is being done is
object-oriented programming.
>
More than anything else object-oriented programming is a mindset
or a programming methodology.  It helps if the language being
used supports classes, etc, but the methodology can be used even
in languages that don't have them.
>
A quote:
>
      My guess is that object-oriented programming will be in the
      1980s what structured programming was in the 1970s.
      Everyone will be in favor of it.  Every manufacturer will
      promote his products as supporting it.  Every manager will
      pay lip service to it.  Every programmer will practice it
      (differently).  And no one will know just what it is.
>
That paragraph is taken from a paper written more than 40 years
ago.  The prediction came true with a vengeance, even more than
the author expected.  Most of what has been written about object
oriented programming was done by people who didn't understand it.
>
Two more quotes, these from Alan Kay:
>
      I invented the term "Object Oriented Programming," and C++
      is not what I had in mind.
>
      Though Smalltalk's structure allows the technique now known
      as data abstraction to be easily (and more generally)
      employed, the entire thrust of its design has been to
      supersede the concept of data and procedures entirely;  to
      replace these with the more generally useful notions of
      activity, communication, and inheritance.
>
Thanks for those information (I did not particularly study 'OOP').
  From my >20 years of practice, I would say the object+action model
works nearly perfectly. Particularly it is the same idea with
abstract algebra. IOW, OOP is programming abstract algebra for
general problems.
I recently read a book (translation version)
https://www.amazon.com/Mind-Motion-Action-Shapes-Thought/dp/046509306X
OO is probably also how our brain works. So, yes, we don't absolutely need OO
language to program in OO, OO is natural (thou C++ is very suitable. And, there
may be other kind of good programming model).
>
Note: A point in 'the' inheritance theory of OO is seriously false.
        I can't say it right now, it is about inherited class has to delete
        inherited member.
>
>
Have you ever messed around with cohort scheduling? Not sure why I am
thinking of that now after reading your response. Humm...
>
https://www.microsoft.com/en-us/research/wp-content/uploads/2016/02/tr-2001-39.pdf
 Just like the reason libwy uses POSIX API, mostly, and does pretend it is not.
If you want to understand the basic programming objects, try POSIX thread first
(even just by reading the manual is helpful enough) not that from C++std library.
 There are many books talk about POSIX threads in C. mess around those C codes, then
you get the real thing.
 
Fwiw, I used POSIX Threads for many years. Heck, I even used to converse with the Man himself... ;^) Dave Butenhof over on c.p.t, back in its glory days. He wrote an interesting book:
https://www.amazon.com/Programming-POSIX-Threads-David-Butenhof/dp/0201633922
It was fun talking to him. :^)
So, I know how to use POSIX, and PThreads to boot. Then, when C/C++11 came out, well... I started to port some of my work over to it. They work well and are more standard than PThreads in a sense?
Fwiw, my pthread lib of choice over in the windows world was:
https://sourceware.org/pthreads-win32/
I remember back when I won a brand new SunFire t2000 server (before they were available for sale to the public) wrt the CoolThreads contest with my experimental vZoom project. I used PThreads on Solaris for that. fun times! :^D

Date Sujet#  Auteur
1 Dec 24 * What is OOP?45wij
1 Dec 24 +* Re: What is OOP?2Ross Finlayson
1 Dec 24 i`- Re: What is OOP?1Ross Finlayson
1 Dec 24 +* Re: What is OOP?3Lynn McGuire
1 Dec 24 i+- Re: What is OOP?1Ross Finlayson
2 Dec 24 i`- Re: What is OOP?1Bonita Montero
1 Dec 24 +* Re: What is OOP?2Michael S
2 Dec 24 i`- Re: What is OOP?1wij
2 Dec 24 +* Re: What is OOP?6Richard Damon
2 Dec 24 i`* Re: What is OOP?5wij
2 Dec 24 i +- Re: What is OOP?1Richard Damon
8 Dec 24 i `* Re: What is OOP?3Isaac Ganoung
9 Dec 24 i  `* Re: What is OOP?2wij
9 Dec 24 i   `- Re: What is OOP?1wij
2 Dec 24 +* Re: What is OOP?3Chris M. Thomasson
2 Dec 24 i`* Re: What is OOP?2wij
3 Dec 24 i `- Re: What is OOP?1wij
2 Dec 24 +* Re: What is OOP?24Tim Rentsch
2 Dec 24 i+* Re: What is OOP?4Michael S
15 Dec 24 ii`* Re: What is OOP?3Tim Rentsch
15 Dec 24 ii `* Re: What is OOP?2Michael S
17 Dec 24 ii  `- Re: What is OOP?1Tim Rentsch
2 Dec 24 i+* Re: What is OOP?13wij
3 Dec 24 ii`* Re: What is OOP?12Chris M. Thomasson
3 Dec 24 ii +- Re: What is OOP?1wij
3 Dec 24 ii `* Re: What is OOP?10wij
3 Dec 24 ii  `* Re: What is OOP?9Chris M. Thomasson
4 Dec 24 ii   `* Re: What is OOP?8wij
7 Dec 24 ii    +* Re: What is OOP?3Chris M. Thomasson
7 Dec 24 ii    i`* Re: What is OOP?2wij
7 Dec 24 ii    i `- Re: What is OOP?1Ross Finlayson
20 Dec 24 ii    `* Re: What is OOP?4Chris M. Thomasson
20 Dec 24 ii     `* Re: What is OOP?3Chris M. Thomasson
20 Dec 24 ii      `* Re: What is OOP?2Chris M. Thomasson
24 Dec 24 ii       `- Re: What is OOP?1Chris M. Thomasson
7 Dec 24 i`* Re: What is OOP? --- The most important aspect of OOP6olcott
7 Dec 24 i +* Re: What is OOP? --- The most important aspect of OOP4Richard Damon
7 Dec 24 i i+- Re: What is OOP? --- The most important aspect of OOP1olcott
9 Dec 24 i i`* Re: What is OOP? --- The most important aspect of OOP2Tim Rentsch
10 Dec 24 i i `- Re: What is OOP? --- The most important aspect of OOP1Ross Finlayson
7 Dec 24 i `- Re: What is OOP? --- The most important aspect of OOP1wij
4 Dec 24 `* Re: What is OOP?4Rosario19
4 Dec 24  +- Re: What is OOP?1wij
18 Dec 24  `* Re: What is OOP?2Stefan Ram
19 Dec 24   `- Re: What is OOP?1wij

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal