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. Simple yet entertaining

Simple yet entertaining

Scheduled Pinned Locked Moved The Weird and The Wonderful
7 Posts 4 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.
  • S Offline
    S Offline
    Steven M Hunt
    wrote on last edited by
    #1

    Here's one I know we've all seen, but it always give me a chuckle: if ((from i in dc.PRODUCTIONs where i.ACTIVE == true select i.WOID).Contains(getSysId(woid)) == false) If you think this is bad, you should see how the actual software runs! Ever since I started working for this company, I've had to completely strip and rebuild all the code most of it only half works. I'll post more horrors as I find them. Happy coding!

    -- Steven

    J W 2 Replies Last reply
    0
    • S Steven M Hunt

      Here's one I know we've all seen, but it always give me a chuckle: if ((from i in dc.PRODUCTIONs where i.ACTIVE == true select i.WOID).Contains(getSysId(woid)) == false) If you think this is bad, you should see how the actual software runs! Ever since I started working for this company, I've had to completely strip and rebuild all the code most of it only half works. I'll post more horrors as I find them. Happy coding!

      -- Steven

      J Offline
      J Offline
      Jeremy Tierman
      wrote on last edited by
      #2

      OMG!!

      1 Reply Last reply
      0
      • S Steven M Hunt

        Here's one I know we've all seen, but it always give me a chuckle: if ((from i in dc.PRODUCTIONs where i.ACTIVE == true select i.WOID).Contains(getSysId(woid)) == false) If you think this is bad, you should see how the actual software runs! Ever since I started working for this company, I've had to completely strip and rebuild all the code most of it only half works. I'll post more horrors as I find them. Happy coding!

        -- Steven

        W Offline
        W Offline
        wout de zeeuw
        wrote on last edited by
        #3

        I'm not too familiar with linq yet, what's wrong with this one?

        Wout

        L 1 Reply Last reply
        0
        • W wout de zeeuw

          I'm not too familiar with linq yet, what's wrong with this one?

          Wout

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

          Everything is between the if ( ) :-)

          W 1 Reply Last reply
          0
          • L Lost User

            Everything is between the if ( ) :-)

            W Offline
            W Offline
            wout de zeeuw
            wrote on last edited by
            #5

            Uuuh... :~ So what's the bug?

            Wout

            L 1 Reply Last reply
            0
            • W wout de zeeuw

              Uuuh... :~ So what's the bug?

              Wout

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

              It's not a bug, but the code is very difficult to understand, even for experienced programmers. The guy should have used variables to store intermediate results.

              W 1 Reply Last reply
              0
              • L Lost User

                It's not a bug, but the code is very difficult to understand, even for experienced programmers. The guy should have used variables to store intermediate results.

                W Offline
                W Offline
                wout de zeeuw
                wrote on last edited by
                #7

                Aaaah, I thought it was my unfamiliarity with linq, geez!

                Wout

                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