|
-
November 29th, 2004, 01:41 AM
#5
Re: 110 percent novice
 Originally Posted by wien
Java programmers like yourself do for example have a tendency to be looking for the Object class, and often try to make one themselves if they want a function to take any kind of object. A much better solution would be to take advantage of C++' template facillity, something most of them overlook completely.
Not only that, Java programmers who are trying to port without learning C++ properly believe that "new" in Java is the same as "new" in C++. A sure-fire way to know that a Java programmer has (poorly) written a C++ program is the overuse of "new" all over the place in the program. The program is then full of memory leaks, other run-time programs, and is near impossible to maintain.
The "do it myself object class" and the overusage of "new"
http://www.codeguru.com/forum/showth...ht=object+java
http://www.codeguru.com/forum/showth...ht=object+java
are the two most obvious mistakes Java programmers make when writing a C++ program.
My point is, don't get too caught up in the "Java-way", and try to understand how C++ works instead. Just a friendly piece of advice.
More than friendly advice, it is mandatory that the C++ language is learned correctly, independent of Java.
Regards,
Paul McKenzie
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|