Click here to Skip to main content
15,916,951 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: Anyone have a clue what this code does? Pin
Tom Delany26-Dec-07 17:57
Tom Delany26-Dec-07 17:57 
GeneralRotation [modified] Pin
CPallini21-Nov-07 23:58
mveCPallini21-Nov-07 23:58 
GeneralRe: Rotation Pin
jhwurmbach22-Nov-07 5:27
jhwurmbach22-Nov-07 5:27 
GeneralRe: Rotation Pin
CPallini22-Nov-07 6:31
mveCPallini22-Nov-07 6:31 
GeneralRe: Rotation Pin
Luc Pattyn22-Nov-07 6:43
sitebuilderLuc Pattyn22-Nov-07 6:43 
GeneralRe: Rotation Pin
jhwurmbach22-Nov-07 21:35
jhwurmbach22-Nov-07 21:35 
JokeRe: Rotation Pin
codemunkeh29-Nov-07 12:13
codemunkeh29-Nov-07 12:13 
GeneralMy sides - they split! Pin
martin_hughes21-Nov-07 5:45
martin_hughes21-Nov-07 5:45 
Just got off the blower to a colleague who is having a very bad day Smile | :)

He got a call from a customer whose database seems to have disappeared; now my colleague isn't a technical guy, but I talked him through SQL Server Management Studio. Suprisingly, my collegaue confirmed that the database was present, as was it's entire structure - only all the tables were empty of data.

I asked him the background to the call - as this isn't a system I know much about or deal with. Apparently this database back ends a VB6 application, and one of the features of this 'application' is that it allows users to import data from 'sattelite' Access databases. Like a lead balloon the penny dropped and I remembered why i stopped having anything to do with the system 2 - 2 1/2 years ago.

I asked, "have you got a copy of the last Access database imported"? "Yeah sure," he said as I could feel the laughter rising. I opened Access, and sure enough the imported database was also completely empty Wink | ;) I advised to restore last night's backup, while I had a word with our VB *guru*. The conversation went a bit like this:

Me: Remember 2 1/2 years ago I told you your import routine was cretinous? That blindly dropping tables and then recreating them from an unknown, untrusted source is possibly the worst bit of design I have ever encountered? That you are a complete Charlie?

Him: <thinks> Oh, yeah!

Me: Well why didn't you fix it!!!!!!

Him: Err... well... you see... I still thought it was the best way of doing it!

BWHAHAHHAHAHHAHABBAHAHHAHAHHAHAHAHHAHAHAHHAHA!! HAHAHHAHAHAHHAHAHAHHA BWHWHWHWHWWHHWWHAHAHAHAHAHAHAHAHAHA HAHAHAHA!

VB6 Chumps - they should all have their computers taken away from them and be given Etch-a-Sketchs instead!


"On one of my cards it said I had to find temperatures lower than -8. The numbers I uncovered were -6 and -7 so I thought I had won, and so did the woman in the shop. But when she scanned the card the machine said I hadn't.

"I phoned Camelot and they fobbed me off with some story that -6 is higher - not lower - than -8 but I'm not having it."
-Tina Farrell, a 23 year old thicky from Levenshulme, Manchester.

GeneralRe: My sides - they split! Pin
Dan Neely21-Nov-07 7:11
Dan Neely21-Nov-07 7:11 
GeneralRe: My sides - they split! Pin
Pete O'Hanlon21-Nov-07 9:32
mvePete O'Hanlon21-Nov-07 9:32 
JokeRe: My sides - they split! Pin
Brady Kelly21-Nov-07 21:48
Brady Kelly21-Nov-07 21:48 
GeneralRe: My sides - they split! Pin
Curtis J23-Nov-07 10:25
Curtis J23-Nov-07 10:25 
QuestionRe: My sides - they split! Pin
David Crow26-Nov-07 10:32
David Crow26-Nov-07 10:32 
AnswerRe: My sides - they split! Pin
martin_hughes26-Nov-07 10:50
martin_hughes26-Nov-07 10:50 
GeneralRe: My sides - they split! Pin
Johann Gerell28-Nov-07 20:43
Johann Gerell28-Nov-07 20:43 
GeneralRe: My sides - they split! Pin
Jim Crafton29-Nov-07 9:44
Jim Crafton29-Nov-07 9:44 
GeneralDo it only once please Pin
- Pascal -16-Nov-07 9:40
- Pascal -16-Nov-07 9:40 
GeneralRe: Do it only once please Pin
Chris Meech16-Nov-07 10:25
Chris Meech16-Nov-07 10:25 
GeneralRe: Do it only once please Pin
- Pascal -16-Nov-07 10:38
- Pascal -16-Nov-07 10:38 
GeneralRe: Do it only once please Pin
Oshtri Deka16-Nov-07 11:30
professionalOshtri Deka16-Nov-07 11:30 
GeneralRe: Do it only once please Pin
Tony Wesley16-Nov-07 11:31
Tony Wesley16-Nov-07 11:31 
GeneralRe: Do it only once please Pin
Robert Surtees16-Nov-07 12:24
Robert Surtees16-Nov-07 12:24 
GeneralRe: Do it only once please Pin
Tony Wesley16-Nov-07 12:29
Tony Wesley16-Nov-07 12:29 
GeneralRe: Do it only once please Pin
chmod222218-Nov-07 22:31
chmod222218-Nov-07 22:31 
GeneralRe: Do it only once please Pin
CPallini18-Nov-07 22:50
mveCPallini18-Nov-07 22:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.