Found error 101 in my own code yesterday
-
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
-
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 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 SubAnd even better:
Private Sub DoMoreStuff(ByVal a As Integer)
' Do some more stuff.
a = a ' ?????
End SubThis 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.
-
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
-
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.
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.
-
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.
-
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
happens... i often ask myself "wth was i thinking!?" :)
-
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.
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.
-
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 SubAnd even better:
Private Sub DoMoreStuff(ByVal a As Integer)
' Do some more stuff.
a = a ' ?????
End SubThis 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.
This, ladies and gentlemen, is the Dunning-Kruger effect in action.