Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: wij Newsgroups: comp.lang.c++ Subject: Re: What is OOP? Date: Mon, 02 Dec 2024 09:02:04 +0800 Organization: A noiseless patient Spider Lines: 47 Message-ID: References: <20241201234334.00000563@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Date: Mon, 02 Dec 2024 02:02:05 +0100 (CET) Injection-Info: dont-email.me; posting-host="4577dd8d25eca687854d0e4ae5cd6643"; logging-data="3018172"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+3BS/0cgJY64aIt4XwG1D0" User-Agent: Evolution 3.50.2 (3.50.2-1.fc39) Cancel-Lock: sha1:CznleU3BiHX7ZRULsQrETf996AY= In-Reply-To: <20241201234334.00000563@yahoo.com> Bytes: 3286 On Sun, 2024-12-01 at 23:43 +0200, Michael S wrote: > On Mon, 02 Dec 2024 01:17:49 +0800 > wij wrote: >=20 > > There are several understandings: > > https://www.quora.com/As-an-experienced-OOP-programmer-in-your-opinion-= whats-the-biggest-problem-of-OOP-object-oriented-programming > >=20 > > ... > > OO can have many meaning. I took OO to mean object, the basic entity > > of the programming model and the operation of the object. The > > concept, as foundmental, has to be solid, practical and easily > > usable. Otherwise, more codes and efforts will be needed latter to > > fix it, making the original goal ,practically, a lie. IOW, (nearly) a > > flawless model is all the basics. ... > > https://sourceforge.net/projects/cscall/files/MisFiles/ClassGuidelines.= txt/download > >=20 > > From my view, programming language has to provide a model, so that > > programmers know what they are dealing with, to solve the problem > > (recent C++ seems solving just syntax problems). > > In (my) OOP, 'portability' (or reusable) is first achieved by making > > the probramming object compatible (form platform to platfrom or from > > time to time in the same platform, but libwy only considers linux, > > but the idea should be generally applicable), i.e. like pod types, > > structures, union may not be portable. > >=20 > > Programming object or 'concept' are 'better' represented/wrapped by > > class (keyword) All should be simple, I don't know how to make the > > idea of 'object' more simpler. See the guidelines. > >=20 > > OTOH, in C/C++, every memory objects/function has address, the > > language cannot pretend it is not actually dealing with a large array > > of raw 'bytes' and its restrictions (and restrict by Turing Machine). > > I think that is generally where many programming problems from. And, > > understanding C or assembly is nearly a must before understanding > > C++, otherwise, no real meaning, simply put. > >=20 > >=20 >=20 > If you care about this sort of things it's a sure sign that you have > too much time and too little real (or non-real, but interesting) work to > do. Quite the opposite. I had to give up many real, interesting activities to t= alk.