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

Ahhhhhh

Scheduled Pinned Locked Moved The Lounge
c++
56 Posts 23 Posters 2 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.
  • realJSOPR Offline
    realJSOPR Offline
    realJSOP
    wrote on last edited by
    #1

    I love it when circumstances swing in my favor. I'm coding in unmanaged C++ again, and I feel... liberated. :) And CP wins because I even came up with another article. :)

    "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
    -----
    "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

    N C R L E 8 Replies Last reply
    0
    • realJSOPR realJSOP

      I love it when circumstances swing in my favor. I'm coding in unmanaged C++ again, and I feel... liberated. :) And CP wins because I even came up with another article. :)

      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
      -----
      "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

      N Offline
      N Offline
      Nish Nishant
      wrote on last edited by
      #2

      John Simmons / outlaw programmer wrote:

      I love it when circumstances swing in my favor. I'm coding in unmanaged C++ again, and I feel... liberated.

      :suss:

      Regards, Nish


      Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
      Currently working on C++/CLI in Action for Manning Publications. (*Sample chapter available online*)

      1 Reply Last reply
      0
      • realJSOPR realJSOP

        I love it when circumstances swing in my favor. I'm coding in unmanaged C++ again, and I feel... liberated. :) And CP wins because I even came up with another article. :)

        "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
        -----
        "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

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

        John Simmons / outlaw programmer wrote:

        I'm coding in unmanaged C++ again, and I feel... liberated.

        i know that feeling. sweeeeet. sadly, it's the same feeling i get when i start using C# again... after a long spell of JScript and VBScript. X|

        image processing | batch image processing | blogging

        1 Reply Last reply
        0
        • realJSOPR realJSOP

          I love it when circumstances swing in my favor. I'm coding in unmanaged C++ again, and I feel... liberated. :) And CP wins because I even came up with another article. :)

          "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
          -----
          "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

          R Offline
          R Offline
          Rohde
          wrote on last edited by
          #4

          I am curious. Why do you like it compared with for instance managed coding? I am genuinely interested, so it's not because I'm playing flame-starter here. I'm doing most of my coding in Java or C# (or even in a 4GL like Matlab), and it's been some years since I've done C++. I didn't mind programming in C++ but I must say I feel more productive in Java and C# mainly because of the huge API you get for free (the STL is great but minimal at best).


          FAULTLOG.TXT: File too large.

          M J J P realJSOPR 6 Replies Last reply
          0
          • R Rohde

            I am curious. Why do you like it compared with for instance managed coding? I am genuinely interested, so it's not because I'm playing flame-starter here. I'm doing most of my coding in Java or C# (or even in a 4GL like Matlab), and it's been some years since I've done C++. I didn't mind programming in C++ but I must say I feel more productive in Java and C# mainly because of the huge API you get for free (the STL is great but minimal at best).


            FAULTLOG.TXT: File too large.

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

            Rohde wrote:

            the STL is great but minimal at best

            Thought I'd take a shot at answering you. :) I think it depends on what you're doing. (No wait, I KNOW it depends on what you're doing). I did an app that depended heavily on STL, I couldn't imagine doing it with a language that didn't support true and full STL capabilities. And it needed to be heavily optimized--not saying the same code wouldn't run as well in C#, but damn, it was nice being able to actually see the assembly output and be able to play with register keywords and other optimizations. That said, I do NOT miss the memory leak debugging nor the super-consciousness of always having to think "now, where am I deleting that memory allocation?". And frankly, I don't miss header files either, though when I first started using C#, I thought it was disguisting how the class definition and code were the same thing.

            Rohde wrote:

            because of the huge API you get for free

            The API has never been a selling point for me. I hated MFC, I tolerate the .NET framework, and I basically write wrappers as much as possible for both, because they're so lame as it is. OK, not entirely, there's some great things, but they seem to be the more esoteric things for me. Oh wait, yeah, it depends on what you're doing. :) Marc

            Thyme In The Country

            People are just notoriously impossible. --DavidCrow
            There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer
            People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith

            R J M 3 Replies Last reply
            0
            • R Rohde

              I am curious. Why do you like it compared with for instance managed coding? I am genuinely interested, so it's not because I'm playing flame-starter here. I'm doing most of my coding in Java or C# (or even in a 4GL like Matlab), and it's been some years since I've done C++. I didn't mind programming in C++ but I must say I feel more productive in Java and C# mainly because of the huge API you get for free (the STL is great but minimal at best).


              FAULTLOG.TXT: File too large.

              J Offline
              J Offline
              Judah Gabriel Himango
              wrote on last edited by
              #6

              John is an outlaw; since the Evil Empire wants us to write managed code, he breaks the law and goes for native C++. :)

              Tech, life, family, faith: Give me a visit. I'm currently blogging about: God-as-Judge, God-as-Forgiver The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

              N 1 Reply Last reply
              0
              • R Rohde

                I am curious. Why do you like it compared with for instance managed coding? I am genuinely interested, so it's not because I'm playing flame-starter here. I'm doing most of my coding in Java or C# (or even in a 4GL like Matlab), and it's been some years since I've done C++. I didn't mind programming in C++ but I must say I feel more productive in Java and C# mainly because of the huge API you get for free (the STL is great but minimal at best).


                FAULTLOG.TXT: File too large.

                J Offline
                J Offline
                Jorgen Sigvardsson
                wrote on last edited by
                #7

                Because the zen of programming does not allow shortcuts... ;)

                -- For External Use Only

                1 Reply Last reply
                0
                • M Marc Clifton

                  Rohde wrote:

                  the STL is great but minimal at best

                  Thought I'd take a shot at answering you. :) I think it depends on what you're doing. (No wait, I KNOW it depends on what you're doing). I did an app that depended heavily on STL, I couldn't imagine doing it with a language that didn't support true and full STL capabilities. And it needed to be heavily optimized--not saying the same code wouldn't run as well in C#, but damn, it was nice being able to actually see the assembly output and be able to play with register keywords and other optimizations. That said, I do NOT miss the memory leak debugging nor the super-consciousness of always having to think "now, where am I deleting that memory allocation?". And frankly, I don't miss header files either, though when I first started using C#, I thought it was disguisting how the class definition and code were the same thing.

                  Rohde wrote:

                  because of the huge API you get for free

                  The API has never been a selling point for me. I hated MFC, I tolerate the .NET framework, and I basically write wrappers as much as possible for both, because they're so lame as it is. OK, not entirely, there's some great things, but they seem to be the more esoteric things for me. Oh wait, yeah, it depends on what you're doing. :) Marc

                  Thyme In The Country

                  People are just notoriously impossible. --DavidCrow
                  There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer
                  People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith

                  R Offline
                  R Offline
                  Rohde
                  wrote on last edited by
                  #8

                  Good post. Yeah the STL can be quite neat; what it does it does very good (with few exceptions) but it just does so little. I'm very much looking forward to see how they put threading in there for next C++ coming in 2010.


                  FAULTLOG.TXT: File too large.

                  E S 2 Replies Last reply
                  0
                  • R Rohde

                    I am curious. Why do you like it compared with for instance managed coding? I am genuinely interested, so it's not because I'm playing flame-starter here. I'm doing most of my coding in Java or C# (or even in a 4GL like Matlab), and it's been some years since I've done C++. I didn't mind programming in C++ but I must say I feel more productive in Java and C# mainly because of the huge API you get for free (the STL is great but minimal at best).


                    FAULTLOG.TXT: File too large.

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

                    What's most annoying about languages higher up: The full stop you get to when something is missing. If you know your C++, your platform and your library, you can do pretty much everything. If it ain't there, you can build it. Now, e.g. C# / .NET CLR give you the impression you don't need so much. You cruise along smootly until BAMM! GetSpecialFolder implements only half of the CSIDL values that its Win32 counterpart does. Now you can get your hands dirty with P/Invoke, play arund with the spec until you don't need it, or simply diss .NET - in Any way you are not thinking about "how to get that folder" anymore, but a whole lot of different concepts. (Maybe that feels that way only because I know the Win32 stuff quite well)


                    Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers!
                    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
                    Linkify!|Fold With Us!

                    1 Reply Last reply
                    0
                    • realJSOPR realJSOP

                      I love it when circumstances swing in my favor. I'm coding in unmanaged C++ again, and I feel... liberated. :) And CP wins because I even came up with another article. :)

                      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                      -----
                      "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

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

                      You know what John - you've inspired me to submit some more articles myself. I have lots of little utility classes/functions kicking around which I think I'll tidy up and submit. To exceed 25 decent articles has always been a goal of mine, as I really covet that almighty Platinum membership status... (plus *cough* the warm feeling you get when you share your code with others). :) The problem is that much of my code relies on STL/Boost, but to increase exposure I guess I should probably make it more MFC friendly - use CString's, MFC containers, etc.


                      Kicking squealing Gucci little piggy.
                      The Rob Blog

                      realJSOPR S 2 Replies Last reply
                      0
                      • R Rohde

                        Good post. Yeah the STL can be quite neat; what it does it does very good (with few exceptions) but it just does so little. I'm very much looking forward to see how they put threading in there for next C++ coming in 2010.


                        FAULTLOG.TXT: File too large.

                        E Offline
                        E Offline
                        El Corazon
                        wrote on last edited by
                        #11

                        Rohde wrote:

                        looking forward to see how they put threading in there for next C++ coming in 2010.

                        Intel uses OpenMP, so you already can. One of the difficulties is that you need to LEARN threading techniques. The compiler can't do it all for you. One of my team often said, "just put in a mutex that will fix it." I refused and got the reputation of hating mutexes. I do, in someways, properly written parallel code doesn't need them. I even have parallel versions of some STL containers. Parallel is first and foremost a thought process, not a compiler, or a tool. It's no different than learning C# or C++, it is just hated because the mistakes are almost always memory corruption and coredumps. It's an unforgiving taskmaster, but one very worthwhile learning from.

                        _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

                        R S B 3 Replies Last reply
                        0
                        • realJSOPR realJSOP

                          I love it when circumstances swing in my favor. I'm coding in unmanaged C++ again, and I feel... liberated. :) And CP wins because I even came up with another article. :)

                          "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                          -----
                          "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                          E Offline
                          E Offline
                          El Corazon
                          wrote on last edited by
                          #12

                          John Simmons / outlaw programmer wrote:

                          I'm coding in unmanaged C++ again, and I feel... liberated.

                          Congradulations, and welcome back to the fold! :-D

                          _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

                          J 1 Reply Last reply
                          0
                          • L Lost User

                            You know what John - you've inspired me to submit some more articles myself. I have lots of little utility classes/functions kicking around which I think I'll tidy up and submit. To exceed 25 decent articles has always been a goal of mine, as I really covet that almighty Platinum membership status... (plus *cough* the warm feeling you get when you share your code with others). :) The problem is that much of my code relies on STL/Boost, but to increase exposure I guess I should probably make it more MFC friendly - use CString's, MFC containers, etc.


                            Kicking squealing Gucci little piggy.
                            The Rob Blog

                            realJSOPR Offline
                            realJSOPR Offline
                            realJSOP
                            wrote on last edited by
                            #13

                            Yeah, I'm coveting that Platinum membership as well, mostly because Gold membership doesn't really mean anything since it's just a bonus level. You gotta earn platinum. :)

                            "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                            -----
                            "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                            J 1 Reply Last reply
                            0
                            • R Rohde

                              I am curious. Why do you like it compared with for instance managed coding? I am genuinely interested, so it's not because I'm playing flame-starter here. I'm doing most of my coding in Java or C# (or even in a 4GL like Matlab), and it's been some years since I've done C++. I didn't mind programming in C++ but I must say I feel more productive in Java and C# mainly because of the huge API you get for free (the STL is great but minimal at best).


                              FAULTLOG.TXT: File too large.

                              realJSOPR Offline
                              realJSOPR Offline
                              realJSOP
                              wrote on last edited by
                              #14
                              1. Because I think I'm pretty damn good at it 2) I'm not afraid of a few pointers 3) If I wanted Microsoft to manage my code, I'd be working for them. (I know, it's old, but it's worth repeating). 4) It's in my nature to go against the grain, spit into the wind, take the road less traveled, etc.

                              "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                              -----
                              "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                              L L N 3 Replies Last reply
                              0
                              • R Rohde

                                I am curious. Why do you like it compared with for instance managed coding? I am genuinely interested, so it's not because I'm playing flame-starter here. I'm doing most of my coding in Java or C# (or even in a 4GL like Matlab), and it's been some years since I've done C++. I didn't mind programming in C++ but I must say I feel more productive in Java and C# mainly because of the huge API you get for free (the STL is great but minimal at best).


                                FAULTLOG.TXT: File too large.

                                C Offline
                                C Offline
                                Christopher Duncan
                                wrote on last edited by
                                #15

                                In thinking it through, it's not so much that I prefer C# less than C++, it's that I enjoy native app development more than web based stuff. If I'm writing a web site, and a browser based solution really is the best way to go (rather than just being the trendy way to go), then C# / .NET rocks over all previous languages I've worked with. But the experience is massively clumsy compared to native development. I've been toggling back and forth this week between the weather channel toolbar in C++ and a basic database browser app in C#. The difference in the number of hoops I have to jump through to do things in a web browser is notable, and I find myself breathing a sigh of relief every time I fire up the C++ project. That said, I'd like to dig into a full tilt boogie native application written in C# and Winforms. I think that's the only way I could really compare the two in terms of productivity, etc. I don't enjoy chasing memory bugs anymore than the next guy, and if the framework gives me lots of cool stuff, it could be fun. I just don't like a language that tells me, "no." And programming within the constraints of a stateless protocol just sucks. I'm not sure how many others are actually feeling the same way, i.e. associate C# with web development rather than as a comparable language to C++. For serious application development, browser based development is like trying to build a sophisticated fighter jet out of your kid's building blocks. It comes nowhere close to native development in C++. However, since that's not a fair comparison of languages, I'd be curious to hear from my C++ brethren who have developed native Windows GUI based apps in both C++ and C# / Winforms. That's the real comparison.

                                Author of The Career Programmer and Unite the Tribes www.PracticalStrategyConsulting.com

                                J P J 3 Replies Last reply
                                0
                                • realJSOPR realJSOP
                                  1. Because I think I'm pretty damn good at it 2) I'm not afraid of a few pointers 3) If I wanted Microsoft to manage my code, I'd be working for them. (I know, it's old, but it's worth repeating). 4) It's in my nature to go against the grain, spit into the wind, take the road less traveled, etc.

                                  "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                                  -----
                                  "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                                  L Offline
                                  L Offline
                                  l a u r e n
                                  wrote on last edited by
                                  #16

                                  John Simmons / outlaw programmer wrote:

                                  1. It's in my nature to go against the grain, spit into the wind, take the road less traveled, etc.

                                  where you meet the most interesting people... :)

                                  "there is no spoon" {gagfoot} {me}

                                  1 Reply Last reply
                                  0
                                  • E El Corazon

                                    Rohde wrote:

                                    looking forward to see how they put threading in there for next C++ coming in 2010.

                                    Intel uses OpenMP, so you already can. One of the difficulties is that you need to LEARN threading techniques. The compiler can't do it all for you. One of my team often said, "just put in a mutex that will fix it." I refused and got the reputation of hating mutexes. I do, in someways, properly written parallel code doesn't need them. I even have parallel versions of some STL containers. Parallel is first and foremost a thought process, not a compiler, or a tool. It's no different than learning C# or C++, it is just hated because the mistakes are almost always memory corruption and coredumps. It's an unforgiving taskmaster, but one very worthwhile learning from.

                                    _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

                                    R Offline
                                    R Offline
                                    Rohde
                                    wrote on last edited by
                                    #17

                                    Oh, I agree. Programming using threads is a whole new ball game and sadly many use the techniques without proper theoretical baggage. I've never heard of OpenMP, but I'll look it up.


                                    FAULTLOG.TXT: File too large.

                                    1 Reply Last reply
                                    0
                                    • realJSOPR realJSOP
                                      1. Because I think I'm pretty damn good at it 2) I'm not afraid of a few pointers 3) If I wanted Microsoft to manage my code, I'd be working for them. (I know, it's old, but it's worth repeating). 4) It's in my nature to go against the grain, spit into the wind, take the road less traveled, etc.

                                      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                                      -----
                                      "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

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

                                      John Simmons / outlaw programmer wrote:

                                      It's in my nature to go against the grain, spit into the wind, take the road less traveled, etc.

                                      Isn't that the road along the side of the cliff then the ricket bridge over the bottomless chasm?

                                      The tigress is here :-D

                                      1 Reply Last reply
                                      0
                                      • realJSOPR realJSOP

                                        I love it when circumstances swing in my favor. I'm coding in unmanaged C++ again, and I feel... liberated. :) And CP wins because I even came up with another article. :)

                                        "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                                        -----
                                        "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                                        N Offline
                                        N Offline
                                        Nemanja Trifunovic
                                        wrote on last edited by
                                        #19

                                        John Simmons / outlaw programmer wrote:

                                        I'm coding in unmanaged C++ again, and I feel... liberated.

                                        I had the same feeling this time last year when switched back from C# to C++ I don't miss managed code at all :)


                                        Programming Blog utf8-cpp

                                        1 Reply Last reply
                                        0
                                        • J Judah Gabriel Himango

                                          John is an outlaw; since the Evil Empire wants us to write managed code, he breaks the law and goes for native C++. :)

                                          Tech, life, family, faith: Give me a visit. I'm currently blogging about: God-as-Judge, God-as-Forgiver The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

                                          N Offline
                                          N Offline
                                          Nirosh
                                          wrote on last edited by
                                          #20

                                          Judah Himango wrote:

                                          Evil Empire

                                          Evil or not is relative, isn't it?? ;)

                                          L.W.C. Nirosh. Colombo, Sri Lanka.

                                          J 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