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. The dev was fired but the havoc is left for us to fix...

The dev was fired but the havoc is left for us to fix...

Scheduled Pinned Locked Moved The Lounge
helpquestion
25 Posts 17 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.
  • A Alberto Bar Noy

    [rant] If forecolor red then disable(control) else if forecolor black then enable(control) [/rant] :mad::mad::mad:

    Alberto Bar-Noy --------------- “The city’s central computer told you? R2D2, you know better than to trust a strange computer!” (C3PO)

    D Offline
    D Offline
    Dalek Dave
    wrote on last edited by
    #2

    That deserves a place in the Hall of Shame!

    ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^] Trolls[^]

    A J 2 Replies Last reply
    0
    • D Dalek Dave

      That deserves a place in the Hall of Shame!

      ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^] Trolls[^]

      J Offline
      J Offline
      JacquesDP
      wrote on last edited by
      #3

      Or for discussion in the back-room

      No matter how long he who laughs last laughs, he who laughs first has a head start!

      H 1 Reply Last reply
      0
      • D Dalek Dave

        That deserves a place in the Hall of Shame!

        ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^] Trolls[^]

        A Offline
        A Offline
        Alberto Bar Noy
        wrote on last edited by
        #4

        That the deserves a troll kick where the sun does not shine out of the window and through the windshield of his car. So in my book he got away with "murder".

        Alberto Bar-Noy --------------- “The city’s central computer told you? R2D2, you know better than to trust a strange computer!” (C3PO)

        1 Reply Last reply
        0
        • A Alberto Bar Noy

          [rant] If forecolor red then disable(control) else if forecolor black then enable(control) [/rant] :mad::mad::mad:

          Alberto Bar-Noy --------------- “The city’s central computer told you? R2D2, you know better than to trust a strange computer!” (C3PO)

          D Offline
          D Offline
          dan sh
          wrote on last edited by
          #5

          Wow! Brilliant.

          "The worst code you'll come across is code you wrote last year.", wizardzz[^]

          A 1 Reply Last reply
          0
          • D dan sh

            Wow! Brilliant.

            "The worst code you'll come across is code you wrote last year.", wizardzz[^]

            A Offline
            A Offline
            Alberto Bar Noy
            wrote on last edited by
            #6

            Darwin award on brilliant coding.

            Alberto Bar-Noy --------------- “The city’s central computer told you? R2D2, you know better than to trust a strange computer!” (C3PO)

            1 Reply Last reply
            0
            • J JacquesDP

              Or for discussion in the back-room

              No matter how long he who laughs last laughs, he who laughs first has a head start!

              H Offline
              H Offline
              hairy_hats
              wrote on last edited by
              #7

              I heard that had been deleted along with Ian Botham.

              J 1 Reply Last reply
              0
              • H hairy_hats

                I heard that had been deleted along with Ian Botham.

                J Offline
                J Offline
                JacquesDP
                wrote on last edited by
                #8

                There are many roads to Rome, was maybe just a soft delete clickety[^]

                No matter how long he who laughs last laughs, he who laughs first has a head start!

                H 1 Reply Last reply
                0
                • A Alberto Bar Noy

                  [rant] If forecolor red then disable(control) else if forecolor black then enable(control) [/rant] :mad::mad::mad:

                  Alberto Bar-Noy --------------- “The city’s central computer told you? R2D2, you know better than to trust a strange computer!” (C3PO)

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

                  The most annoying thing about cr@ppy code like that is that it usually works. Any self-respecting computer should billow forth plumes of black smoke on meeting such drivel.

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

                  A 1 Reply Last reply
                  0
                  • A Alberto Bar Noy

                    [rant] If forecolor red then disable(control) else if forecolor black then enable(control) [/rant] :mad::mad::mad:

                    Alberto Bar-Noy --------------- “The city’s central computer told you? R2D2, you know better than to trust a strange computer!” (C3PO)

                    G Offline
                    G Offline
                    Gizz
                    wrote on last edited by
                    #10

                    "If forecolor red then disable(control) else if forecolor black then enable(control)" Oooh sounds like a system I had to suffer/work on; not the Credit Derivative VB code at a certain north American bank?! Except, that used colour to denote state, so the controls could be any one of about 6 different colours...

                    A 1 Reply Last reply
                    0
                    • J JacquesDP

                      There are many roads to Rome, was maybe just a soft delete clickety[^]

                      No matter how long he who laughs last laughs, he who laughs first has a head start!

                      H Offline
                      H Offline
                      hairy_hats
                      wrote on last edited by
                      #11

                      Also[^]

                      1 Reply Last reply
                      0
                      • A Alberto Bar Noy

                        [rant] If forecolor red then disable(control) else if forecolor black then enable(control) [/rant] :mad::mad::mad:

                        Alberto Bar-Noy --------------- “The city’s central computer told you? R2D2, you know better than to trust a strange computer!” (C3PO)

                        J Offline
                        J Offline
                        Jarek Kruza
                        wrote on last edited by
                        #12

                        Well, I had the same, but the color was PapayaWhip... :(

                        1 Reply Last reply
                        0
                        • M Mark_Wallace

                          The most annoying thing about cr@ppy code like that is that it usually works. Any self-respecting computer should billow forth plumes of black smoke on meeting such drivel.

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

                          A Offline
                          A Offline
                          Alberto Bar Noy
                          wrote on last edited by
                          #13

                          Works... well more like touch and go... as in touch the color in the themes and there goes the functionality

                          Alberto Bar-Noy --------------- “The city’s central computer told you? R2D2, you know better than to trust a strange computer!” (C3PO)

                          1 Reply Last reply
                          0
                          • A Alberto Bar Noy

                            [rant] If forecolor red then disable(control) else if forecolor black then enable(control) [/rant] :mad::mad::mad:

                            Alberto Bar-Noy --------------- “The city’s central computer told you? R2D2, you know better than to trust a strange computer!” (C3PO)

                            I Offline
                            I Offline
                            ii_noname_ii
                            wrote on last edited by
                            #14

                            lol, if it works, it works. If you're alone on the project, and get fired, your replacements deserve to go through hell.

                            D 1 Reply Last reply
                            0
                            • A Alberto Bar Noy

                              [rant] If forecolor red then disable(control) else if forecolor black then enable(control) [/rant] :mad::mad::mad:

                              Alberto Bar-Noy --------------- “The city’s central computer told you? R2D2, you know better than to trust a strange computer!” (C3PO)

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

                              My favourite was "delete this" in a class destructor. Hours of ROFL on that one.

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

                              1 Reply Last reply
                              0
                              • A Alberto Bar Noy

                                [rant] If forecolor red then disable(control) else if forecolor black then enable(control) [/rant] :mad::mad::mad:

                                Alberto Bar-Noy --------------- “The city’s central computer told you? R2D2, you know better than to trust a strange computer!” (C3PO)

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

                                Color-blind users need not apply... It seems that just introducing constants for the colors could help with readability. public const Color NotApplicable = Color.Red but I am pretty sure that this one liner just scrapes the surface.

                                A 1 Reply Last reply
                                0
                                • E englebart

                                  Color-blind users need not apply... It seems that just introducing constants for the colors could help with readability. public const Color NotApplicable = Color.Red but I am pretty sure that this one liner just scrapes the surface.

                                  A Offline
                                  A Offline
                                  Alberto Bar Noy
                                  wrote on last edited by
                                  #17

                                  It is beyond that. Who bases control state based upon its adjacent text color?????

                                  Alberto Bar-Noy --------------- “The city’s central computer told you? R2D2, you know better than to trust a strange computer!” (C3PO)

                                  D M B 3 Replies Last reply
                                  0
                                  • G Gizz

                                    "If forecolor red then disable(control) else if forecolor black then enable(control)" Oooh sounds like a system I had to suffer/work on; not the Credit Derivative VB code at a certain north American bank?! Except, that used colour to denote state, so the controls could be any one of about 6 different colours...

                                    A Offline
                                    A Offline
                                    Alberto Bar Noy
                                    wrote on last edited by
                                    #18

                                    Nope not even close.

                                    Alberto Bar-Noy --------------- “The city’s central computer told you? R2D2, you know better than to trust a strange computer!” (C3PO)

                                    1 Reply Last reply
                                    0
                                    • I ii_noname_ii

                                      lol, if it works, it works. If you're alone on the project, and get fired, your replacements deserve to go through hell.

                                      D Offline
                                      D Offline
                                      Dominic Amann
                                      wrote on last edited by
                                      #19

                                      Ah, so it WAS you!

                                      1 Reply Last reply
                                      0
                                      • A Alberto Bar Noy

                                        It is beyond that. Who bases control state based upon its adjacent text color?????

                                        Alberto Bar-Noy --------------- “The city’s central computer told you? R2D2, you know better than to trust a strange computer!” (C3PO)

                                        D Offline
                                        D Offline
                                        devenneym
                                        wrote on last edited by
                                        #20

                                        I'm afraid to answer because it forces me into thinking about *why* someone would do this in the first place... ugh.

                                        1 Reply Last reply
                                        0
                                        • A Alberto Bar Noy

                                          It is beyond that. Who bases control state based upon its adjacent text color?????

                                          Alberto Bar-Noy --------------- “The city’s central computer told you? R2D2, you know better than to trust a strange computer!” (C3PO)

                                          M Offline
                                          M Offline
                                          Michael A Cochran
                                          wrote on last edited by
                                          #21

                                          I'm sure I'll take heat for this but, honestly, I don't think it's that bad. One boolean is (almost) as good as another. Without seeing the rest of the code, it's hard to tell what the intention was. Certainly I would try not to do this but perhaps the developer was attempting to avoid a global variable to hold control state? Or perhaps there are a number of controls who's state has to be managed and the dev wanted to avoid an array or a hash? Perhaps the control state is set from a disconnected object and there is no mechanism to transfer state? I dunno? But it's pretty common to do things like if $('#myid').hasClass('enabled') { // do something }. Other than string processsing to get a boolean, it doesn't seem that far different to me. shrug.

                                          A 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