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.
  • 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
    • E Eytukan

      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 Offline
      S Offline
      Sentenryu
      wrote on last edited by
      #39

      To my eyes, that code looks more readable than the template/macro mess that is the stdlib header files on VS.

      E 1 Reply Last reply
      0
      • L Lost User

        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 Offline
        S Offline
        Sentenryu
        wrote on last edited by
        #40

        CDP1802 wrote:

        I prefer A well written header file over a single ASP .Net page with 1000+ lines JavaScript and 3500 lines code behind.

        have you ever seen the stdlib header files that come with VS? X|

        CDP1802 wrote:

        In most cases it turns out that I just have to write 'delete oSomeStuff' instead of 'someStuff.Dispose()'. If that's all.

        I was going to comment on that, turns out i'm not the only one who thinks that way :laugh:

        E 1 Reply Last reply
        0
        • S Sentenryu

          To my eyes, that code looks more readable than the template/macro mess that is the stdlib header files on VS.

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

          Well that was a quick n bad example. When you look at a real project, it seriously burns your eyes. But like you said, nothing beats Macros & templates in C++ ^^

          Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.

          1 Reply Last reply
          0
          • S Sentenryu

            CDP1802 wrote:

            I prefer A well written header file over a single ASP .Net page with 1000+ lines JavaScript and 3500 lines code behind.

            have you ever seen the stdlib header files that come with VS? X|

            CDP1802 wrote:

            In most cases it turns out that I just have to write 'delete oSomeStuff' instead of 'someStuff.Dispose()'. If that's all.

            I was going to comment on that, turns out i'm not the only one who thinks that way :laugh:

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

            Anything that comes with the compiler is bound to look awkward. because of the "optimization" they apply on their code. :)

            Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.

            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)

              X Offline
              X Offline
              xperroni
              wrote on last edited by
              #43

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

              I'd suggest you take a look at Code::Blocks. It's my favorite C++ IDE, it's multiplatform and really easy to use.

              "Whereas smaller computer languages have features designed into them, C++ is unusual in having a whole swathe of functionality discovered, like a tract of 19th century Africa." -- Verity Stob http://www.theregister.co.uk/2006/05/05/cplusplus\_cli/

              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
                Dan Neely
                wrote on last edited by
                #44

                Unless you're also doing C++ for Android, it looks like the $220 or even $110 versions should do everything you'd need; while being a good bit easier on the wallet.

                Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies. -- Sarah Hoyt

                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.

                  A Offline
                  A Offline
                  ankur0405
                  wrote on last edited by
                  #45

                  Do whatever you may desire with C++,AND THIS is the beauty of the language. Hey C++, I wanna come back to you, but this world is not allowing me to have the comfort, that you give to me. I literally hate this garbage collection concept, be it Java or C#.

                  Ankur Srivastava

                  1 Reply Last reply
                  0
                  • T TheGreatAndPowerfulOz

                    I've programmed in both, in fact, I cut my teeth on C++, programmed in it exclusively for over 15 years and I really like the language. But I also have, in more recent years, spent most of my time doing C#, it has much to offer. And I've grown used to they way things are done in C#, so now I find myself wishing C++ would do some things the C# way --sometimes-- and other times, I wish for C# to adopt some C++ isms. Almost sounds like I'm talking about "D". Maybe I should make a "D++" language. We could always use another... :rolleyes:

                    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

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

                    D++ is already created. http://www.pagemac.com/dpp/about.php[^] :)

                    T 1 Reply Last reply
                    0
                    • L Lost User

                      D++ is already created. http://www.pagemac.com/dpp/about.php[^] :)

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

                      Ew, just Ew. X|

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