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. Found error 101 in my own code yesterday

Found error 101 in my own code yesterday

Scheduled Pinned Locked Moved The Weird and The Wonderful
help
8 Posts 7 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.
  • G Offline
    G Offline
    Ger Hayden
    wrote on last edited by
    #1

    I found this revisiting a cell validation module - simplified for readability

    A=B
    B=A

    :doh: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Now just what was I on that morning..

    Ger

    Sander RosselS B A 3 Replies Last reply
    0
    • G Ger Hayden

      I found this revisiting a cell validation module - simplified for readability

      A=B
      B=A

      :doh: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Now just what was I on that morning..

      Ger

      Sander RosselS Offline
      Sander RosselS Offline
      Sander Rossel
      wrote on last edited by
      #2

      A guy that used to work at my company used to do that all the time. He got some function of the internet and did something in the line of:

      Private Sub DoStuff(ByVal a As Integer)
      ' Do stuff with a.

      Dim b As Integer = a
      ' Do exactly the same stuff with b.
      End Sub

      And even better:

      Private Sub DoMoreStuff(ByVal a As Integer)
      ' Do some more stuff.
      a = a ' ?????
      End Sub

      This guy really had not understood anything from 4 years of college! And he actually was quite bitter when he got fired. He thought he was the best and could not get fired :laugh:

      It's an OO world.

      F 1 Reply Last reply
      0
      • G Ger Hayden

        I found this revisiting a cell validation module - simplified for readability

        A=B
        B=A

        :doh: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Now just what was I on that morning..

        Ger

        B Offline
        B Offline
        BillW33
        wrote on last edited by
        #3

        I've written some code like that too, usually after coding for 30+ hours ;) :-D

        Just because the code works, it doesn't mean that it is good code.

        G 1 Reply Last reply
        0
        • B BillW33

          I've written some code like that too, usually after coding for 30+ hours ;) :-D

          Just because the code works, it doesn't mean that it is good code.

          G Offline
          G Offline
          gavindon
          wrote on last edited by
          #4

          My issue is worse, I'm still new to this and by no means am an expert, but I look at code I wrote as little as 6 months ago and think WTF was I thinking. Can't wait to see my opinion of myself in a couple years looking back at now.

          Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning.

          J F 2 Replies Last reply
          0
          • G gavindon

            My issue is worse, I'm still new to this and by no means am an expert, but I look at code I wrote as little as 6 months ago and think WTF was I thinking. Can't wait to see my opinion of myself in a couple years looking back at now.

            Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning.

            J Offline
            J Offline
            jsc42
            wrote on last edited by
            #5
            1 Reply Last reply
            0
            • G Ger Hayden

              I found this revisiting a cell validation module - simplified for readability

              A=B
              B=A

              :doh: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Now just what was I on that morning..

              Ger

              A Offline
              A Offline
              Albert Holguin
              wrote on last edited by
              #6

              happens... i often ask myself "wth was i thinking!?" :)

              1 Reply Last reply
              0
              • G gavindon

                My issue is worse, I'm still new to this and by no means am an expert, but I look at code I wrote as little as 6 months ago and think WTF was I thinking. Can't wait to see my opinion of myself in a couple years looking back at now.

                Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning.

                F Offline
                F Offline
                Falterfire
                wrote on last edited by
                #7

                Don't worry, you're not the only one. Besides, that's a good thing: It means you're learning. It also means trying to build any project that takes more than a couple weeks to build ends up taking an eternity as you continuously go back to make older stuff better, always learning just enough more to need to go back and improve the old stuff continuously.

                1 Reply Last reply
                0
                • Sander RosselS Sander Rossel

                  A guy that used to work at my company used to do that all the time. He got some function of the internet and did something in the line of:

                  Private Sub DoStuff(ByVal a As Integer)
                  ' Do stuff with a.

                  Dim b As Integer = a
                  ' Do exactly the same stuff with b.
                  End Sub

                  And even better:

                  Private Sub DoMoreStuff(ByVal a As Integer)
                  ' Do some more stuff.
                  a = a ' ?????
                  End Sub

                  This guy really had not understood anything from 4 years of college! And he actually was quite bitter when he got fired. He thought he was the best and could not get fired :laugh:

                  It's an OO world.

                  F Offline
                  F Offline
                  Falterfire
                  wrote on last edited by
                  #8

                  This, ladies and gentlemen, is the Dunning-Kruger effect in action.

                  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