Re: To C++ or not to C++

From: Cesar Mello (cmello_at_gmail.com)
Date: 06/24/05

  • Next message: Alexander Kurilovich: "Wireless CDMA cards for Verizon"
    Date: Fri, 24 Jun 2005 13:14:45 -0300
    To: Erich Dollansky <oceanare@pacific.net.sg>
    
    

    Go for C++ and keep your C APIs hidden.
     Automatic resource acquisition, the standard template library and exception
    handling work great and will allow you to write very clean code.
     If you haven't done this yet, buy a copy of "The C++ Programming Language"
    by Bjarne Stroustrup and "C++ Coding Standards" by Herb Sutter, that changed
    my life drastically. hehe
     In the other hand, if you have seen MFC, forget everything you know as C++
    and go buy those books.
     []
    Mello

     2005/6/24, Erich Dollansky <oceanare@pacific.net.sg>:
    >
    > Hi,
    >
    > Ryan Sommers wrote:
    > >
    > > Anyway, without getting into too much detail. Anyone had to make this
    > > choice on a project? What were your thoughts in retrospect? What would
    > you
    > > have done different, what would stay the same...
    > >
    > No matter what kind of project I did after the C++ hype was over it was
    > in C++ with as little as object orientation as possible just to make use
    > of the advantages compilers offer for C++.
    >
    > You need one or more interfaces to plain C libraries.
    >
    > You should see pretty fast where you better switch to C++ as long as you
    > keep this clear line to C libraries always intact.
    >
    > You also should draw a clear line if your programs will be called from
    > others. Draw the same clear line between C and C++ to avoid confusion
    > and stick with plain C as much as possible.
    >
    > Never forget, many of the object orientated principles also work with
    > plain C.
    >
    > Erich
    > _______________________________________________
    > freebsd-hackers@freebsd.org mailing list
    > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
    >
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


  • Next message: Alexander Kurilovich: "Wireless CDMA cards for Verizon"

    Relevant Pages

    • Re: Paul Grahams Arc is released today... what is the long term impact?
      ... it will bring us even closer to what a programming language would ... reasonable to expect libraries that are true innovations and ... Even if you cannot get 100% of the design of Arc with any of the existing Lisp dialects, but only 99% or 98%, I would still stick to my claim. ...
      (comp.lang.lisp)
    • Re: compilation of ms crypto api program
      ... >> I'm not talking about teaching a programming language, ... Image Processing and Modern Control Theory ... the libraries, that can either standard libraries that ... Like C and C++, Java ...
      (sci.crypt)
    • Re: globals?
      ... But it adds an additional keyword to the programming language and thus makes the programming language more rich ... Classic VB has been largely used for prototyping applications later developed using other programming languages because it provided 'Option Explicit Off'-style functionality. ... I do not claim that everybody should work with 'Option Strict Off', but it's a neat feature in some cases, especially when dealing with Office automation and/or targetting different incompatible versions of certain libraries. ...
      (microsoft.public.dotnet.languages.vb)
    • Re: Dealing with ad hominem attacks in comp.programming
      ... adding units to programming language variables, ... Here are some of the libraries that I have collated in various ... I have previously spent a large amount of time discussing quan (used ...
      (comp.programming)
    • Re: An easy programming language to learn
      ... programming language should look no further than HotBasic. ... Best executables are obtained only when the compiler is written for the ... Library writers ... legitimately want many people to use their libraries. ...
      (comp.programming)