Main > Everything Else
C++ programing
<< < (6/7) > >>
Kaytrim:

--- Quote from: ChadTower on December 27, 2006, 12:51:37 pm ---
What brazillion dollar software?  There are so many strong and free C++ compilers out there he could drown in them.

--- End quote ---

M$ Visual Express editions are free to use.  A compiler is a compiler no matter who makes it they still convert your English like code to machine language.  An Integrated Development Environment (IDE) makes writing code easier and some are better than others.  Personally I like Microsoft's IDE but to each his own.
ChadTower:

Actually, all compilers are not the same nor are they all created equal.  Two different compilers could create binaries that act differently at the machine level.  One could actually do something slightly mechanically different than another, or one could be better at optimizing certain types of algorithms than another.  A compiler could have more or less preprocessing functionality.  Some are more forgiving of certain "violations" than others are and they vary pretty widely on debugging facilities.

Generally, any officially released compiler will do for an average user, but some are just better than others like anything else.

You're right, though, that most of the time the real bang for the buck differences are in the IDEs.  I'm usually more of a raw text editor guy because so few IDEs handle a wide enough range of languages to be useful to me.
Chris:

--- Quote from: Grasshopper on December 28, 2006, 12:39:34 pm ---The problem is that even if you've chosen to use C++ as an OOP, you're still going to come across a lot of code written by people who are using C++ as basically C with a few bolt on extras. So you still have to know about the C way of doing things.

--- End quote ---
Excellent point.
jbox:

--- Quote from: Grasshopper on December 28, 2006, 12:39:34 pm ---The problem is that even if you've chosen to use C++ as an OOP, you're still going to come across a lot of code written by people who are using C++ as basically C with a few bolt on extras. So you still have to know about the C way of doing things.

--- End quote ---
The corollary states that you can write FORTRAN in any language remember?  ;D

Now, if you want to program in a language that's really hard to write badly, that's why the DoD invented Ada. Unfortunately it was so good at tryng to force you do the right thing that nobody wanted to use it.  :hissy:
Buddabing:
IMO plain C and C++ are good for different types of applications. Plain C, on the one hand, is good when you have mostly static allocation of memory and very little gets dynamically created or destroyed. This applies to most command line tools, emulators, Chris' jukebox, and so on. IMO it was a mistake writing Daphne in C++.

On the other hand, C++ fits well with an application in which objects are constantly being created and destroyed, and where the object-oriented philosophy fits well. Take a computer game like Diablo II, for example. You have auras, weapon effects, monsters spawning, treasure dropping, and similar events going on all the time. It's nice to have a object::~object() function instead of a zillion calls to free(). You might miss one and get a memory leak.

Navigation
Message Index
Next page
Previous page

Go to full version