× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: OO Hybrids (was WANTED - RPG TALEN...)
  • From: Hans Boldt <boldt@xxxxxxxxxx>
  • Date: Mon, 1 Jun 1998 09:30:51 -0400

Why am I so down on C++?  In a typicall OO app, objects are created
and destroyed with great frequency.  In C++, you have to deal with much
of the overhead of object creation and destruction yourself.  As a result,
many of the program defects introduced during coding relate to memory
management - dangling references, memory leaks, etc.  (Actually, you
could write perfect C++ code and still have problems since many C++
systems themselves have memory leaks in their run-time code!)

Java, on the other hand, uses a "Garbage Collection" system to manage
memory.  As long as some variable references an object, the storage
for that object is kept.  But when no variable references the object, Java
knows that the storage is available for reuse.  This is perhaps the biggest
single contributor to increased programmer productivity in Java.

>From my own personal experience, all of the problems with managing
storage in C++ was what discouraged me the most.  C++ programming
seemed too much like work.  Since Java manages storage on it's own,
you are free to concentrate on the problem at hand.  It's like the difference
between assembler language and RPG.

BTW, I've heard that the GC system in the AS/400's JVM is one of the
best in the industry.

Cheers!  Hans

Hans Boldt, ILE RPG Development, IBM Toronto Lab, boldt@ca.ibm.com




owner-midrange-l@midrange.com on 98-05-30 13:02:22
Please respond to MIDRANGE-L@midrange.com
To: MIDRANGE-L@midrange.com
cc:
Subject: RE: OO Hybrids (was WANTED - RPG TALEN...)


Hans,

I agree that Object Oriented and Object based are 2 very
different things.  I've been a big OO supported for a long time.

Can you expand on your statement "hybrids like C++ cause more
problems than they're worth."?

Do you say this because you can still do straight line code in
C++?

Granted, my first C++ program was really a C program that used
some of the MFC collection classes.  My Second C++ program had
some classes of my own, but still wasn't true OO.  By about the
5th or so program, I was doing OO.

>From an academic point of view, I agree that programs 1 thru 4
where violating everything they hold near and dear to their
hearts.  However, it allowed me to "ease" into OO, and did show
me the value of OO.  And kept my boss happy in that I was still
productive during my learning curve.

Now days, I am an OO fanatic!  In fact, that is why I'm still
pissed at Toronto for not allowing VAC++ to target V3R1!  It
leaves me stuck in the ILE/C world.  And after falling in love
with C++, ILE/C sucks.  As a result, my code is a mixture of
ILE/C and RPG.

Regards,
Bob Crothers
Cornerstone Communications




-----Original Message-----
From: Hans Boldt [SMTP:boldt@ca.ibm.com]
Sent: Friday, May 29, 1998 7:21 AM
To: MIDRANGE-L@midrange.com
Subject: RE: WANTED - RPG TALENT--Global issue We need to Act on
this

Stan wrote:
<snip>
(IMHO, hybrids like
C++ cause more problems than they're worth.)

Cheers!  Hans

Hans Boldt, ILE RPG Development, IBM Toronto Lab,
boldt@ca.ibm.com
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to
MIDRANGE-L@midrange.com.
| To subscribe to this list send email to
MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to
MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator:
david@midrange.com
+---

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---



+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.