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: VB 6 Pin
bwallan1-Sep-10 8:08
bwallan1-Sep-10 8:08 
GeneralRe: VB 6 Pin
JasonPSage1-Sep-10 8:37
JasonPSage1-Sep-10 8:37 
GeneralRe: VB 6 Pin
Max Peck2-Sep-10 4:05
Max Peck2-Sep-10 4:05 
GeneralRe: VB 6 Pin
Matt McGuire1-Sep-10 13:15
professionalMatt McGuire1-Sep-10 13:15 
GeneralRe: VB 6 Pin
Lutosław1-Sep-10 20:25
Lutosław1-Sep-10 20:25 
GeneralRe: VB 6 Pin
cwp423-Sep-10 1:38
cwp423-Sep-10 1:38 
General558 Lines Of QuickBasic Glory PinPopular
AspDotNetDev25-Aug-10 21:29
protectorAspDotNetDev25-Aug-10 21:29 
GeneralRe: 558 Lines Of QuickBasic Glory Pin
Kevin Drzycimski25-Aug-10 22:22
Kevin Drzycimski25-Aug-10 22:22 
reminds me of my first steps in BASIC

i didnt even know of functions, so all code was in one gigantic file with many GOTOs

different targets were marked by global variables:


type = 3
GOTO 2000

...

2000
IF (type = 1) THEN
  GOTO 2001
ELSE IF (type = 2) THEN 
  GOTO 2002
ELSE IF (type = 3) THEN 
  GOTO 2003
ELSE IF (type = 4) THEN 
  GOTO 2004
ELSE
...


this was truly spaghetti code

but i am not ashamed. when i learned functions later they felt so great! and even OO later, oh my god!
GeneralRe: 558 Lines Of QuickBasic Glory Pin
AspDotNetDev26-Aug-10 10:48
protectorAspDotNetDev26-Aug-10 10:48 
GeneralRe: 558 Lines Of QuickBasic Glory Pin
CDP180226-Aug-10 0:50
CDP180226-Aug-10 0:50 
GeneralRe: 558 Lines Of QuickBasic Glory PinPopular
Ian Shlasko26-Aug-10 2:57
Ian Shlasko26-Aug-10 2:57 
GeneralRe: 558 Lines Of QuickBasic Glory Pin
AspDotNetDev26-Aug-10 5:15
protectorAspDotNetDev26-Aug-10 5:15 
GeneralMe! Me! Me! Pin
peterchen27-Aug-10 5:27
peterchen27-Aug-10 5:27 
GeneralRe: Me! Me! Me! Pin
Ian Shlasko27-Aug-10 5:41
Ian Shlasko27-Aug-10 5:41 
GeneralRe: 558 Lines Of QuickBasic Glory Pin
leppie27-Aug-10 11:18
leppie27-Aug-10 11:18 
GeneralRe: 558 Lines Of QuickBasic Glory Pin
LloydA11128-Aug-10 12:44
LloydA11128-Aug-10 12:44 
GeneralRe: 558 Lines Of QuickBasic Glory Pin
dawmail33323-Jun-11 13:41
dawmail33323-Jun-11 13:41 
GeneralRe: 558 Lines Of QuickBasic Glory Pin
beeseearr14-Jul-11 3:46
beeseearr14-Jul-11 3:46 
GeneralRe: 558 Lines Of QuickBasic Glory Pin
Vikram A Punathambekar31-Aug-10 9:36
Vikram A Punathambekar31-Aug-10 9:36 
GeneralRe: 558 Lines Of QuickBasic Glory Pin
josda100026-Aug-10 4:32
josda100026-Aug-10 4:32 
GeneralRe: 558 Lines Of QuickBasic Glory Pin
dawmail33323-Jun-11 13:41
dawmail33323-Jun-11 13:41 
GeneralRe: 558 Lines Of QuickBasic Glory Pin
Dave Calkins26-Aug-10 11:20
Dave Calkins26-Aug-10 11:20 
GeneralRe: 558 Lines Of QuickBasic Glory Pin
CaptainSeeSharp26-Aug-10 11:53
CaptainSeeSharp26-Aug-10 11:53 
GeneralRe: 558 Lines Of QuickBasic Glory Pin
AspDotNetDev26-Aug-10 11:55
protectorAspDotNetDev26-Aug-10 11:55 
GeneralRe: 558 Lines Of QuickBasic Glory Pin
Gordon Kushner27-Aug-10 2:12
Gordon Kushner27-Aug-10 2:12 

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.