- Makefiles are of the devil. I don't care what anyone says, they are evil. C++ is usually accompanied by these nasty things, regardless the OS.
I have heard that some people can speak with the dead, that Mikey died when he drank coke and ate pop-rocks, and that aliens are stealing our women.I've heard...
I have heard that these newer cars don't have carburetor. How are you supposed to mix fuel and oxygen without a carburetors?How are you supposed to know where something is located in memory
Not exactly 100% true. There are some platforms (usually OLD ones) where there is no JVM, so no java. It is also possible to write java code that IS platform specific, and thus not portable.Java is portable and will run everywhere.
Here you are counting the same thing as both a negative for Java AND a positive for C/C++. You're kind of giving it double the weight it should have.Very fast. It has pointers.
Java has a mechanism that works very similarly to multiple inheritance. And again, some people would say that multiple inheritance should go in the negative column for C/C++.Supports multiple inheritance which allows much more powerful designs than java
Search around here to see many discussions on whether Java is a "truly OO language". You'll see that different people disagree on what that term even means. But, the resons generally cited for why Java is NOT could pretty much apply to C/C++. In fact, I would say that C++ is LESS OO, simply because it has to be 100% backwards compatible with C, a purely procedural language.True object oriented programming
It's easy to WRITE the program. The problem is that you have to compile it for every platform. Want it to run on Windows? you need a windows compiler. Unix? another compiler. Sun? another. Linux? Mac?How hard is it to make a C++ program run everywhere?
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Originally posted by Mike Isano:
...java cons:
---------------
I've heard C++ is way faster than java. Java is supposed to be 20 times slower...
In the early days of Java, the language was interpreted. Nowadays ... the Java virtual machine uses a just-in-time compiler. The "hot spots" of your code will run just as fast in Java as they would in C++.
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Originally posted by Mike Isano:
I've heard C++ is way faster than java. Java is supposed to be 20 times slower. Is this performace acceptable?
I've also heard that java has NO pointers. How are you supposed to know where something is located in memory?
C++ cons:
---------------
I can't find any cons.
Supports multiple inheritance which allows much more powerful designs than java.
True object oriented programming and not limited watered down version.
I'm thinking about learning C++ since there aren't any cons.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Supports multiple inheritance
~"Great is the art of beginning, but greater is the art of ending."~
Warning! Way too comfortable! Do not sit! Try reading this tiny ad instead:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|