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. Try....Catch

Try....Catch

Scheduled Pinned Locked Moved The Lounge
csharp
42 Posts 21 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P PhilLenoir

    Not offended, nor a boss. Just another minion making an observation on life! :)

    Life is like a s**t sandwich; the more bread you have, the less s**t you eat.

    C Offline
    C Offline
    codejet
    wrote on last edited by
    #22

    You have a way with words. You will be a boss in the near future. You are like a puppy that has swallowed a dictionary. Thats not my line got it from Dilbert, I am not sure its his line either.

    P K 2 Replies Last reply
    0
    • C codejet

      You have a way with words. You will be a boss in the near future. You are like a puppy that has swallowed a dictionary. Thats not my line got it from Dilbert, I am not sure its his line either.

      P Offline
      P Offline
      PhilLenoir
      wrote on last edited by
      #23

      I've been a boss, but it's unlikely I will be again. I retire in under 5 months! ... and I've never been a PHB. I'm not sure if the swallowed a dictionary should be taken as an insult or compliment, but I've always been blessed (cursed) with a large vocabulary. Just another victim of the English school system! I like puppies!

      Life is like a s**t sandwich; the more bread you have, the less s**t you eat.

      C 1 Reply Last reply
      0
      • C codejet

        The guy is self taught VB 6.0 programmer. Says he was using C++ at varsity, is he not supposed to understand Try...Catch

        A Offline
        A Offline
        Amarnath S
        wrote on last edited by
        #24

        Per this[^], exceptions came to C++ sometime around the early nineties. However, C++ was in existence at least ten years before that. Your boss may have worked on the early versions of C++, which did not have exceptions.

        P 1 Reply Last reply
        0
        • P PhilLenoir

          I've been a boss, but it's unlikely I will be again. I retire in under 5 months! ... and I've never been a PHB. I'm not sure if the swallowed a dictionary should be taken as an insult or compliment, but I've always been blessed (cursed) with a large vocabulary. Just another victim of the English school system! I like puppies!

          Life is like a s**t sandwich; the more bread you have, the less s**t you eat.

          C Offline
          C Offline
          codejet
          wrote on last edited by
          #25

          Its a compliment. Jus checked out your profile. I am 30, was thinking of quitting programming at 35. Programming nowadays is associated with socially awkward 20-something years old individuals. I am not that anymore. After seeing your I am thinking of sticking around beyond 35 may be yo should too. You don't look like you have reached retirement age.

          P R 2 Replies Last reply
          0
          • C codejet

            Working for a small IT firm I was not making much progress on a project using VB.NET so my boss who was once a programmer (VB6) decided to do some pair programming with me. We googled some code that had a try..catch block, the dude had no idea that the "Try" part was part of the code. He thought the author was saying i should try the code below. I stopped straight away and told him to go back to his office. Guess I should have asked what he thought the catch part was for. My advice to all owners of all small software development firms ; have some idea of what technologies and programming languages your employees are using to make all those products that bring in all that money for you.Dont emabarass yourself!

            M Offline
            M Offline
            Mark_Wallace
            wrote on last edited by
            #26

            My advice would be: "Do your job properly, and keep paying people who can do other jobs properly".

            I wanna be a eunuchs developer! Pass me a bread knife!

            1 Reply Last reply
            0
            • C codejet

              Its a compliment. Jus checked out your profile. I am 30, was thinking of quitting programming at 35. Programming nowadays is associated with socially awkward 20-something years old individuals. I am not that anymore. After seeing your I am thinking of sticking around beyond 35 may be yo should too. You don't look like you have reached retirement age.

              P Offline
              P Offline
              PhilLenoir
              wrote on last edited by
              #27

              Well, thank you. I'll be 60 in April and I can afford to stop as we don't lead an affluent lifestyle. I have 10 acres of conservation grade land, lots of hobbies, 3 grandkids with one more on the way. I play guitar and have a large music collection. In short I am blessed (I must have done something right in a previous existence!) I have plenty to keep me busy that I enjoy more than writing code and my wife says she'll leave me if I don't stop working - apparently I'm a moody old git and she's hoping that all will be sweetness and light next year. Good luck on the next 30 - 35. Just make sure you're having fun!

              Life is like a s**t sandwich; the more bread you have, the less s**t you eat.

              1 Reply Last reply
              0
              • C codejet

                Well he tried, I caught him. Boss :Try , Coder : Catch

                H Offline
                H Offline
                H Brydon
                wrote on last edited by
                #28

                Rosser: throw

                I'm retired. There's a nap for that... - Harvey

                1 Reply Last reply
                0
                • C codejet

                  Its a compliment. Jus checked out your profile. I am 30, was thinking of quitting programming at 35. Programming nowadays is associated with socially awkward 20-something years old individuals. I am not that anymore. After seeing your I am thinking of sticking around beyond 35 may be yo should too. You don't look like you have reached retirement age.

                  R Offline
                  R Offline
                  Ravi Bhavnani
                  wrote on last edited by
                  #29

                  codejet wrote:

                  Programming nowadays is associated with socially awkward 20-something years old individuals.

                  You must watch a lot of TV. :) /ravi

                  My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

                  1 Reply Last reply
                  0
                  • C codejet

                    Working for a small IT firm I was not making much progress on a project using VB.NET so my boss who was once a programmer (VB6) decided to do some pair programming with me. We googled some code that had a try..catch block, the dude had no idea that the "Try" part was part of the code. He thought the author was saying i should try the code below. I stopped straight away and told him to go back to his office. Guess I should have asked what he thought the catch part was for. My advice to all owners of all small software development firms ; have some idea of what technologies and programming languages your employees are using to make all those products that bring in all that money for you.Dont emabarass yourself!

                    D Offline
                    D Offline
                    dandy72
                    wrote on last edited by
                    #30

                    codejet wrote:

                    My advice to all owners of all small software development firms ; have some idea of what technologies and programming languages your employees are using

                    Depends on the level of his/her involvement. If my boss isn't coding, I'd rather have him stay out of it altogether than have him "know enough to be dangerous".

                    1 Reply Last reply
                    0
                    • C codejet

                      Working for a small IT firm I was not making much progress on a project using VB.NET so my boss who was once a programmer (VB6) decided to do some pair programming with me. We googled some code that had a try..catch block, the dude had no idea that the "Try" part was part of the code. He thought the author was saying i should try the code below. I stopped straight away and told him to go back to his office. Guess I should have asked what he thought the catch part was for. My advice to all owners of all small software development firms ; have some idea of what technologies and programming languages your employees are using to make all those products that bring in all that money for you.Dont emabarass yourself!

                      J Offline
                      J Offline
                      jschell
                      wrote on last edited by
                      #31

                      codejet wrote:

                      My advice to all owners of all small software development firms ; have some idea of what technologies and programming languages your employees are using to make all those products that bring in all that money for you.Dont emabarass yourself!

                      Myself I prefer that they have a great deal of knowledge about how to sell the product and hire those that can also sell it. And that they are successful in both of those. And then stay out of my way and make sure I get paid.

                      1 Reply Last reply
                      0
                      • P PIEBALDconsult

                        Slacker007 wrote:

                        surgeon, or the patient

                        I thought it was dog or fire hydrant.

                        _ Offline
                        _ Offline
                        _Damian S_
                        wrote on last edited by
                        #32

                        PIEBALDconsult wrote:

                        I thought it was dog or fire hydrant.

                        Some days you're the pigeon, some days you're the statue!! Sometimes you get the elevator... usually you get the shaft!!

                        Quad skating his way through the world since the early 80's... Booger Mobile - My bright green 1964 Ford Falcon - check out the blog here!! | If you feel generous - make a donation to Camp Quality!!

                        1 Reply Last reply
                        0
                        • C codejet

                          Working for a small IT firm I was not making much progress on a project using VB.NET so my boss who was once a programmer (VB6) decided to do some pair programming with me. We googled some code that had a try..catch block, the dude had no idea that the "Try" part was part of the code. He thought the author was saying i should try the code below. I stopped straight away and told him to go back to his office. Guess I should have asked what he thought the catch part was for. My advice to all owners of all small software development firms ; have some idea of what technologies and programming languages your employees are using to make all those products that bring in all that money for you.Dont emabarass yourself!

                          M Offline
                          M Offline
                          Mycroft Holmes
                          wrote on last edited by
                          #33

                          I tell my boss the reason I took the team to c# was so he would no longer understand the syntax and could not interfere! Works too, he gets horribly frustrated when he peers over the shoulder of one of the developers and can't understand the syntax. The real reason is that there is more support for c# on the interwebs!

                          Never underestimate the power of human stupidity RAH

                          1 Reply Last reply
                          0
                          • C codejet

                            Working for a small IT firm I was not making much progress on a project using VB.NET so my boss who was once a programmer (VB6) decided to do some pair programming with me. We googled some code that had a try..catch block, the dude had no idea that the "Try" part was part of the code. He thought the author was saying i should try the code below. I stopped straight away and told him to go back to his office. Guess I should have asked what he thought the catch part was for. My advice to all owners of all small software development firms ; have some idea of what technologies and programming languages your employees are using to make all those products that bring in all that money for you.Dont emabarass yourself!

                            E Offline
                            E Offline
                            englebart
                            wrote on last edited by
                            #34

                            I worked on a small team that had a boss like that. Our worse nightmare was to walk in on Monday morning and see the boss's sleep-deprived face. "I just got a new feature almost working this weekend, I am sure that one of you can finish this off by lunch time." Meanwhile, various interactions broke four other modules in the system. Aarrgh!

                            1 Reply Last reply
                            0
                            • C codejet

                              Working for a small IT firm I was not making much progress on a project using VB.NET so my boss who was once a programmer (VB6) decided to do some pair programming with me. We googled some code that had a try..catch block, the dude had no idea that the "Try" part was part of the code. He thought the author was saying i should try the code below. I stopped straight away and told him to go back to his office. Guess I should have asked what he thought the catch part was for. My advice to all owners of all small software development firms ; have some idea of what technologies and programming languages your employees are using to make all those products that bring in all that money for you.Dont emabarass yourself!

                              P Offline
                              P Offline
                              penguinman573
                              wrote on last edited by
                              #35

                              A useful DotNet error handling structure that you could have explained to him in five minutes. I dislike when 'knowledge of particular language syntax' is confused with 'programming ability'. It's like if Einstein asked you what some english word meant, so you assume he is an idiot. I wonder who is designing the GUI, and defining the functionality of your application.. eg all the stuff that can be done before you start typing code... eg 90% of the software design.

                              C 1 Reply Last reply
                              0
                              • A Amarnath S

                                Per this[^], exceptions came to C++ sometime around the early nineties. However, C++ was in existence at least ten years before that. Your boss may have worked on the early versions of C++, which did not have exceptions.

                                P Offline
                                P Offline
                                patbob
                                wrote on last edited by
                                #36

                                Thanks for posting this. I didn't think try-catch was originally part of C++, but was going crazy trying to remember clearly that far back since I couldn't find anything about it. As I recall it wasn't even part of MS's C++ compiler at first, although they did have macro (?) extensions that implemented it.

                                We can program with only 1's, but if all you've got are zeros, you've got nothing.

                                1 Reply Last reply
                                0
                                • P penguinman573

                                  A useful DotNet error handling structure that you could have explained to him in five minutes. I dislike when 'knowledge of particular language syntax' is confused with 'programming ability'. It's like if Einstein asked you what some english word meant, so you assume he is an idiot. I wonder who is designing the GUI, and defining the functionality of your application.. eg all the stuff that can be done before you start typing code... eg 90% of the software design.

                                  C Offline
                                  C Offline
                                  codejet
                                  wrote on last edited by
                                  #37

                                  I would have explained to him had he asked. I am not bragging about my programming abilities. I honestly think my boss is a better programmer than me. However he is so out of touch with how I do what he instructs me to do . I am 100% comfortable with this....i think my job is very secure. He should just stop disturbing me thats all. I would explained to him the syntax in 5 minutes but that would have encouraged him to continue disturbing me. By the way I do not think your Einstein analogy is appropriate for this situation.

                                  K 1 Reply Last reply
                                  0
                                  • P PIEBALDconsult

                                    "Well, you can try this code, but the catch is that it swallows Exceptions."

                                    K Offline
                                    K Offline
                                    KP Lee
                                    wrote on last edited by
                                    #38

                                    Boss: What's Exceptions? Answer: messages about errors. Boss: Well, just don't write errors in code and you don't need Exceptions, problem solved.

                                    1 Reply Last reply
                                    0
                                    • C codejet

                                      You have a way with words. You will be a boss in the near future. You are like a puppy that has swallowed a dictionary. Thats not my line got it from Dilbert, I am not sure its his line either.

                                      K Offline
                                      K Offline
                                      KP Lee
                                      wrote on last edited by
                                      #39

                                      codejet wrote:

                                      Thats not my line got it from Dilbert, I am not sure its his line either.

                                      I can categorically state that is not from Dilbert because fictional characters don't create anything. :laugh:

                                      1 Reply Last reply
                                      0
                                      • P PIEBALDconsult

                                        Then it's good thing I can't produce a laminar flow.

                                        K Offline
                                        K Offline
                                        KP Lee
                                        wrote on last edited by
                                        #40

                                        PIEBALDconsult wrote:

                                        Then it's good thing I can't produce a laminar flow.

                                        I doubt a fire hydrant is designed to do that either. Put the flow in a slightly inclined trough and you could produce one too.

                                        1 Reply Last reply
                                        0
                                        • C codejet

                                          I would have explained to him had he asked. I am not bragging about my programming abilities. I honestly think my boss is a better programmer than me. However he is so out of touch with how I do what he instructs me to do . I am 100% comfortable with this....i think my job is very secure. He should just stop disturbing me thats all. I would explained to him the syntax in 5 minutes but that would have encouraged him to continue disturbing me. By the way I do not think your Einstein analogy is appropriate for this situation.

                                          K Offline
                                          K Offline
                                          KP Lee
                                          wrote on last edited by
                                          #41

                                          codejet wrote:

                                          I do not think your Einstein analogy is appropriate for this situation.

                                          I doubt there was any comparison to Einstein directly, everyone has blind spots where they aren't the best and that analogy seemed appropriate to me here.

                                          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