Click here to Skip to main content
15,900,258 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: Worst app ever! Pin
Howard Richards26-Aug-08 22:08
Howard Richards26-Aug-08 22:08 
GeneralRe: Worst app ever! Pin
megaadam26-Aug-08 22:43
professionalmegaadam26-Aug-08 22:43 
GeneralRe: Worst app ever! Pin
DerekFL27-Aug-08 3:10
DerekFL27-Aug-08 3:10 
GeneralRe: Worst app ever! Pin
Brent Lamborn27-Aug-08 8:04
Brent Lamborn27-Aug-08 8:04 
GeneralRe: Worst app ever! Pin
BillW3328-Aug-08 4:06
professionalBillW3328-Aug-08 4:06 
GeneralRe: Worst app ever! Pin
Brent Lamborn28-Aug-08 4:23
Brent Lamborn28-Aug-08 4:23 
GeneralRe: Worst app ever! Pin
Paul Conrad28-Aug-08 5:33
professionalPaul Conrad28-Aug-08 5:33 
Generalvariable names - who cares!? Pin
Steven A. Lowe24-Aug-08 15:47
Steven A. Lowe24-Aug-08 15:47 
a friend of mine - many years ago - was asked to port a physics simulation program from one platform to another. The software performed beautifully, was efficient, and had won awards for educational excellence etc.

the source code was several thousand lines of assembly, which was large but not too large for that platform and era.

The program had two comments in it, one word each. They were not helpful.

The variable naming convention was even more interesting. It seems the original author [a physicist/mathematician, in all fairness] treated variable names like a Pez dispenser. The first variable in the program was named "A", the second was named "B", and so on. When he got to Z he started over with A1, then B1, etc.

The program had a lot of variables, I think the last variable was named BB21.

Porting the application was not too difficult, as the two platforms had very similar instruction sets. Debugging it, on the other hand, was an exercise in insanity!

Best regards,
Steven A. Lowe
CEO, Innovator LLC
www.nov8r.com

GeneralRe: variable names - who cares!? Pin
Megidolaon25-Aug-08 0:27
Megidolaon25-Aug-08 0:27 
GeneralRe: variable names - who cares!? Pin
CPallini25-Aug-08 2:36
mveCPallini25-Aug-08 2:36 
GeneralRe: variable names - who cares!? Pin
Chris Maunder25-Aug-08 5:20
cofounderChris Maunder25-Aug-08 5:20 
GeneralRe: variable names - who cares!? Pin
Dan Neely25-Aug-08 7:02
Dan Neely25-Aug-08 7:02 
GeneralRe: variable names - who cares!? Pin
Paul Conrad25-Aug-08 7:58
professionalPaul Conrad25-Aug-08 7:58 
GeneralRe: variable names - who cares!? Pin
Vasudevan Deepak Kumar28-Aug-08 8:19
Vasudevan Deepak Kumar28-Aug-08 8:19 
GeneralRe: variable names - who cares!? Pin
Paul Conrad28-Aug-08 8:22
professionalPaul Conrad28-Aug-08 8:22 
GeneralRe: variable names - who cares!? Pin
Louis Cipher10-Nov-08 16:48
Louis Cipher10-Nov-08 16:48 
GeneralRe: variable names - who cares!? Pin
Rob Graham25-Aug-08 8:07
Rob Graham25-Aug-08 8:07 
GeneralRe: variable names - who cares!? Pin
Steven A. Lowe25-Aug-08 8:14
Steven A. Lowe25-Aug-08 8:14 
GeneralRe: variable names - who cares!? Pin
Paul Conrad25-Aug-08 9:14
professionalPaul Conrad25-Aug-08 9:14 
GeneralRe: variable names - who cares!? Pin
Steven A. Lowe25-Aug-08 9:29
Steven A. Lowe25-Aug-08 9:29 
GeneralRe: variable names - who cares!? Pin
Paul Conrad25-Aug-08 9:30
professionalPaul Conrad25-Aug-08 9:30 
GeneralRe: variable names - who cares!? Pin
CDP180228-Aug-08 4:07
CDP180228-Aug-08 4:07 
GeneralRe: variable names - who cares!? Pin
Paul Conrad28-Aug-08 6:30
professionalPaul Conrad28-Aug-08 6:30 
GeneralRe: variable names - who cares!? Pin
CDP180228-Aug-08 21:34
CDP180228-Aug-08 21:34 
GeneralRe: variable names - who cares!? Pin
PIEBALDconsult25-Aug-08 14:09
mvePIEBALDconsult25-Aug-08 14:09 

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.