Click here to Skip to main content
15,914,419 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: Repeat After Me Pin
John R. Shaw28-Apr-07 13:18
John R. Shaw28-Apr-07 13:18 
GeneralMore Than One Way To Skin A Cat Pin
chrishuff26-Apr-07 7:13
chrishuff26-Apr-07 7:13 
GeneralRe: More Than One Way To Skin A Cat Pin
Dave Kreskowiak26-Apr-07 7:16
mveDave Kreskowiak26-Apr-07 7:16 
GeneralRe: More Than One Way To Skin A Cat Pin
Tim Carmichael26-Apr-07 7:45
Tim Carmichael26-Apr-07 7:45 
GeneralRe: More Than One Way To Skin A Cat Pin
chrishuff26-Apr-07 8:55
chrishuff26-Apr-07 8:55 
GeneralRe: More Than One Way To Skin A Cat Pin
John R. Shaw28-Apr-07 13:37
John R. Shaw28-Apr-07 13:37 
GeneralRe: More Than One Way To Skin A Cat Pin
JMOdom30-Apr-07 8:57
JMOdom30-Apr-07 8:57 
GeneralThe Horror! Pin
Shog924-Apr-07 16:55
sitebuilderShog924-Apr-07 16:55 
Trying to track down a bug. Very simple little routine calls a few methods in an old COM DLL - some calculations and look-ups, nothing too special. Problem is, it only works once - if the routine is called twice in a row, it'll fail the second time around. Same inputs, same code to create the COM object, call a few methods, finish up... it just doesn't work twice.

So, i track down the code for this old DLL. VB6, which i haven't bothered to install in years, but i don't want to rebuild it anyway unless there's no way around it. Unzip the code and start browsing through it...

...and it's all forms. Except for a couple hundred lines in a .cls file for wiring up the COM interface, it's all forms. There is absolutely no UI for this damn thing, none, it exists only for some routine calculations and to retrieve a handful of numbers from an Access database... and it's all implemented by chaining 32 different forms together along with some sort of insestual communication between them.

I feel sick.



----
It appears that everybody is under the impression that I approve of the documentation. You probably also blame Ken Burns for supporting slavery.
--Raymond Chen on MSDN

GeneralRe: The Horror! Pin
WhiteSpy25-Apr-07 3:24
WhiteSpy25-Apr-07 3:24 
GeneralRe: The Horror! Pin
Jasmine250125-Apr-07 12:36
Jasmine250125-Apr-07 12:36 
GeneralRe: The Horror! Pin
Brady Kelly25-Apr-07 19:12
Brady Kelly25-Apr-07 19:12 
GeneralRe: The Horror! Pin
chrishuff26-Apr-07 7:04
chrishuff26-Apr-07 7:04 
GeneralRe: The Horror! Pin
Brady Kelly26-Apr-07 8:11
Brady Kelly26-Apr-07 8:11 
GeneralRe: The Horror! Pin
PJ Arends26-Apr-07 10:05
professionalPJ Arends26-Apr-07 10:05 
GeneralRe: The Horror! Pin
Shog927-Apr-07 9:15
sitebuilderShog927-Apr-07 9:15 
GeneralRe: The Horror! Pin
John R. Shaw28-Apr-07 13:50
John R. Shaw28-Apr-07 13:50 
GeneralRe: The Horror! Pin
Rajesh R Subramanian1-May-07 21:39
professionalRajesh R Subramanian1-May-07 21:39 
GeneralRe: The Horror! Pin
John R. Shaw5-May-07 23:54
John R. Shaw5-May-07 23:54 
GeneralJoy! Pin
Brady Kelly24-Apr-07 1:44
Brady Kelly24-Apr-07 1:44 
GeneralRe: Joy! Pin
Pete O'Hanlon24-Apr-07 2:15
mvePete O'Hanlon24-Apr-07 2:15 
GeneralRe: Joy! Pin
PIEBALDconsult24-Apr-07 3:16
mvePIEBALDconsult24-Apr-07 3:16 
GeneralRe: Joy! Pin
Mike Dimmick24-Apr-07 5:22
Mike Dimmick24-Apr-07 5:22 
GeneralRe: Joy! Pin
Brady Kelly24-Apr-07 5:40
Brady Kelly24-Apr-07 5:40 
GeneralRe: Joy! Pin
Jasmine250125-Apr-07 12:42
Jasmine250125-Apr-07 12:42 
GeneralRe: Joy! Pin
Brady Kelly25-Apr-07 19:16
Brady Kelly25-Apr-07 19:16 

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.