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.
  • N Nirosh

    John Simmons / outlaw programmer wrote:

    1. I'm not afraid of a few pointers

    But your client is..

    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.

    Do you advice us to do so too?? :omg:

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

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

    Nirosh wrote:

    John Simmons / outlaw programmer wrote: 2) I'm not afraid of a few pointers But your client is..

    Shya - right. They think a pointer is one of those laser thingies.

    Nirosh wrote:

    John Simmons / outlaw programmer wrote: 4) It's in my nature to go against the grain, spit into the wind, take the road less traveled, etc. Do you advice us to do so too??

    Of course.

    "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 1 Reply Last reply
    0
    • realJSOPR realJSOP

      Nirosh wrote:

      John Simmons / outlaw programmer wrote: 2) I'm not afraid of a few pointers But your client is..

      Shya - right. They think a pointer is one of those laser thingies.

      Nirosh wrote:

      John Simmons / outlaw programmer wrote: 4) It's in my nature to go against the grain, spit into the wind, take the road less traveled, etc. Do you advice us to do so too??

      Of course.

      "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
      Nirosh
      wrote on last edited by
      #35

      John Simmons / outlaw programmer wrote:

      Of course.

      Those who have changed the world had always done so.. but according to probability, you should have experienced more failures/ troubles than successes/ comforts by doing so..

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

      realJSOPR C 2 Replies Last reply
      0
      • J Jeremy Falcon

        Nirosh wrote:

        But your client is..

        Not really. Most clients don't know anything about computers.

        Jeremy Falcon A multithreaded, OpenGL-enabled application.[^]

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

        Jeremy Falcon wrote:

        Not really. Most clients don't know anything about computers.

        TRUE, But most of their technical guys (hired) do know a bit :laugh:

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

        J 1 Reply Last reply
        0
        • J Jeremy Falcon

          Marc Clifton wrote:

          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.

          Sounds like C# has a lot in common with classic VB. ;P

          Jeremy Falcon A multithreaded, OpenGL-enabled application.[^]

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

          Jeremy Falcon wrote:

          Sounds like C# has a lot in common with classic VB.

          Yeah, it's basically the same thing except for the curly braces vs. "procedure" or "function", IIRC. 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

          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

            M Offline
            M Offline
            Mike Dimmick
            wrote on last edited by
            #38

            Marc Clifton wrote:

            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?".

            You still have to track all the other resources to make sure you call Dispose where necessary. You also need to ensure you're not accidentally keeping objects rooted - an application with a lot of static data members can be really bad for this. True, C# offers the using block, but C++'s destructors, for stack-based objects, are actually far more effective. Memory leaks actually have little effect on a running Windows program - ultimately you'll run out of virtual address space and allocations will fail; the speed that this occurs depends on how much memory is leaked and how often. By definition, you don't reference a memory leak, so the page containing the leaked memory will eventually be swapped out. The system might need to expand its page file to support this. Resource leaks, on the other hand, normally mean that you can't reopen the resource and you'll get errors from this. Now, finalizers do exist in the .NET Framework, and they will free resources if the garbage collector determines that the objects owning those resources are no longer in use. But you can't predict when this will happen, so you can get errors at some times but not others. This makes it very hard to debug. On top of that, the finalizers only run on a single thread, which is not one of the program threads, so you always have a potential threading problem if an object has affinity with the thread that created it.

            Stability. What an interesting concept. -- Chris Maunder

            1 Reply Last reply
            0
            • J Jeremy Falcon

              Jeffry J. Brickley wrote:

              welcome back to the fold!

              Yeah, I guess we can't pick on John anymore when he's not looking. :rolleyes:

              Jeremy Falcon A multithreaded, OpenGL-enabled application.[^]

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

              I'm always watching. :)

              "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

              1 Reply Last reply
              0
              • N Nirosh

                John Simmons / outlaw programmer wrote:

                Of course.

                Those who have changed the world had always done so.. but according to probability, you should have experienced more failures/ troubles than successes/ comforts by doing so..

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

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

                I never fail at anything. Sometimes, things don't go exactly as planned, but gaining experience cannot be considered a failure.

                "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 1 Reply Last reply
                0
                • S Stuart Dootson

                  Jeffry J. Brickley wrote:

                  I even have parallel versions of some STL containers

                  Have you got parallel versions of the STL algorithms as well, or does that fall out of your parallelized containers?

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

                  Stuart Dootson wrote:

                  Have you got parallel versions of the STL algorithms as well, or does that fall out of your parallelized containers?

                  I did an OpenMP version of a couple, but talking my boss into getting the Intel Parallel tools for others. It includes a lot of parallel assisting algorithms. I can't do it all, so I think the best method is to get Intel to help them and me as well through the parallel algorithm tools.

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

                  1 Reply Last reply
                  0
                  • J Judah Gabriel Himango

                    Hey, I'd rather be working for the Evil Empire than for this smelly hippy[^]. ;)

                    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

                    C Offline
                    C Offline
                    Chris S Kaiser
                    wrote on last edited by
                    #42

                    Have you smelled him? *imagining someone verifying that the hippy is in fact smelly* Hmmm... too much time on yer hands if your going around smelling hippies. Or did I misunderstand and you were just being derogatory with another useless prejudiced stereotype?

                    What's in a sig? This statement is false. Build a bridge and get over it. ~ Chris Maunder

                    J 1 Reply Last reply
                    0
                    • N Nirosh

                      John Simmons / outlaw programmer wrote:

                      Of course.

                      Those who have changed the world had always done so.. but according to probability, you should have experienced more failures/ troubles than successes/ comforts by doing so..

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

                      C Offline
                      C Offline
                      Chris S Kaiser
                      wrote on last edited by
                      #43

                      You learn and grow more from failure than success. Success can actually be a hinderence to progressing.

                      What's in a sig? This statement is false. Build a bridge and get over it. ~ Chris Maunder

                      N 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

                        E Offline
                        E Offline
                        ednrgc
                        wrote on last edited by
                        #44

                        Nice. I remember the days..... I don't miss MFC. OWL blew it away.

                        1 Reply Last reply
                        0
                        • C Chris S Kaiser

                          Have you smelled him? *imagining someone verifying that the hippy is in fact smelly* Hmmm... too much time on yer hands if your going around smelling hippies. Or did I misunderstand and you were just being derogatory with another useless prejudiced stereotype?

                          What's in a sig? This statement is false. Build a bridge and get over it. ~ Chris Maunder

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

                          I guess you didn't see the wink smiley. :rolleyes:

                          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

                          C 1 Reply Last reply
                          0
                          • realJSOPR realJSOP

                            I never fail at anything. Sometimes, things don't go exactly as planned, but gaining experience cannot be considered a failure.

                            "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
                            Nirosh
                            wrote on last edited by
                            #46

                            John Simmons / outlaw programmer wrote:

                            I never fail at anything.

                            Smart.. Ar! also a better way to look at it

                            John Simmons / outlaw programmer wrote:

                            Sometimes,

                            Yes yes

                            John Simmons / outlaw programmer wrote:

                            things don't go exactly as planned

                            That's failure, right?

                            John Simmons / outlaw programmer wrote:

                            but gaining experience cannot be considered a failure.

                            TRUE, as long as you work for you :-D, but FALSE, when you work for a employer who depend on it's customers.. IMHO

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

                            1 Reply Last reply
                            0
                            • C Chris S Kaiser

                              You learn and grow more from failure than success. Success can actually be a hinderence to progressing.

                              What's in a sig? This statement is false. Build a bridge and get over it. ~ Chris Maunder

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

                              Correct

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

                              1 Reply Last reply
                              0
                              • J Judah Gabriel Himango

                                I guess you didn't see the wink smiley. :rolleyes:

                                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

                                C Offline
                                C Offline
                                Chris S Kaiser
                                wrote on last edited by
                                #48

                                Damn that smiley!!!! He gets me again. ;) No worries... Jesus was a smelly hippy.

                                What's in a sig? This statement is false. Build a bridge and get over it. ~ Chris Maunder

                                J 1 Reply Last reply
                                0
                                • C Chris S Kaiser

                                  Damn that smiley!!!! He gets me again. ;) No worries... Jesus was a smelly hippy.

                                  What's in a sig? This statement is false. Build a bridge and get over it. ~ Chris Maunder

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

                                  Chris S Kaiser wrote:

                                  No worries... Jesus was a smelly hippy.

                                  :laugh: Good point.

                                  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

                                  1 Reply Last reply
                                  0
                                  • B Bob Stanneveld

                                    Jeffry J. Brickley wrote:

                                    Parallel is first and foremost a thought process, not a compiler, or a tool.

                                    I totally agree. Somehow people think that multithreading will solve their performance issues. Without really understanding what's going on, people will produce bad designs - if designs are made at all - and that will result in a coding nightmare. Not even mentioning that this will even hurt performance. Parallel is more a design concept than a programming thing.

                                    Behind every great black man...             ... is the police. - Conspiracy brother Blog[^]

                                    J Offline
                                    J Offline
                                    Jasmine2501
                                    wrote on last edited by
                                    #50

                                    Yeah you're right about that. Half the time multi-threads will make performance worse. One thing it's good for is to keep a user interface alive while you do some processing. I haven't seen too many other places to use it, but then I'm usually doing pretty basic stuff. I'd kill for an interesting, innovative project some days.

                                    "Quality Software since 1983!"
                                    http://www.smoothjazzy.com/ - see the "Programming" section for (freeware) JazzySiteMaps, a simple application to generate .Net and Google-style sitemaps!

                                    1 Reply Last reply
                                    0
                                    • N Nirosh

                                      Jeremy Falcon wrote:

                                      Not really. Most clients don't know anything about computers.

                                      TRUE, But most of their technical guys (hired) do know a bit :laugh:

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

                                      J Offline
                                      J Offline
                                      Jasmine2501
                                      wrote on last edited by
                                      #51

                                      Not so sure about that. A web programmer for one of my members called me begging to know the IP address of our web server... it sounded pretty urgent. I might call him back on monday :)

                                      "Quality Software since 1983!"
                                      http://www.smoothjazzy.com/ - see the "Programming" section for (freeware) JazzySiteMaps, a simple application to generate .Net and Google-style sitemaps!

                                      N 1 Reply Last reply
                                      0
                                      • C Christopher Duncan

                                        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 Offline
                                        J Offline
                                        Jasmine2501
                                        wrote on last edited by
                                        #52

                                        I've done some apps in MFC with C++, and recently finished an application I chose to write in C#. I liked the C# a lot better. I could focus on getting the program logic correct and stop worrying about whether I was doing some crazy thing that would offend Windows sensitivities. If super high-performance was an issue, I might have gone with C++. The performance is not as good as it could be, and since it's in C#, there's really nowhere I can go in and tweak it. From the perspective of just getting the thing done, and having it work correctly, C# was the right choice. C# is definitely better for the standard Windows app, but I wouldn't trust it to do something that required good performance.

                                        "Quality Software since 1983!"
                                        http://www.smoothjazzy.com/ - see the "Programming" section for (freeware) JazzySiteMaps, a simple application to generate .Net and Google-style sitemaps!

                                        1 Reply Last reply
                                        0
                                        • J Jeremy Falcon

                                          I tend to associate C#/.NET/et al with business app and web development. I really just see it as repackaged VB with a face lift so some C++ programmers would fall for it. That being said, I'm glad to see it replace classic VB, but I still have the same feelings towards native vs managed as I did before .NET came along.

                                          Jeremy Falcon A multithreaded, OpenGL-enabled application.[^]

                                          J Offline
                                          J Offline
                                          Jasmine2501
                                          wrote on last edited by
                                          #53

                                          Yeah it has some resemblance to VB, but only in the names of objects (which are mostly coming from the .Net Framework). Syntacticly, it's nearly a direct rip-off of Java, with some of the names changed to protect the guilty.

                                          "Quality Software since 1983!"
                                          http://www.smoothjazzy.com/ - see the "Programming" section for (freeware) JazzySiteMaps, a simple application to generate .Net and Google-style sitemaps!

                                          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