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. I hate outsourcing...

I hate outsourcing...

Scheduled Pinned Locked Moved The Weird and The Wonderful
csharpdotnetquestionannouncementcareer
12 Posts 8 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.
  • R Offline
    R Offline
    Rhys Gravell
    wrote on last edited by
    #1

    well I'm reasonably new in my current role, 8 or so months, but have been working with c# since version 1.0 of the .net framework. It still amazes me what you see in code written by the lowest bidder, and the inexperienced, but why oh why would you do this?... public enum YesNo { N = 0, Y = 1 } ...yes, this is live, production code, and just one of many, many examples of how not to do a job properly.

    Rhys "Technological progress is like an axe in the hands of a pathological criminal" "Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe"

    L P B 3 Replies Last reply
    0
    • R Rhys Gravell

      well I'm reasonably new in my current role, 8 or so months, but have been working with c# since version 1.0 of the .net framework. It still amazes me what you see in code written by the lowest bidder, and the inexperienced, but why oh why would you do this?... public enum YesNo { N = 0, Y = 1 } ...yes, this is live, production code, and just one of many, many examples of how not to do a job properly.

      Rhys "Technological progress is like an axe in the hands of a pathological criminal" "Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe"

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

      Change it to this:

      public enum YesNoMaybeBuzzOff
      {
      M = -1,
      N = 0,
      Y = 1,
      BO = 42
      }

      At least artificial intelligence already is superior to natural stupidity

      Z B 2 Replies Last reply
      0
      • L Lost User

        Change it to this:

        public enum YesNoMaybeBuzzOff
        {
        M = -1,
        N = 0,
        Y = 1,
        BO = 42
        }

        At least artificial intelligence already is superior to natural stupidity

        Z Offline
        Z Offline
        ZurdoDev
        wrote on last edited by
        #3

        Yes, a forward-thinker. Good future planning. :)

        There are only 10 types of people in the world, those who understand binary and those who don't.

        1 Reply Last reply
        0
        • L Lost User

          Change it to this:

          public enum YesNoMaybeBuzzOff
          {
          M = -1,
          N = 0,
          Y = 1,
          BO = 42
          }

          At least artificial intelligence already is superior to natural stupidity

          B Offline
          B Offline
          Brisingr Aerowing
          wrote on last edited by
          #4

          Change it to

          enum YesNo
          {
          N=0,
          Y=1,
          FileNotFound=-1
          }

          Bill Gates is a very rich man today... and do you want to know why? The answer is one word: versions. Dave Barry Read more at [BrainyQuote](http://www.brainyquote.com/quotes/topics topic_technology.html#yAfSEbrfumitrteO.99)[^]

          L 1 Reply Last reply
          0
          • B Brisingr Aerowing

            Change it to

            enum YesNo
            {
            N=0,
            Y=1,
            FileNotFound=-1
            }

            Bill Gates is a very rich man today... and do you want to know why? The answer is one word: versions. Dave Barry Read more at [BrainyQuote](http://www.brainyquote.com/quotes/topics topic_technology.html#yAfSEbrfumitrteO.99)[^]

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

            game, set, match

            1 Reply Last reply
            0
            • R Rhys Gravell

              well I'm reasonably new in my current role, 8 or so months, but have been working with c# since version 1.0 of the .net framework. It still amazes me what you see in code written by the lowest bidder, and the inexperienced, but why oh why would you do this?... public enum YesNo { N = 0, Y = 1 } ...yes, this is live, production code, and just one of many, many examples of how not to do a job properly.

              Rhys "Technological progress is like an axe in the hands of a pathological criminal" "Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe"

              P Online
              P Online
              PIEBALDconsult
              wrote on last edited by
              #6

              Without more context that seems OK to me. I might use something like that when parsing a stream of input into a database.

              A R 2 Replies Last reply
              0
              • P PIEBALDconsult

                Without more context that seems OK to me. I might use something like that when parsing a stream of input into a database.

                A Offline
                A Offline
                AspDotNetDev
                wrote on last edited by
                #7

                I agree; this could be useful, depending on the context. Another context I can think of that would be useful is a web service that returns what a user chose (e.g., they may select "yes" they'd like to subscribe to a service or "no" that they don't want an email newsletter).

                Thou mewling ill-breeding pignut!

                1 Reply Last reply
                0
                • P PIEBALDconsult

                  Without more context that seems OK to me. I might use something like that when parsing a stream of input into a database.

                  R Offline
                  R Offline
                  Rhys Gravell
                  wrote on last edited by
                  #8

                  Obviously the c# boolean type just isn't good enough in some places then... ...any further justification and you guys should hide your heads in shame... :rolleyes:

                  Rhys "Technological progress is like an axe in the hands of a pathological criminal" "Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe"

                  G P 2 Replies Last reply
                  0
                  • R Rhys Gravell

                    Obviously the c# boolean type just isn't good enough in some places then... ...any further justification and you guys should hide your heads in shame... :rolleyes:

                    Rhys "Technological progress is like an axe in the hands of a pathological criminal" "Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe"

                    G Offline
                    G Offline
                    Gary Huck
                    wrote on last edited by
                    #9

                    Agreed. But they should be shamed at any justification. You have my sympathy. 'probly came from an Access programmer [in case you don't know: Access has a data type YesNo].

                    1 Reply Last reply
                    0
                    • R Rhys Gravell

                      Obviously the c# boolean type just isn't good enough in some places then... ...any further justification and you guys should hide your heads in shame... :rolleyes:

                      Rhys "Technological progress is like an axe in the hands of a pathological criminal" "Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe"

                      P Online
                      P Online
                      PIEBALDconsult
                      wrote on last edited by
                      #10

                      Rhys Gravell wrote:

                      Obviously the c# boolean type just isn't good enough in some places then

                      Correct, it's very limited. :~

                      1 Reply Last reply
                      0
                      • R Rhys Gravell

                        well I'm reasonably new in my current role, 8 or so months, but have been working with c# since version 1.0 of the .net framework. It still amazes me what you see in code written by the lowest bidder, and the inexperienced, but why oh why would you do this?... public enum YesNo { N = 0, Y = 1 } ...yes, this is live, production code, and just one of many, many examples of how not to do a job properly.

                        Rhys "Technological progress is like an axe in the hands of a pathological criminal" "Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe"

                        B Offline
                        B Offline
                        Bernhard Hiller
                        wrote on last edited by
                        #11

                        You lucky youngster! You cannot remeber the "Good" Old Days when Booleans had to be transformed to numbers. Well, "no" or "false" was generally 0, but "yes" or "true" had many definitions: 1, -1, 255 - these are just the most important ones I still remember. And now imagine you have to write a new front end which communicates with a MUMPS server...

                        R 1 Reply Last reply
                        0
                        • B Bernhard Hiller

                          You lucky youngster! You cannot remeber the "Good" Old Days when Booleans had to be transformed to numbers. Well, "no" or "false" was generally 0, but "yes" or "true" had many definitions: 1, -1, 255 - these are just the most important ones I still remember. And now imagine you have to write a new front end which communicates with a MUMPS server...

                          R Offline
                          R Offline
                          Rhys Gravell
                          wrote on last edited by
                          #12

                          MUMPS server, now I feel a little ill X|

                          Rhys "Technological progress is like an axe in the hands of a pathological criminal" "Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe"

                          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