|
I found found only one place - when using the unmanged function "SHAppBarMessage", with ABM_SETPOS.
|
|
|
|
|
JNochowitz wrote: ...found this today, almost died.
read this today, and almost wet myself!
I may or may not be responsible for my own actions
|
|
|
|
|
By the way, how does the author know that long running process takes exactly 3 minutes? And where is parallelism? It can spare you 3 minutes!
|
|
|
|
|
Sadly I have seen a lot of legacy code where loops and Application.DoEvents()is the standard way to handle long processing times.
Just because the code works, it doesn't mean that it is good code.
|
|
|
|
|
One of my friend complained about a wierd problem while designing the website in visual studio.
All the controls, (labels here) are drawn on the page. But then, the text was not appearing.
Checked the visible property, this, that and everything.
Finally, We could trace out the problem to an unassuming CSS file somewhere in the whole project structure (among 5 other CSS files) which had the following lines (among 100 other lines)
.body{
foreground:#FFFFFF
}
Lucky, I knew #FFFFFF was white!
-
Bits and Bytes Rules!
10(jk)
|
|
|
|
|
Google Chrome, right-click label, inspect element, computed style, see what looks fishy
-if anything ever looks weird in a webpage, that the first place I look
I may or may not be responsible for my own actions
|
|
|
|
|
|
I found this revisiting a cell validation module - simplified for readability
A=B
B=A
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
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)
Dim b As Integer = a
End Sub
And even better:
Private Sub DoMoreStuff(ByVal a As Integer)
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
It's an OO world.
|
|
|
|
|
|
I've written some code like that too, usually after coding for 30+ hours
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.
|
|
|
|
|
|
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.
|
|
|
|
|
happens... i often ask myself "wth was i thinking!?"
|
|
|
|
|
Came across this wonderful piece of code:
providerName="System.Data.SequelClient"
Took a while to spot!
-
Bits and Bytes Rules!
10(jk)
|
|
|
|
|
Takes me back to my first year of uni. I remember one guy who used to think the IDE was simply a way to talk to the computer, he would literal write text as if he was telling it what to do - and this was after a good few lessons. Needless to say he didn't survive the year
imagine...
what is your age?
write the users age
tell the user next year he will be a year older!
OK, so not quite like that but he would basically write the phrases the lecturer used to describe what to do...
create an int
set the int based on the users input
add 1 to the int
tell the user next year he will be 1 year older
perhaps he thought he was on a transcribing course
I may or may not be responsible for my own actions
|
|
|
|
|
Maybe he was writing pseudocode, and forgot to wrap it in a comment block..?
|
|
|
|
|
|
Is that the sequel where Russell Crow plays the mild-mannered DBA?
"You get that on the big jobs."
|
|
|
|
|
lol, and he didn't even debug to check whether it worked?
"Program testing can be used to show the presence of bugs, but never to show their absence."
<< please vote!! >>
|
|
|
|
|
Probably not much of a horror as it wouldn't compile and therefore can't get into the main code base...
Of course it could if the dev created a custom System.Data.SequelClient class.
Hmmm. Sounds like an easter egg in the making for an auto upgrade engine.
I wasn't, now I am, then I won't be anymore.
|
|
|
|
|
There's someone working on a compiler for that. Just so you could write computer programs in natural English.
Chris Meech
I am Canadian. [heard in a local bar]
In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]
posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]
|
|
|
|
|
Dude... that would never happen.
|
|
|
|
|
I know I'll regret this, but sometimes even I can't help myself. Follow this link[^].
Chris Meech
I am Canadian. [heard in a local bar]
In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]
posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]
|
|
|
|