[gameprogrammer] Re: OT: C vs. C++ (Was: Re: [SDL] Re: A question on GUIs)
- From: Matthew Weigel <unique@xxxxxxxxxxx>
- To: gameprogrammer@xxxxxxxxxxxxx
- Date: Mon, 26 Dec 2005 18:22:33 -0600
Chris Nystrom wrote:
On 12/26/05, Clemens Kirchgatterer <clemens@xxxxxxxx> wrote:
this audio lib by no means is anywhere near OO, IMHO.
I do not claim to be an expert, but I believe you are making OO more
complicated than it is.
Going by http://en.wikipedia.org/wiki/Object-oriented_programming:
"In the most general terms, OOP is the practice of writing program
text decomposed in modules that encapsulate the representation of one
data type per module..."
Basically data + methods = objects (or more accurately classes).
No, actually, data is inherent to *objects*, not classes, except
metadata about objects of the class. Objects are fairly concrete
things, you can point to them or reference them or assign them, and they
have a type (which is the class).
I'd recommend reading that article more closely...
"According to the object-oriented principles, the verb is attached to
the object and logic associated to the requirement is handled in the
object."
And
"Widely-used terminology distinguishes object-oriented programming from
object-based. The former is held to include inheritance (described
below), while the latter does not."
Point to some specific hallmarks of OOP that a library encapsulating
data does not meet.
That doesn't really say anything about the quality of your software,
just how you wrote it. Writing in C, without a lot of overhead and
effort, isn't going to be OOP.
--
Matthew Weigel
---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html
- References:
- [gameprogrammer] Re: OT: C vs. C++ (Was: Re: [SDL] Re: A question on GUIs)
- From: Chris Nystrom
Other related posts:
- » [gameprogrammer] Re: OT: C vs. C++ (Was: Re: [SDL] Re: A question on GUIs)
- » [gameprogrammer] Re: OT: C vs. C++ (Was: Re: [SDL] Re: A question on GUIs)
On 12/26/05, Clemens Kirchgatterer <clemens@xxxxxxxx> wrote:
this audio lib by no means is anywhere near OO, IMHO.
I do not claim to be an expert, but I believe you are making OO more complicated than it is. Going by http://en.wikipedia.org/wiki/Object-oriented_programming:
"In the most general terms, OOP is the practice of writing program text decomposed in modules that encapsulate the representation of one data type per module..."
Basically data + methods = objects (or more accurately classes).
- [gameprogrammer] Re: OT: C vs. C++ (Was: Re: [SDL] Re: A question on GUIs)
- From: Chris Nystrom