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++

C++

Scheduled Pinned Locked Moved The Lounge
c++visual-studiocomquestioncareer
47 Posts 18 Posters 42 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.
  • N Nish Nishant

    Marc Clifton wrote:

    And then of course, the huge issue -- having to remember to delete objects! Having automated garbage collection is just so nice

    Well, once you get used to unique_ptr and shared_ptr, that should take care of that issue :-)

    Regards, Nish


    Check out 7 reasons C++ devs will love the VS 14 CTP by Nish Sivakumar Blog: voidnish.wordpress.com

    M Offline
    M Offline
    Marc Clifton
    wrote on last edited by
    #19

    Nish Sivakumar wrote:

    Well, once you get used to unique_ptr and shared_ptr, that should take care of that issue

    Definitely useful. While I sound like a curmudgeon, it's still a bandaid. But...thank you for pointing (harhar) those out -- I'll make use of them, looks like gcc-linaro supports those constructs. Guess I should tool up on my knowledge of where C++ has gone since I last used it. :-O Marc

    Latest Articles - APOD Scraper and Hunt the Wumpus Short video on Membrane Computing Hunt the Wumpus (A HOPE video)

    1 Reply Last reply
    0
    • P Paul M Watt

      At $100 I highly recommend this tool: http://www.wingdb.com/wgFeatures.htm[^] I've been using it since 2010. It works extremely well. I will have to check out VisualGDB.

      M Offline
      M Offline
      Marc Clifton
      wrote on last edited by
      #20

      Paul M Watt wrote:

      At $100 I highly recommend this tool:

      Thanks! Looks quite useful. Marc

      Latest Articles - APOD Scraper and Hunt the Wumpus Short video on Membrane Computing Hunt the Wumpus (A HOPE video)

      1 Reply Last reply
      0
      • C CPallini

        Last standardization made C++ much more attractive, in my opinion. However, I recognize that highly depends on your needs. For instance, I still love coding in C but I prefer Lua for fast prototyping and whenever higher level features are of great advantage (for the coder).

        Marc Clifton wrote:

        Oh, and have I said before how I loathe Eclipse? Indeed I have. Unfortunately, the Eclipse IDE just adds to the annoyance of working in C++

        Man, using Java code for writing C++ is frustrating, both for the developer and the C++ itself. On the lucky side vi is written in C.

        THESE PEOPLE REALLY BOTHER ME!! How can they know what you should do without knowing what you want done?!?! -- C++ FQA Lite

        M Offline
        M Offline
        Marc Clifton
        wrote on last edited by
        #21

        CPallini wrote:

        On the lucky side vi is written in C.

        Unlike many of the PC and MacIntosh editors, the mouse does not move the cursor within the vi editor screen (or window). You must use the the key commands listed below. On some UNIX platforms, the arrow keys may be used as well; however, since vi was designed with the Qwerty keyboard (containing no arrow keys) in mind, the arrow keys sometimes produce strange effects in vi and should be avoided. OK, there's the stone ages, and then there's primordial ooze. vi belongs to the latter. ;) Marc

        Latest Articles - APOD Scraper and Hunt the Wumpus Short video on Membrane Computing Hunt the Wumpus (A HOPE video)

        T C P 3 Replies Last reply
        0
        • M Marc Clifton

          CPallini wrote:

          On the lucky side vi is written in C.

          Unlike many of the PC and MacIntosh editors, the mouse does not move the cursor within the vi editor screen (or window). You must use the the key commands listed below. On some UNIX platforms, the arrow keys may be used as well; however, since vi was designed with the Qwerty keyboard (containing no arrow keys) in mind, the arrow keys sometimes produce strange effects in vi and should be avoided. OK, there's the stone ages, and then there's primordial ooze. vi belongs to the latter. ;) Marc

          Latest Articles - APOD Scraper and Hunt the Wumpus Short video on Membrane Computing Hunt the Wumpus (A HOPE video)

          T Offline
          T Offline
          TheGreatAndPowerfulOz
          wrote on last edited by
          #22

          :thumbsup:

          If your actions inspire others to dream more, learn more, do more and become more, you are a leader.-John Q. Adams
          You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering.-Wernher von Braun
          Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.-Albert Einstein

          1 Reply Last reply
          0
          • N Nish Nishant

            Nice way to take advantage of Marc's boring analogy and use it as a chance to tell us about your first car. Been dying to do that, haven't you? :rolleyes:

            Regards, Nish


            Check out 7 reasons C++ devs will love the VS 14 CTP by Nish Sivakumar Blog: voidnish.wordpress.com

            M Offline
            M Offline
            Marc Clifton
            wrote on last edited by
            #23

            Nish Sivakumar wrote:

            Marc's boring analogy

            Boring? BORING??? Come now, I spent actual BC's (brain cycles) working that analogy. A little respect, please! Marc

            Latest Articles - APOD Scraper and Hunt the Wumpus Short video on Membrane Computing Hunt the Wumpus (A HOPE video)

            1 Reply Last reply
            0
            • N Nish Nishant

              If you are using a recent compiler, you should be able to use C++ 11 features like lambdas that would make it similar to your C#/Java programming.

              Regards, Nish


              Check out 7 reasons C++ devs will love the VS 14 CTP by Nish Sivakumar Blog: voidnish.wordpress.com

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

              Bah. I prefer the C++014X version, and am positively drooling at what is being investigated for 17X.

              P 1 Reply Last reply
              0
              • P Pete OHanlon

                Bah. I prefer the C++014X version, and am positively drooling at what is being investigated for 17X.

                P Offline
                P Offline
                PIEBALDconsult
                wrote on last edited by
                #25

                So then I can ask, "is your compiler 17?" :cool:

                You'll never get very far if all you do is follow instructions.

                P 1 Reply Last reply
                0
                • M Marc Clifton

                  CPallini wrote:

                  On the lucky side vi is written in C.

                  Unlike many of the PC and MacIntosh editors, the mouse does not move the cursor within the vi editor screen (or window). You must use the the key commands listed below. On some UNIX platforms, the arrow keys may be used as well; however, since vi was designed with the Qwerty keyboard (containing no arrow keys) in mind, the arrow keys sometimes produce strange effects in vi and should be avoided. OK, there's the stone ages, and then there's primordial ooze. vi belongs to the latter. ;) Marc

                  Latest Articles - APOD Scraper and Hunt the Wumpus Short video on Membrane Computing Hunt the Wumpus (A HOPE video)

                  C Offline
                  C Offline
                  CPallini
                  wrote on last edited by
                  #26

                  If you don't like the primordial ooze you could use vim. You don't even need a cross compiler with to C & vi.

                  THESE PEOPLE REALLY BOTHER ME!! How can they know what you should do without knowing what you want done?!?! -- C++ FQA Lite

                  1 Reply Last reply
                  0
                  • M Marc Clifton

                    Speaking of skills I had once learned, I find myself coding in C++ again for the Beaglebone Black. While it's a nostalgic experience, I really, really, don't miss it. It's as if someone were to give me back my first car in the same condition it was in when I gave it away. Functional, does the job, etc., but old and clunky. Oh, and have I said before how I loathe Eclipse? Indeed I have. Unfortunately, the Eclipse IDE just adds to the annoyance of working in C++. For $350, this[^] is becoming more and more attractive. Marc

                    Latest Articles - APOD Scraper and Hunt the Wumpus Short video on Membrane Computing Hunt the Wumpus (A HOPE video)

                    Mike HankeyM Offline
                    Mike HankeyM Offline
                    Mike Hankey
                    wrote on last edited by
                    #27

                    I agree Eclipse does really suck, what little I've done on BBB has been using it and C++. I guess that one reason I haven't done a lot with the BBB. As far as C++ I've been writing code encouraging the old embedded C programmers to convert but I tried that 20 some odd years ago at a place I worked and I met resistance at every turn and eventually gave up. Given C or C++ I'll take C++ every time.

                    As I grow older I've found that pleasing everyone is impossible but pissing everyone off is a piece of cake.

                    M A 2 Replies Last reply
                    0
                    • P PIEBALDconsult

                      So then I can ask, "is your compiler 17?" :cool:

                      You'll never get very far if all you do is follow instructions.

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

                      You certainly can.

                      P 1 Reply Last reply
                      0
                      • P Pete OHanlon

                        You certainly can.

                        P Offline
                        P Offline
                        PIEBALDconsult
                        wrote on last edited by
                        #29

                        :jig:

                        You'll never get very far if all you do is follow instructions.

                        1 Reply Last reply
                        0
                        • M Marc Clifton

                          Speaking of skills I had once learned, I find myself coding in C++ again for the Beaglebone Black. While it's a nostalgic experience, I really, really, don't miss it. It's as if someone were to give me back my first car in the same condition it was in when I gave it away. Functional, does the job, etc., but old and clunky. Oh, and have I said before how I loathe Eclipse? Indeed I have. Unfortunately, the Eclipse IDE just adds to the annoyance of working in C++. For $350, this[^] is becoming more and more attractive. Marc

                          Latest Articles - APOD Scraper and Hunt the Wumpus Short video on Membrane Computing Hunt the Wumpus (A HOPE video)

                          G Offline
                          G Offline
                          glennPattonWork3
                          wrote on last edited by
                          #30

                          VisualGBD looks interesting...

                          1 Reply Last reply
                          0
                          • M Marc Clifton

                            That would help, but it's also things like writing header files to define the class structure and the a separate cpp file for the implementation. Seems archaic. And then of course, the huge issue -- having to remember to delete objects! Having automated garbage collection is just so nice. Marc

                            Latest Articles - APOD Scraper and Hunt the Wumpus Short video on Membrane Computing Hunt the Wumpus (A HOPE video)

                            L Offline
                            L Offline
                            Lost User
                            wrote on last edited by
                            #31

                            I prefer A well written header file over a single ASP .Net page with 1000+ lines JavaScript and 3500 lines code behind. The header can serve as a directory without all the details not only for the compiler, but even more for the developers. I know that managing your memory is below most people's dignity now. In most cases it turns out that I just have to write 'delete oSomeStuff' instead of 'someStuff.Dispose()'. If that's all. Garbage collectorss make programmers ignorant and wasteful anyway. But if you must, why don't you get yourself a garbage collector for C++?

                            The language is JavaScript. that of Mordor, which I will not utter here
                            I hold an A-7 computer expert classification, Commodore. I'm well acquainted with Dr. Daystrom's theories and discoveries. The basic design of all our ship's computers are JavaScript.

                            S 1 Reply Last reply
                            0
                            • M Marc Clifton

                              Speaking of skills I had once learned, I find myself coding in C++ again for the Beaglebone Black. While it's a nostalgic experience, I really, really, don't miss it. It's as if someone were to give me back my first car in the same condition it was in when I gave it away. Functional, does the job, etc., but old and clunky. Oh, and have I said before how I loathe Eclipse? Indeed I have. Unfortunately, the Eclipse IDE just adds to the annoyance of working in C++. For $350, this[^] is becoming more and more attractive. Marc

                              Latest Articles - APOD Scraper and Hunt the Wumpus Short video on Membrane Computing Hunt the Wumpus (A HOPE video)

                              D Offline
                              D Offline
                              Dave Calkins
                              wrote on last edited by
                              #32

                              old and clunky? have you looked at C++11? the language continues to evolve and has some nice updates through the latest standard.

                              M 1 Reply Last reply
                              0
                              • T TheGreatAndPowerfulOz

                                and the chicks. :wtf:

                                If your actions inspire others to dream more, learn more, do more and become more, you are a leader.-John Q. Adams
                                You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering.-Wernher von Braun
                                Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.-Albert Einstein

                                P Offline
                                P Offline
                                PJ Arends
                                wrote on last edited by
                                #33

                                chicks are over rated; I got thousands of them, nothing special at all. :|

                                Within you lies the power for good - Use it!

                                1 Reply Last reply
                                0
                                • M Marc Clifton

                                  CPallini wrote:

                                  On the lucky side vi is written in C.

                                  Unlike many of the PC and MacIntosh editors, the mouse does not move the cursor within the vi editor screen (or window). You must use the the key commands listed below. On some UNIX platforms, the arrow keys may be used as well; however, since vi was designed with the Qwerty keyboard (containing no arrow keys) in mind, the arrow keys sometimes produce strange effects in vi and should be avoided. OK, there's the stone ages, and then there's primordial ooze. vi belongs to the latter. ;) Marc

                                  Latest Articles - APOD Scraper and Hunt the Wumpus Short video on Membrane Computing Hunt the Wumpus (A HOPE video)

                                  P Offline
                                  P Offline
                                  PIEBALDconsult
                                  wrote on last edited by
                                  #34

                                  Pfft, arrow keys, the greatest key ever created is the Gold Key. http://archive.computerhistory.org/resources/physical-object/digital_equipment_corporation_dec/102654870.lg.jpg[^]

                                  You'll never get very far if all you do is follow instructions.

                                  1 Reply Last reply
                                  0
                                  • Mike HankeyM Mike Hankey

                                    I agree Eclipse does really suck, what little I've done on BBB has been using it and C++. I guess that one reason I haven't done a lot with the BBB. As far as C++ I've been writing code encouraging the old embedded C programmers to convert but I tried that 20 some odd years ago at a place I worked and I met resistance at every turn and eventually gave up. Given C or C++ I'll take C++ every time.

                                    As I grow older I've found that pleasing everyone is impossible but pissing everyone off is a piece of cake.

                                    M Offline
                                    M Offline
                                    Marc Clifton
                                    wrote on last edited by
                                    #35

                                    Mike Hankey wrote:

                                    Given C or C++ I'll take C++ every time.

                                    100% agreed. Marc

                                    Latest Articles - APOD Scraper and Hunt the Wumpus Short video on Membrane Computing Hunt the Wumpus (A HOPE video)

                                    pkfoxP 1 Reply Last reply
                                    0
                                    • D Dave Calkins

                                      old and clunky? have you looked at C++11? the language continues to evolve and has some nice updates through the latest standard.

                                      M Offline
                                      M Offline
                                      Marc Clifton
                                      wrote on last edited by
                                      #36

                                      Dave Calkins wrote:

                                      the language continues to evolve and has some nice updates through the latest standard.

                                      I know - I need to brush up (actually, more like get a big broom and sweep up!) Marc

                                      Latest Articles - APOD Scraper and Hunt the Wumpus Short video on Membrane Computing Hunt the Wumpus (A HOPE video)

                                      1 Reply Last reply
                                      0
                                      • N Nish Nishant

                                        That depends on what you are used to. A lot of my C++ dev friends hate C# syntax.

                                        Regards, Nish


                                        Check out 7 reasons C++ devs will love the VS 14 CTP by Nish Sivakumar Blog: voidnish.wordpress.com

                                        E Offline
                                        E Offline
                                        Eytukan
                                        wrote on last edited by
                                        #37

                                        To be honest here, Nish! Assuming the devs are just getting exposed to both the language at the same time. I'm sure C# attracts more. The simplicity of the language and robust .net framework behind the scene makes C# the preferred choice. Having said that, I truly loved every bit of C++ too. My first so many years of programming were only with C++. And I truly loved working with it. There were no complaints except for those unhumanly STL compiler error "messages". & some wired Syntaxes like the static variable "initialization" in Cpp files to name. I understand it's a language feature, but it's still not intuitive. But once I got into C#, there was no compelling reason for me to try something in C++. And honestly, I never LEARNED C# by reading books or tutorials. One fine day, I simply started coding in C# ;). I find it's one of the most intuitive language. Only when we talk about performance constraints, I might look back at C++. When I say "C++" , I mean the platform-independant , standard , stroustrup's C++. Microsoft's implementation gives me creeps :doh: Anybody wishing to learn C++ through MS implementation, I'm sure would run away. The arrow marks <^>^ pointing all directions makes the code less readable. To read it (Sample below!) like a love letter, you gotta be a bot like NISH! ;P

                                        emplate
                                        void ReadString(String^ fileName, Callback func)
                                        {
                                        StorageFolder^ item = KnownFolders::PicturesLibrary;

                                        auto getFileOp = item->GetFileAsync(fileName);
                                        getFileOp->Completed = ref new AsyncOperationCompletedHandler
                                        ([=](IAsyncOperation^ operation, AsyncStatus status)
                                        {
                                        auto storageFile = operation->GetResults();
                                        auto openOp = storageFile->OpenAsync(FileAccessMode::Read);
                                        openOp->Completed =
                                        ref new AsyncOperationCompletedHandler ([=](IAsyncOperation^ operation, AsyncStatus status)
                                        {
                                        auto istream = operation->GetResults();
                                        auto reader = ref new DataReader(istream);
                                        auto loadOp = reader->LoadAsync(istream->Size);
                                        loadOp->Completed = ref new AsyncOperationCompletedHandler
                                        ([=](IAsyncOperation^ operation, AsyncStatus status)
                                        {
                                        auto bytesRead = operation->GetResults();
                                        auto str = reader->ReadString(bytesRead);
                                        func(str);
                                        });
                                        });
                                        });
                                        }

                                        Starting to think people post kid pics in their profiles because that was the las

                                        S 1 Reply Last reply
                                        0
                                        • M Marc Clifton

                                          Mike Hankey wrote:

                                          Given C or C++ I'll take C++ every time.

                                          100% agreed. Marc

                                          Latest Articles - APOD Scraper and Hunt the Wumpus Short video on Membrane Computing Hunt the Wumpus (A HOPE video)

                                          pkfoxP Offline
                                          pkfoxP Offline
                                          pkfox
                                          wrote on last edited by
                                          #38

                                          +1

                                          We can’t stop here, this is bat country - Hunter S Thompson RIP

                                          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