Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. C++ Programmers unite!

C++ Programmers unite!

Scheduled Pinned Locked Moved The Lounge
rubycsharpc++perlasp-net
111 Posts 39 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Pete OHanlon

    Chris Maunder wrote:

    So C++ devs: Tell us why C++ is just plain old better.

    Sorry. What was that? While you were busy with your pointers I was busy slamming out 3 applications, complete with database access scaled out over multiple sites. Only kidding - I recently refound my love for C++.

    Deja View - the feeling that you've seen this post before.

    My blog | My articles

    N Offline
    N Offline
    NormDroid
    wrote on last edited by
    #27

    Pete O'Hanlon wrote:

    While you were busy with your pointers

    Not to mention memory leaks...

    www.software-kinetics.co.uk

    P 1 Reply Last reply
    0
    • N NormDroid

      Pete O'Hanlon wrote:

      While you were busy with your pointers

      Not to mention memory leaks...

      www.software-kinetics.co.uk

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #28

      norm .net wrote:

      Not to mention memory leaks...

      Shhhh. We don't mention memory leaks.

      Deja View - the feeling that you've seen this post before.

      My blog | My articles

      U 1 Reply Last reply
      0
      • C Chris Maunder

        So there's all this talk of why C# is better than VB and why Ruby on Rails is just the peachiest thing ever, except that PERL is way hard core and blah blah blah. I found an old C++ T-shirt that I love: "My compiler compiled your compiler" And to me that says it all. C++ is still like driving a manual (sitckshift) car versus an automatic. C++ still kicks any .NET language's bum in terms of speed. C++ still allows you far more annoying and impressive errors than most other modern languages. So C++ devs: Tell us why C++ is just plain old better.

        cheers, Chris Maunder

        CodeProject.com : C++ MVP

        M Offline
        M Offline
        Maruf Maniruzzaman
        wrote on last edited by
        #29

        For typical business app C# or other managed languages are good. But most of the software on my current system is still written in C or C++ with the OS itself. Also the most of the .NET Virtual Execution System. What other peoples system contain? Most softwares are written in C#? Possibly not.

        Maruf Maniruzzaman Dhaka, Bangladesh. Homepage: http://www.kuashaonline.com
        [Blog] [Silverlight Clone] [Resume]

        1 Reply Last reply
        0
        • T Timothy W Okrey

          I do not understand why someone would give up control for "ease of use". In my experience anytime you go for ease of use you are giving up performance. Does anyone besides me remember the VB3 to VB4 fiasco which was then repeated with the .NET 1 to .NET 1.1 fiasco? Why build in dependency that exceeds just the OS and a few simple libraries?

          'With hurricanes, tornados, fires out of control,mud slides, flooding, severe thunderstorms tearing up the country! from one end to another, and with the threat of bird flu and terrorist attacks, are we sure this is a good time to take God out of the Pledge of Allegiance?' - Jay Leno

          J Offline
          J Offline
          James R Twine
          wrote on last edited by
          #30

          Timothy W. Okrey wrote:

          I do not understand why someone would give up control for "ease of use".

          Because in the eyes of The Business, less control and more ease of use translates to better productivity -- more results for less money.    Peace!

          -=- James
          Please rate this message - let me know if I helped or not! * * * If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
          Remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
          See DeleteFXPFiles

          T 1 Reply Last reply
          0
          • C Chris Maunder

            So there's all this talk of why C# is better than VB and why Ruby on Rails is just the peachiest thing ever, except that PERL is way hard core and blah blah blah. I found an old C++ T-shirt that I love: "My compiler compiled your compiler" And to me that says it all. C++ is still like driving a manual (sitckshift) car versus an automatic. C++ still kicks any .NET language's bum in terms of speed. C++ still allows you far more annoying and impressive errors than most other modern languages. So C++ devs: Tell us why C++ is just plain old better.

            cheers, Chris Maunder

            CodeProject.com : C++ MVP

            D Offline
            D Offline
            DaveX86
            wrote on last edited by
            #31

            I don't like C++ that much but I gave you a 5 for the T-Shirt :)

            1 Reply Last reply
            0
            • R Rajesh R Subramanian

              Chris Maunder wrote:

              "My compiler compiled your compiler"

              5 For that!

              Chris Maunder wrote:

              And to me that says it all. C++ is still like driving a manual (sitckshift) car versus an automatic.

              I remember I said this, may be a year ago: "Real men drive manual transmission". .NET is undeniably good for developing business applications. But most of the .NET devs ignore (or even don't know) the fact that there are other languages and every language has its own applicability.

              Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

              B Offline
              B Offline
              Brady Kelly
              wrote on last edited by
              #32

              Rajesh R Subramanian wrote:

              I remember I said this, may be a year ago: "Real men drive manual transmission".

              Pah!  Luddites!

              1 Reply Last reply
              0
              • C Chris Maunder

                So there's all this talk of why C# is better than VB and why Ruby on Rails is just the peachiest thing ever, except that PERL is way hard core and blah blah blah. I found an old C++ T-shirt that I love: "My compiler compiled your compiler" And to me that says it all. C++ is still like driving a manual (sitckshift) car versus an automatic. C++ still kicks any .NET language's bum in terms of speed. C++ still allows you far more annoying and impressive errors than most other modern languages. So C++ devs: Tell us why C++ is just plain old better.

                cheers, Chris Maunder

                CodeProject.com : C++ MVP

                M Offline
                M Offline
                Matt Gullett
                wrote on last edited by
                #33

                Chris Maunder wrote:

                So C++ devs: Tell us why C++ is just plain old better.

                I'm not sure that "better" applies to all situations, but, at least in many of the systems I've developed, C++ kicks .NET's butt. Mostly, I'm talking about performance, memory management and scalability. char* pBuffer = malloc(WHATEVER), while unpopular, mistreated and oft abused is quite a powerful construct. If I had to pick one feature that .NET needs, that would be simple: destructors. Who decided that deterministic finalization was a bad thing????? Oh yea, *pBuffer, pBuffer++ and all pointer related arithmetic, access, etc, is just plain fast & elegant, when used right. Personally, I like .NET just fine and plan to use it for just about any web applications I build. However, I also have written several Windows services and some mission-critical number crunching applications (and even one CGI application). I even tried to develop one of these in .NET, but the performance was abysmal. (BTW, don't tell me that I wrote the .NET app wrong, I asked around, sought advice from "experts", etc and ultimately, the architecture of .NET and the .NET framework were just in the way.) I would love to see a system come along that is evolutionary/revolutionary that actually produces faster code, not slower code, with each progressive release. This whole "layer cake" approach is getting quite heavy. And the current mantra of throwing hardware at performance problems is getting very very old. (Re-reading my post, I'm starting to feel old now.) :-D

                C J R 3 Replies Last reply
                0
                • N NormDroid

                  :)

                  www.software-kinetics.co.uk

                  R Offline
                  R Offline
                  Rajesh R Subramanian
                  wrote on last edited by
                  #34

                  :-\

                  Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

                  1 Reply Last reply
                  0
                  • U User of Users Group

                    For that Chris, there is a need for an SVN on CP, long overdue. Then everyone can hammer at a proposal for say Media namespace for Boost. One that is agnostic, DirectX or OpenGL based or xyz based. Implementing something similar to Flash or that tiny SilverLight install base would not be hard with such awesome libs, would put both Java and .NET to shame, and it would avoid all MS patent/algorithms. There is plenty of scope as the focus for C++ 2009 has been on bits that are most important in any engineering work, that it scales well and are designed like a space-shuttle. Only then you can aim for mass-market 'comeback' and without "code C++ like C" horrors in cryptography (and of course learning from other people's mistakes like MS has been doing with browsers, Java, databases, tools etc). Also, I don't think it is a bad thing people are calling it 'dead'. It is a great misconception that keeps many people in business. Evidently, the latest MS technologies too.. and in my humble opinion, they are demonstrating that markup and runtime design is the last thing you want to do anyway; a moving target. What's hard or unknown about VMs these days?

                    M Offline
                    M Offline
                    Maruf Maniruzzaman
                    wrote on last edited by
                    #35

                    >> Implementing something similar to Flash or that tiny SilverLight >> install base would not be hard Or JVM[^] ??

                    Maruf Maniruzzaman Dhaka, Bangladesh. Homepage: http://www.kuashaonline.com
                    [Blog] [Silverlight Clone] [Resume]

                    1 Reply Last reply
                    0
                    • C Chris Maunder

                      So there's all this talk of why C# is better than VB and why Ruby on Rails is just the peachiest thing ever, except that PERL is way hard core and blah blah blah. I found an old C++ T-shirt that I love: "My compiler compiled your compiler" And to me that says it all. C++ is still like driving a manual (sitckshift) car versus an automatic. C++ still kicks any .NET language's bum in terms of speed. C++ still allows you far more annoying and impressive errors than most other modern languages. So C++ devs: Tell us why C++ is just plain old better.

                      cheers, Chris Maunder

                      CodeProject.com : C++ MVP

                      J Offline
                      J Offline
                      James R Twine
                      wrote on last edited by
                      #36

                      Because your T-shirt basically said it.    Java-heads - are you running on a JVM and/or using a base class library that was written in Java, or in C/C++?  Remember Hotspot?  That application that was created to speed up Java applications by converting to native code (which was required because Java was already fast enough, right)?  Wanna guess what it was written it?    .NET users - are the nitty-gritty internals of your lovely system that is so superior written in .NET?  I believe that only recently, a .NET compiler was written in .NET.  Only took a few years for this... (It was the new VB.NET compiler, I believe?)  Oh, and the OS that it runs on?    C/C++ are general use - in general, you can use them for anything.  Java, .NET, Perl, etc. are specific purpose, usually by initial design or by evolution.    When I can write a device driver in Java or .NET that performs identically and has the same capability as a pure C/C++ one, then I will be impressed with how quickly I can get it done.  Do not get me wrong, things like the .NET platform are pretty damn powerful, but you have to keep in mind that they have limitations on what they can or should be used for.    Peace!

                      -=- James
                      Please rate this message - let me know if I helped or not! * * * If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
                      Remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
                      See DeleteFXPFiles

                      R 1 Reply Last reply
                      0
                      • A Abu Mami

                        Learn C++, C, and then assembler. You don't need to be an expert, but at least you'll then know how computers work.

                        G Offline
                        G Offline
                        ghle
                        wrote on last edited by
                        #37

                        Abu Mami wrote:

                        Learn C++, C, and then assembler.

                        Or do it in reverse order, with some additions. Gives one total understanding. Assembler = nice, tight, fast code. Elegance at it's best. You can do absolutely anything you want/need. You get to the true sole of the machine. Machine code - stuck in here so you can toggle bits and debug code on a target machine without compiling & relinking. Micro code - understand what makes the machine code work Design a CPU - understand how hardware logic converts software bits into hardware operations. C (viewed mixed with assembler) shows you how tightness looses just a little, plus some efficiencies through style (++i vs i++ vs i+=1 - they're different, you know). C++ - knowing C first makes understanding how C++ works a little easier, if that is your goal. ASM/C/C++ is the true garbage collector, collecting (any)Basic, Java, C#, .NET, COBOL, FORTRAN, running circles around them, then sending them to the dumpster. My biggest leap was Windows/MFC. I couldn't grasp it until I looked at the source to understand what it was doing under the covers.

                        Gary

                        S 1 Reply Last reply
                        0
                        • P Pete OHanlon

                          norm .net wrote:

                          Not to mention memory leaks...

                          Shhhh. We don't mention memory leaks.

                          Deja View - the feeling that you've seen this post before.

                          My blog | My articles

                          U Offline
                          U Offline
                          User of Users Group
                          wrote on last edited by
                          #38

                          Norm, ask MS to compile the Office with the /pure switch. Then you'll see what it means to leak or to need a Cray, today! Alternative, same effect long term, try OpenOffice and enjoy. Or just run ASP.NET with one of those managed databases long and hard enough.

                          1 Reply Last reply
                          0
                          • J James R Twine

                            Timothy W. Okrey wrote:

                            I do not understand why someone would give up control for "ease of use".

                            Because in the eyes of The Business, less control and more ease of use translates to better productivity -- more results for less money.    Peace!

                            -=- James
                            Please rate this message - let me know if I helped or not! * * * If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
                            Remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
                            See DeleteFXPFiles

                            T Offline
                            T Offline
                            Timothy W Okrey
                            wrote on last edited by
                            #39

                            James R. Twine wrote:

                            Because in the eyes of The Business, less control and more ease of use translates to better productivity -- more results for less money.

                            Isn't this really an indictment of the quality of programmers?

                            'With hurricanes, tornados, fires out of control,mud slides, flooding, severe thunderstorms tearing up the country! from one end to another, and with the threat of bird flu and terrorist attacks, are we sure this is a good time to take God out of the Pledge of Allegiance?' - Jay Leno

                            J 1 Reply Last reply
                            0
                            • S Simon P Stevens

                              I've been a C# developer for 2.5 years now. I taught myself a little C++ in my final year at uni for my project (mainly because it was more fun than the Java they taught), so I've had a taste of it. Would you recommend learning C++ properly? and what style, managed or classic? The good thing about managed is that I'm already pretty good with the .NET framework, so all I really need to learn is the slightly different syntax. If I learn classic, I'd also have to learn a bunch of other stuff like MFC or whatever. Is it worth it? Should I just stick with C#?

                              Simon

                              C Offline
                              C Offline
                              Chris Losinger
                              wrote on last edited by
                              #40

                              managed C++ is like caffeine-free diet Pepsi: an abomination. learn the real thing.

                              image processing toolkits | batch image processing

                              1 Reply Last reply
                              0
                              • C CPallini

                                Chris Maunder wrote:

                                "My compiler compiled your compiler"

                                Chris Maunder wrote:

                                is still like driving a manual (sitckshift) car versus an automatic.

                                Chris Maunder wrote:

                                still allows you far more annoying and impressive errors than most other modern languages.

                                Chris Maunder wrote:

                                is just plain old better.

                                Are you talking about C? :-D

                                If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                                This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

                                R Offline
                                R Offline
                                Robert Surtees
                                wrote on last edited by
                                #41

                                ...and don't forget the early c++ compilers really just generated intermediate C code which was then compiled to machine code. Just a glorified preprocessor, really :-D

                                C 1 Reply Last reply
                                0
                                • C Chris Maunder

                                  In all seriousness it depends on what you do. Learning (and really knowing) C++ will help you in any programming you do. It's like learning how to act in the classics in order to do a stint in a Soap opera. It may seem overkill but it gives you the insight to understand what your code is actually doing. My day to day work is all C# but knowing C++ means I get what the garbage collector is doing, I understand the importance of creating objects only when I need them, that I know how the Dictionary classes work and that sometimes, when it's dark and cold outside, I wake up shivering, wishing that the new operator returned null when the app was out of memory.

                                  cheers, Chris Maunder

                                  CodeProject.com : C++ MVP

                                  S Offline
                                  S Offline
                                  Simon P Stevens
                                  wrote on last edited by
                                  #42

                                  I do mainly business app developmetnnt at the moment, so C# is good in terms of productivity, but like you say, maybe C++ knowledge will give me a better understanding. Maybe I'll give it a go on my next personal project. Thanks

                                  Simon

                                  J 1 Reply Last reply
                                  0
                                  • C CPallini

                                    Simon Stevens wrote:

                                    Would you recommend learning C++ properly?

                                    Yes.

                                    Simon Stevens wrote:

                                    and what style, managed or classic?

                                    'classic' (managed C++ is a crap, however this goes on my arrogant...).

                                    Simon Stevens wrote:

                                    Is it worth it?

                                    Yes.

                                    Simon Stevens wrote:

                                    Should I just stick with C#?

                                    It remains an option. If you really enjoy C#, be stuck with it. :)

                                    If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                                    This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

                                    S Offline
                                    S Offline
                                    Simon P Stevens
                                    wrote on last edited by
                                    #43

                                    CPallini wrote:

                                    If you really enjoy C#, be stuck with it.

                                    C# is nice, but I'm too curious, I want to know more

                                    CPallini wrote:

                                    'classic' (managed C++ is a crap

                                    Classic it is then. Might take the chance to learn some DirectX at the same time, I've been meaning to do that for ages.

                                    Simon

                                    E 1 Reply Last reply
                                    0
                                    • T Timothy W Okrey

                                      I do not understand why someone would give up control for "ease of use". In my experience anytime you go for ease of use you are giving up performance. Does anyone besides me remember the VB3 to VB4 fiasco which was then repeated with the .NET 1 to .NET 1.1 fiasco? Why build in dependency that exceeds just the OS and a few simple libraries?

                                      'With hurricanes, tornados, fires out of control,mud slides, flooding, severe thunderstorms tearing up the country! from one end to another, and with the threat of bird flu and terrorist attacks, are we sure this is a good time to take God out of the Pledge of Allegiance?' - Jay Leno

                                      G Offline
                                      G Offline
                                      ghle
                                      wrote on last edited by
                                      #44

                                      Timothy W. Okrey wrote:

                                      I do not understand why someone would give up control for "ease of use". In my experience anytime you go for ease of use you are giving up performance.

                                      Amen to that!

                                      Timothy W. Okrey wrote:

                                      Does anyone besides me remember the VB3 to VB4 fiasco which was then repeated with the .NET 1 to .NET 1.1 fiasco?

                                      I don't remember those, but I remember Windows CE supporting C++ and VB, then just C++ (VB apps were screwed for a while), then VB is back. Win CE 1.0, 1.1, 1.2, 1.3 fiasco. Then CE.NET 4.0 to CE.NET 4.2 Pocket PC 2002 to Pocket PC 2003 Windows Mobile C/C++ just plain works.

                                      Gary

                                      1 Reply Last reply
                                      0
                                      • S Simon P Stevens

                                        I've been a C# developer for 2.5 years now. I taught myself a little C++ in my final year at uni for my project (mainly because it was more fun than the Java they taught), so I've had a taste of it. Would you recommend learning C++ properly? and what style, managed or classic? The good thing about managed is that I'm already pretty good with the .NET framework, so all I really need to learn is the slightly different syntax. If I learn classic, I'd also have to learn a bunch of other stuff like MFC or whatever. Is it worth it? Should I just stick with C#?

                                        Simon

                                        J Offline
                                        J Offline
                                        James R Twine
                                        wrote on last edited by
                                        #45

                                        Besides learning lower level languages like C, C++, even Pascal_(!)_, I would suggest learning about machine and/or CPU architecture/micro-architecture.  Downloading or ordering the CPU manuals from AMD and Intel helps here.    That kind of knowledge translates to most languages that you will be using in your lifetime, and gives you an appreciation for what your code actually does and how it gets executed.  Learning how to take advantage of CPU pipelines, caches, multiple cores, etc. regardless of what language/platform you are using, will help you write the most optimal (note: I said optimal, not necessarily fastest) code that you can.    Peace!

                                        -=- James
                                        Please rate this message - let me know if I helped or not! * * * If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
                                        Remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
                                        See DeleteFXPFiles

                                        S N 2 Replies Last reply
                                        0
                                        • C Chris Maunder

                                          So there's all this talk of why C# is better than VB and why Ruby on Rails is just the peachiest thing ever, except that PERL is way hard core and blah blah blah. I found an old C++ T-shirt that I love: "My compiler compiled your compiler" And to me that says it all. C++ is still like driving a manual (sitckshift) car versus an automatic. C++ still kicks any .NET language's bum in terms of speed. C++ still allows you far more annoying and impressive errors than most other modern languages. So C++ devs: Tell us why C++ is just plain old better.

                                          cheers, Chris Maunder

                                          CodeProject.com : C++ MVP

                                          P Offline
                                          P Offline
                                          peterchen
                                          wrote on last edited by
                                          #46

                                          Not to spit a fellow C++ian in the soup, but here[^] is a nice summary of Raymond Chen (C++) vs. Rico Mariani (C#)

                                          We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
                                          blog: TDD - the Aha! | Linkify!| FoldWithUs! | sighist

                                          U 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups