On Sun, 11 Jan 2015 23:03:49 +0000 (UTC), Martin Gregorie
<martin@address-in-sig.invalid> wrote:
[snip]
And there's still a huge amount of 'C++' code around that is in reality
little more than ANSI C with // comments, a .cpp extension and nary a
class declaration to be seen. Quite depressing, really, if its a valid
indication of the state of the programming art.
The state of the programming art should not be using one way to
the exclusion of all others. OOP (or anything else) is not a hammer.
I remember one assignment in my degree. It was to compare
throughput of various CPU allocation algorithms. Since it was to be
written in Java, I thought that I would see what I could do to make
the program use OOP.
It did not work out. The more I thought about it, the less I saw
how I could write anything that would have been maintainable. I ended
up writing procedural code. My program worked great. Another student
who did try going OOP ended up scrapping his effort about two days
before the assignment was due and did not complete the whole
assignment.
paradigm.
But I can not understand the example. Computer/system class, CPU/core
a natural model to me.