On Apr 21, 5:10 pm, p...@[EMAIL PROTECTED]
(Pascal J. Bourguignon)
wrote:
> fossilx <foss...@[EMAIL PROTECTED]
> writes:
[...]
> Now, in C++, you can do anything, as long as you can hold in
> your head all the little details you must take into account
> when programming in C++, like memory management. If you have
> a little head like me, you may prefer a higher level
> programming language.
The whole point of C++ is that you don't have to. You can
adjust the level of abstaction to what is needed, rather than be
forced to use one which isn't appropriate. Thus, for example,
there's no problem using garbage collection with C++ (although
it's not as essential as it is in Java; some C++ applications
manage to get the job done with no dynamic allocation
whatsoever).
> The choice of a programming language should not (only) be
> directed by the kind of processor it runs on. It's rather
> easy to ****t a programming language on another target
> processor, be it a virtual machine, an interpreter or a
> compiler.
> > In short, I don't really think the question is 100% fair.
> > Java and C++ were designed for slightly different jobs.
> > There are a few jobs (such as GUI development) that I would
> > rather use Java for, and then many things I would use c++
> > over Java. However, I would propose that your question
> > should be more along the lines of: Python or Java. [...]
> Right. The niche for C++ is very small.
You mean like everything from OS kernel code to large scale
application servers. Unlike Java, C++ is a general purpose
language, and can be used effectively for pretty much anything.
Java's specialized for a few specific application areas---it's
not really that bad, and it could actually be used for more
things that it is, but it still doesn't cover the broad range
that C++ does.
--
James Kanze (GABI Software) email:james.kanze@[EMAIL PROTECTED]
en informatique orient=E9e objet/
Beratung in objektorientierter Datenverarbeitung
9 place S=E9mard, 78210 St.-Cyr-l'=C9cole, France, +33 (0)1 30 23 00 34


|