This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Stupid Programmer Tricks


HUHUH

Postby fzammetti » Jul 7, 2002 @ 8:01pm

C4010... THAT'S a riot!

As someone who actually has written a compiler (years ago in Compiler Construction class), it IS a lot of fun. Modern compilers amaze the hell out of me though, I wouldn't know where to start any more.
...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby britcode » Jul 7, 2002 @ 10:01pm

>warning C3910: Why are you compiling software at 3 AM?


#pragma warning (disable:3910)

;)
britcode
 


Postby brendan » Jul 8, 2002 @ 5:04am

User avatar
brendan
pm Insider
 
Posts: 451
Joined: Oct 23, 2001 @ 2:51am
Location: Hobart, Australia


another classic

Postby deadsoul » Jul 12, 2002 @ 8:35am

deadsoul
pm Member
 
Posts: 15
Joined: Apr 25, 2002 @ 2:41am


Postby refractor » Jul 12, 2002 @ 10:10am

Somebody who worked for the place I work now had an obsession with timer events. The entire GUI handling was based around a timer on each window that would fire every second. It was complete, utter, total madness.

The lamest programmer I've ever seen/suffered just couldn't code *anything* properly, and he was the "most qualified" person that was interviewed. If we find bugs now, we try and locate the problem by searching for comments in French (we all write in English - he wrote in French)... rather sadly it's actually pretty good way of finding bugs. He's gone now too, thankfully.

Another amusing one was an "Access" "programmer", who regularly had the Access manual open on the "IF" page - it took her ages to work that one out.

Ho hum.

Cheers,

Reefractor
User avatar
refractor
pm Insider
 
Posts: 2304
Joined: Feb 5, 2002 @ 1:12pm
Location: Luxembourg


Postby skybuck » Jul 13, 2002 @ 1:53am

skybuck
pm Member
 
Posts: 34
Joined: May 9, 2002 @ 8:06pm


Postby Arisme » Jul 14, 2002 @ 11:20am

Arisme
pm Insider
 
Posts: 1453
Joined: Jan 27, 2002 @ 1:07am
Location: France


Postby superman » Jul 23, 2002 @ 8:15am

"Kittens give Morbo gas." - Morbo the News Monster
User avatar
superman
pm Member
 
Posts: 99
Joined: Nov 3, 2001 @ 1:09am


Postby angedelamort » Jul 23, 2002 @ 2:23pm

User avatar
angedelamort
pm Member
 
Posts: 304
Joined: Mar 7, 2002 @ 11:16pm
Location: Montreal, Quebec


Stupid mistakes

Postby Pacomac » Aug 2, 2002 @ 8:57pm

A work colleague asked me to knock up a quick DOS utility to recursively delete a sub directory.... (you know whats coming don't you!!)... I forgot to tell it to stop when it recursed back to the original directory and I managed to wipe his whole hard drive in just a little over 20 seconds. That's quite an impressive speed don't you think. This was a few years ago mind when hard disks weren't that big. 8O
Pacomac
 


Umm......

Postby fzammetti » Aug 2, 2002 @ 9:00pm

A work colleague asked me to knock up a quick DOS utility to recursively delete a sub...

DING!!!

Wow, it's Deja Vu all over again!
...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby Quirk » Aug 3, 2002 @ 2:13pm

Quirk
 


Postby skybuck » Aug 4, 2002 @ 6:01am

skybuck
pm Member
 
Posts: 34
Joined: May 9, 2002 @ 8:06pm


Postby britcode » Aug 4, 2002 @ 10:47pm

>A work colleague asked me to knock up a quick DOS utility to recursively delete a sub directory.... (you know whats coming don't you!!)... I forgot to tell it to stop when it recursed back to the original directory and I managed to wipe his whole hard drive in just a little over 20 seconds. That's quite an impressive speed don't you think. This was a few years ago mind when hard disks weren't that big.


Heh, if we are talking about cock-ups, I have a great one: on my second day at my first programming job when I was about 16 or 17 I was asked to write a program to test the disk compression software (back in Windows 3.1 and DOS days, Windows 95 was just coming out) by writing out a string to disk thousands of times. They suggested I use my name as the string.

Anyway I set the program running on a large file size and then realised I'd put far too many zeros in the size (so I'd done about 100000 instead of 1000). I got a calculator and worked out how long it was going to take, and it was going to take a few hours, so went "damn" and decided to quit the program. Escept of course this was before PCs had multi-tasking. So I hit Control-C, Control-Break and even Ctrl-Alt-Delete. No luck. Then I hit the reset switch, and when the computer booted up it found itself completely dead. Oh dear. This is my second day on the job remember...

Several hours, and a few Norton Utilities later (of course I didn't know what Norton Utils was back then, but I do now), one of the other programmers was looking over the partition table and found that (wait for it) I had managed to write my name all over the partition table (and presumably the rest of the disk as well).

I had a slightly red face.

Weird thing is, I still seven years later have no idea how it could have happened... as far as I'm aware when using standard Microsoft C C-Library functions most FAT systems do not start writing on the partition table after they fill up! (At least I hope not otherwise I'm installing Linux!)
Maybe it was dodgy disk compression software!
britcode
 


Postby refractor » Aug 5, 2002 @ 10:13am

User avatar
refractor
pm Insider
 
Posts: 2304
Joined: Feb 5, 2002 @ 1:12pm
Location: Luxembourg


PreviousNext

Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum