Re: C++ or Java ?

From: Daniel James (wastebasket_at_nospam.aaisp.org)
Date: 06/25/05


Date: Sat, 25 Jun 2005 19:11:38 GMT

In article news:<42bc5a05$0$1225$3a2ecee9@news.csolutions.net>, Luc The
Perverse wrote:
> Without proper OOP, C++ is utter chaos.

That's not actually true. One of the advantages of C++ is that it can be
used to implement many different program design methods, whereas Java
pushes you unceremoniously along an OOP path whether it's the right path
for the problem at hand or not. For this reason C++ is often referred to as
a multi-paradigm programming language.

It's certainly true that a large body of C++ code written without the
benefit of an overall design will be a mess, but the overall design doesn't
have to be OOD. That's just one of the common choices (and with good
reason, for some tasks it's the best choice).

Is C++ better than Java? It depends what you want to do (and what you mean
by better). C++ is a more complex language than Java and that makes it more
powerful and gives it something of a learning curve. The Java language is
simpler, but it still has a big learning curve by virtue of all the
libraries and framworks (and supporting tools) one ends up having to learn.

At the end of the day it depends whether the benefit of having those
libraries and tools outweighs the benefit of having a more powerful
language ... remembering that there are libraries and tools for C++ as
well, just not such a bewildering array of them.

I have a bias towards C++, but Java is sometimes a better tool for a
particular job ... and have you thought about Python?

Cheers,
 Daniel.
 



Relevant Pages

  • Re: VS2005 and VS 6.0
    ... You can write a buggy program in any language. ... The delayed destructors are definitely a problem, Java has the same problem. ... design to improve performance and reliability. ... environment by stupid errors. ...
    (microsoft.public.vc.mfc)
  • Re: I wish to learn Ruby ,can anyone teach me???
    ... First, let's get the FUD out of the way: Ruby comes with a lot of libraries, ... Here's the biggest problem I have with Java: Right there, ... Now let's try that in Ruby: ... and I would call it the perfect beginner's language. ...
    (comp.lang.ruby)
  • Re: Java equivalent of C++ Spirit or Boost Graph Library ?
    ... Chris warns me about the difficulty of learning Java. ... The posters are generally far more familiar with the language, and more accomplished in their fields. ... management techniques in C versus using a standard garbage collector. ... regular-expression libraries or scanners (such as ...
    (comp.lang.java.programmer)
  • Re: Reddit Guys on the Pros and Cons of Lisp
    ... >> I never have to do that with Java. ... > language features, etc. ... They either have the feature or they don't. ... > libraries doing almost the same - for those languages. ...
    (comp.lang.lisp)
  • Re: What Free Tools to use in Java (New to Java)
    ... > have worked with many of the people who wrote some of the popular Java ... had email help and even a free book from some of the authors in that list I ... comp.object is a good group to post design questions to. ... At the end of the day a language generally has some finite "ways" of doing ...
    (comp.lang.java.help)