Click here to Skip to main content
15,891,607 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: N-Tier architecture Pin
StM0n12-Mar-12 19:09
StM0n12-Mar-12 19:09 
GeneralRe: N-Tier architecture Pin
CDP180212-Mar-12 21:58
CDP180212-Mar-12 21:58 
GeneralRe: N-Tier architecture Pin
krumia17-Mar-12 20:44
krumia17-Mar-12 20:44 
GeneralRe: N-Tier architecture Pin
CDP180218-Mar-12 0:40
CDP180218-Mar-12 0:40 
GeneralRe: N-Tier architecture Pin
Stefan_Lang14-Mar-12 2:58
Stefan_Lang14-Mar-12 2:58 
GeneralRe: N-Tier architecture Pin
Nitin20TechBLR15-Mar-12 18:26
Nitin20TechBLR15-Mar-12 18:26 
GeneralMicrosoft "help" PinPopular
Alan Balkany7-Mar-12 8:28
Alan Balkany7-Mar-12 8:28 
GeneralRe: Microsoft "help" PinPopular
Stefan_Lang8-Mar-12 3:41
Stefan_Lang8-Mar-12 3:41 
I remember a time some 15 years back when I was asked to implement some OLE2 features in our application (i. e. some views on Excel tables, both for entering and reading data). I looked up official documentation of OLE, but pretty much the only information it turned up was a pointer to the documentation of the Excel Automation Interface. This documentation looked something like this:
VB
SetViewRectangle(Variant, Variant, Variant, Variant)

And that was it. No explanation of the function, or even argument names to indicate which is which! While the purpose was halfway clear from the function's name, I had no idea about the type and unit of the parameters, or whether it was top left x/y, bottom right x/y, or bottom left, top right, or maybe bottom right plus width and height? And that was the easy part, at least there was only a small number of possible ways.

The problem was that the documentation was like that for Every. Single. Function.

Fortunately that wasn't the only available documentation: there were in fact some quite useful books out there, just none by MS. But even those books didn't help when I migrated the application from Win NT to Win95, and found the effect of that function to be totally changed! I had to trial-and-error all over again to find the correct use of the function Dead | X|
GeneralRe: Microsoft "help" Pin
cruest13-Mar-12 3:23
cruest13-Mar-12 3:23 
GeneralRe: Microsoft "help" Pin
SASS_Shooter1-May-12 6:14
SASS_Shooter1-May-12 6:14 
GeneralRe: Microsoft "help" Pin
Nelek10-Mar-12 15:18
protectorNelek10-Mar-12 15:18 
GeneralRe: Microsoft "help" Pin
Gary Wheeler13-Mar-12 0:35
Gary Wheeler13-Mar-12 0:35 
GeneralRe: Microsoft "help" Pin
BrainiacV13-Mar-12 4:26
BrainiacV13-Mar-12 4:26 
GeneralRe: Microsoft "help" Pin
Fabio Franco13-Mar-12 6:42
professionalFabio Franco13-Mar-12 6:42 
GeneralRe: Microsoft "help" Pin
Nunnenkamp13-Mar-12 8:56
Nunnenkamp13-Mar-12 8:56 
GeneralRe: Microsoft "help" Pin
KP Lee13-Mar-12 12:01
KP Lee13-Mar-12 12:01 
GeneralRe: Microsoft "help" Pin
Jwalant Natvarlal Soneji13-Mar-12 18:03
Jwalant Natvarlal Soneji13-Mar-12 18:03 
GeneralRe: Microsoft "help" PinPopular
Reelix14-Mar-12 1:14
Reelix14-Mar-12 1:14 
GeneralRe: Microsoft "help" Pin
Lutosław15-Mar-12 11:49
Lutosław15-Mar-12 11:49 
GeneralUnsafe locking Pin
Member 20530061-Mar-12 5:02
Member 20530061-Mar-12 5:02 
GeneralRe: Unsafe locking Pin
PIEBALDconsult1-Mar-12 6:00
mvePIEBALDconsult1-Mar-12 6:00 
GeneralRe: Unsafe locking Pin
Robert Rohde1-Mar-12 9:36
Robert Rohde1-Mar-12 9:36 
GeneralRe: Unsafe locking Pin
CDP18026-Mar-12 20:48
CDP18026-Mar-12 20:48 
GeneralRe: Unsafe locking PinPopular
CDP18026-Mar-12 21:08
CDP18026-Mar-12 21:08 
GeneralMy vote of 5 Pin
Julien Villers7-Mar-12 0:05
professionalJulien Villers7-Mar-12 0:05 

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.