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. Other Discussions
  3. The Weird and The Wonderful
  4. Why do some people code at all?

Why do some people code at all?

Scheduled Pinned Locked Moved The Weird and The Wonderful
question
16 Posts 14 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.
  • P Pete OHanlon

    Nah - CEO's only code in Excel.

    Deja View - the feeling that you've seen this post before.

    S Offline
    S Offline
    ScottM1
    wrote on last edited by
    #6

    Here is another good one int a = 5; if (a == a) { a = a + 1; } :wtf:

    There are 10 types of people in the world, those who understand binary and those who dont.

    Mike HankeyM 1 Reply Last reply
    0
    • O Optimus Chaos

      Not long ago my company hired another software company to develop a tool for us, because we didn't have the resources to do it ourselves at that time. After they delivered several versions that were all buggy and did not work properly we took the code and I had to finish it. Some endless loops and horrible try { ... } catch { // do nothing here } later I discovered the following beauty in the code: public bool AskForSureBox(string Message, string Title) { MessageBox.Show(Message, Title, MessageBoxButtons.YesNo); if (DialogResult.Yes.ToString() == "Yes") return true; else return false; } I afterwards took the liberty to write to the CEO of that company, asking him how long the programmer who wrote the code was already coding for his company... Until today I didn't get an answer. Have fun coding!

      K Offline
      K Offline
      Kochise
      wrote on last edited by
      #7

      See http://www.codeproject.com/lounge.asp?msg=2029905#xx2029905xx ! Answer : because there is even more inefficient architects/managers that hire them... Kochise

      In Code we trust !

      1 Reply Last reply
      0
      • O Optimus Chaos

        Not long ago my company hired another software company to develop a tool for us, because we didn't have the resources to do it ourselves at that time. After they delivered several versions that were all buggy and did not work properly we took the code and I had to finish it. Some endless loops and horrible try { ... } catch { // do nothing here } later I discovered the following beauty in the code: public bool AskForSureBox(string Message, string Title) { MessageBox.Show(Message, Title, MessageBoxButtons.YesNo); if (DialogResult.Yes.ToString() == "Yes") return true; else return false; } I afterwards took the liberty to write to the CEO of that company, asking him how long the programmer who wrote the code was already coding for his company... Until today I didn't get an answer. Have fun coding!

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

        Well at least it wasn't simply copied and pasted from a disc that came with a book.

        1 Reply Last reply
        0
        • S ScottM1

          Here is another good one int a = 5; if (a == a) { a = a + 1; } :wtf:

          There are 10 types of people in the world, those who understand binary and those who dont.

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

          Thanks for sharing that..I got one hell of a laugh outta it. Even my 16 y.o. non-programming son knew it was screwed. Mike

          Light travels faster than sound. That's why some people appear right until you hear them speak.

          1 Reply Last reply
          0
          • O Optimus Chaos

            Not long ago my company hired another software company to develop a tool for us, because we didn't have the resources to do it ourselves at that time. After they delivered several versions that were all buggy and did not work properly we took the code and I had to finish it. Some endless loops and horrible try { ... } catch { // do nothing here } later I discovered the following beauty in the code: public bool AskForSureBox(string Message, string Title) { MessageBox.Show(Message, Title, MessageBoxButtons.YesNo); if (DialogResult.Yes.ToString() == "Yes") return true; else return false; } I afterwards took the liberty to write to the CEO of that company, asking him how long the programmer who wrote the code was already coding for his company... Until today I didn't get an answer. Have fun coding!

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

            Yet another Gem to prove that there are some people out there that should choose another career! Mike

            Light travels faster than sound. That's why some people appear right until you hear them speak.

            1 Reply Last reply
            0
            • O Optimus Chaos

              Not long ago my company hired another software company to develop a tool for us, because we didn't have the resources to do it ourselves at that time. After they delivered several versions that were all buggy and did not work properly we took the code and I had to finish it. Some endless loops and horrible try { ... } catch { // do nothing here } later I discovered the following beauty in the code: public bool AskForSureBox(string Message, string Title) { MessageBox.Show(Message, Title, MessageBoxButtons.YesNo); if (DialogResult.Yes.ToString() == "Yes") return true; else return false; } I afterwards took the liberty to write to the CEO of that company, asking him how long the programmer who wrote the code was already coding for his company... Until today I didn't get an answer. Have fun coding!

              B Offline
              B Offline
              BAIJUMAX
              wrote on last edited by
              #11

              Simple Ans to the Q? , May be u r company paying them on the basis of , line count ( i hope u people have better code line count tool which skip spaces;) ) Warm Regards BAIJUMAX "Its Hard To Find Right & Wrong In This World , Simply Everything Is Relative."

              V 1 Reply Last reply
              0
              • B BAIJUMAX

                Simple Ans to the Q? , May be u r company paying them on the basis of , line count ( i hope u people have better code line count tool which skip spaces;) ) Warm Regards BAIJUMAX "Its Hard To Find Right & Wrong In This World , Simply Everything Is Relative."

                V Offline
                V Offline
                Vikram A Punathambekar
                wrote on last edited by
                #12

                Read it again - the return value is *always* going to be true.

                Cheers, Vıkram.


                Déjà moo - The feeling that you've seen this bull before. Join the CP group at NationStates. Password: byalmightybob

                B 1 Reply Last reply
                0
                • V Vikram A Punathambekar

                  Read it again - the return value is *always* going to be true.

                  Cheers, Vıkram.


                  Déjà moo - The feeling that you've seen this bull before. Join the CP group at NationStates. Password: byalmightybob

                  B Offline
                  B Offline
                  BAIJUMAX
                  wrote on last edited by
                  #13

                  Ohhhhhhh that's right , perhaps didn't notice this statement "DialogResult.Yes.ToString() == "Yes"" :laugh:

                  1 Reply Last reply
                  0
                  • O Optimus Chaos

                    Not long ago my company hired another software company to develop a tool for us, because we didn't have the resources to do it ourselves at that time. After they delivered several versions that were all buggy and did not work properly we took the code and I had to finish it. Some endless loops and horrible try { ... } catch { // do nothing here } later I discovered the following beauty in the code: public bool AskForSureBox(string Message, string Title) { MessageBox.Show(Message, Title, MessageBoxButtons.YesNo); if (DialogResult.Yes.ToString() == "Yes") return true; else return false; } I afterwards took the liberty to write to the CEO of that company, asking him how long the programmer who wrote the code was already coding for his company... Until today I didn't get an answer. Have fun coding!

                    R Offline
                    R Offline
                    Russell Jones
                    wrote on last edited by
                    #14

                    it's brilliant on so many levels. always good to have a laugh on a friday afternoon. Russ

                    1 Reply Last reply
                    0
                    • O Optimus Chaos

                      Not long ago my company hired another software company to develop a tool for us, because we didn't have the resources to do it ourselves at that time. After they delivered several versions that were all buggy and did not work properly we took the code and I had to finish it. Some endless loops and horrible try { ... } catch { // do nothing here } later I discovered the following beauty in the code: public bool AskForSureBox(string Message, string Title) { MessageBox.Show(Message, Title, MessageBoxButtons.YesNo); if (DialogResult.Yes.ToString() == "Yes") return true; else return false; } I afterwards took the liberty to write to the CEO of that company, asking him how long the programmer who wrote the code was already coding for his company... Until today I didn't get an answer. Have fun coding!

                      P Offline
                      P Offline
                      Paul Conrad
                      wrote on last edited by
                      #15

                      Here is my version :-> private bool AskForSureBox(string Message) { return MessageBox.Show(Message, "Are you sure?", MessageBoxButtons.YesNo) == DialogResult.Yes; } I just couldn't see passing Title as a parameter, and it is nice that there is no decisions to branch on. Clean execution path of this code :-D

                      1 Reply Last reply
                      0
                      • O Optimus Chaos

                        Not long ago my company hired another software company to develop a tool for us, because we didn't have the resources to do it ourselves at that time. After they delivered several versions that were all buggy and did not work properly we took the code and I had to finish it. Some endless loops and horrible try { ... } catch { // do nothing here } later I discovered the following beauty in the code: public bool AskForSureBox(string Message, string Title) { MessageBox.Show(Message, Title, MessageBoxButtons.YesNo); if (DialogResult.Yes.ToString() == "Yes") return true; else return false; } I afterwards took the liberty to write to the CEO of that company, asking him how long the programmer who wrote the code was already coding for his company... Until today I didn't get an answer. Have fun coding!

                        S Offline
                        S Offline
                        Sylvester george
                        wrote on last edited by
                        #16

                        Think differently means this is the one.

                        Regards, Sylvester G sylvester_g_m@yahoo.com

                        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