Re: C++ or Java ?

From: Luc The Perverse (sll_noSpamlicious_z_XXX_m_at_cc.usu.edu)
Date: 06/26/05

  • Next message: Lawrence DčOliveiro: "Re: C++ or Java ?"
    Date: Sat, 25 Jun 2005 21:53:18 -0600
    
    

    "Daniel James" <wastebasket@nospam.aaisp.org> wrote in message
    news:VA.00000bcf.01bd55bc@nospam.aaisp.org...
    > 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.

    Unfortunately one of the disadvantages of our higher education systems is
    that they teach you only one type of programming, going off on the evil of
    "GOTO" statement. I actually used a goto statement once, just to be a
    rebel ;)

    > 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).

    I suppose I realize that there are well made C programs out there. It's
    just that whenever I encounter code that is not properly encapselated it
    turns out that the programmer either didn't know what he was doing, or he
    was being lazy. Perhaps there are other styles of programming, but I have
    not encountered them.

    > 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 want both dammit! I like C++ and that is where I am the most comfortable.

    But I want code of this simplicity to work.

    CImgSrc* CCameraObj = NULL;
    CCameraObj = new CImgSrc(CamNum, MyConfiguration);
    CImage MyPic;
    CCameraObj ->TakePicture(&MyPic);
    MyPic.Save(PicPath+GenerateFileNameFromDate()+".jpg",
    CImage::filetype_JPEG);

    I don't want to have to do any low level interfacing past maybe a parallel
    or serial I/O. If I write a bunch of low level functions for grabbing an
    image from a certain camera, for a certain camera, they will be invalidated
    if I ever switch cameras.

    The thought that maybe there isn't some kind of unified driver system which
    allows higher end calls between different hardware scares me enough to
    consider not using linux at all.

    > I have a bias towards C++, but Java is sometimes a better tool for a
    > particular job ...

    I guess I should just choose one (prolly C++) and shut up about it

    > and have you thought about Python?

    Python? What is Python, precious?

    -- 
    "When you have to choose between a first-rate company with a second-rate 
    product and a second-rate company with a first-rate product, it's never an 
    ideal choice. " -Ed (www.overclockers.com) 
    

  • Next message: Lawrence DčOliveiro: "Re: C++ or Java ?"

    Relevant Pages

    • Use Jesus Christ
      ... > programming until very recently. ... >, but I've occasionally tried to understand Smalltalk ... In Java I've mostly been limited to server-side ... Object oriented design is a mental picture of objects and messages. ...
      (comp.object)
    • Re: mfc pitfalls
      ... In most MFC apps, you are writing code in that kind ... virtual methods usually work better than callbacks for most ... no syntax in the design for function pointers. ... programming in OO environment requires new ...
      (microsoft.public.vc.mfc)
    • Re: mfc pitfalls
      ... I see no callbacks in MFC. ... but I see no callbacks. ... premises of one of them as a basis of design or implementation in one of the others. ... programming in OO environment requires new ...
      (microsoft.public.vc.mfc)
    • **JOB POSTING** US-OH-Columbus - Java Developer - PERM
      ... Java Developer ... Able to work on programming projects with little supervision, ... design, unit coding, testing, debugging, and integration. ... Design and code applications from specifications. ...
      (comp.lang.java.programmer)
    • Re: SENIOR A.I. SOFTWARE ENGINEER POSITION - $90-120K - Dallas
      ... May design and build prototype applications. ... Expert C and C++ programming experience. ... Java / J2EE Architecture ... Understands standard software modeling techniques ...
      (comp.ai.philosophy)