Click here to Skip to main content
15,887,746 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.

 
GeneralWhat the elephant did I just step in? Pin
Dave Kreskowiak23-Oct-17 4:45
mveDave Kreskowiak23-Oct-17 4:45 
GeneralRe: What the elephant did I just step in? Pin
madwilliamflint23-Oct-17 4:48
madwilliamflint23-Oct-17 4:48 
GeneralRe: What the elephant did I just step in? Pin
Dave Kreskowiak23-Oct-17 5:34
mveDave Kreskowiak23-Oct-17 5:34 
GeneralRe: What the elephant did I just step in? Pin
raddevus23-Oct-17 5:21
mvaraddevus23-Oct-17 5:21 
GeneralRe: What the elephant did I just step in? Pin
Dave Kreskowiak23-Oct-17 5:36
mveDave Kreskowiak23-Oct-17 5:36 
GeneralRe: What the elephant did I just step in? Pin
Rob Grainger10-Dec-17 12:43
Rob Grainger10-Dec-17 12:43 
GeneralRe: What the elephant did I just step in? Pin
MarkTJohnson23-Oct-17 6:49
professionalMarkTJohnson23-Oct-17 6:49 
GeneralRe: What the elephant did I just step in? Pin
Bernhard Hiller23-Oct-17 22:49
Bernhard Hiller23-Oct-17 22:49 
MarkTJohnson wrote:
goto
You mean something like:
VB
If condition-expression Then
    ' Do nothing
ElseIf condition-expression Then
    If condition-expression Then
        ' Empty block
    Else
        ' Holy elephant, do something here!
        ...
        Goto Step123
    EndIf
ElseIf condition-expression Then
    ' Holy elephant, do something here!
    ...
    :Step123
    ...
    Goto Step234
ElseIf condition-expression Then
    ' Yeah, another empty block here too!
Else
    ' Oh! And this block is empty too.
End If
...
:Step234
...
Goto Step123
Oh yeah, that's much more interesting!
Oh sanctissimi Wilhelmus, Theodorus, et Fredericus!

GeneralRe: What the elephant did I just step in? Pin
Sander Rossel24-Oct-17 0:04
professionalSander Rossel24-Oct-17 0:04 
GeneralRe: What the elephant did I just step in? Pin
Nagy Vilmos24-Oct-17 1:03
professionalNagy Vilmos24-Oct-17 1:03 
GeneralRe: What the elephant did I just step in? Pin
AlphaDeltaTheta31-Oct-17 8:06
AlphaDeltaTheta31-Oct-17 8:06 
GeneralRe: What the elephant did I just step in? Pin
Rob Grainger5-Nov-17 22:36
Rob Grainger5-Nov-17 22:36 
QuestionEnglish question Pin
megaadam12-Oct-17 3:26
professionalmegaadam12-Oct-17 3:26 
AnswerRe: English question Pin
den2k8812-Oct-17 3:31
professionalden2k8812-Oct-17 3:31 
AnswerRe: English question Pin
megaadam12-Oct-17 3:42
professionalmegaadam12-Oct-17 3:42 
JokeRe: English question Pin
den2k8812-Oct-17 3:46
professionalden2k8812-Oct-17 3:46 
GeneralRe: English question Pin
peterkmx12-Oct-17 6:35
professionalpeterkmx12-Oct-17 6:35 
AnswerRe: English question Pin
PeejayAdams12-Oct-17 3:37
PeejayAdams12-Oct-17 3:37 
GeneralRe: English question Pin
megaadam12-Oct-17 3:41
professionalmegaadam12-Oct-17 3:41 
GeneralRe: English question Pin
Sascha Lefèvre12-Oct-17 3:45
professionalSascha Lefèvre12-Oct-17 3:45 
GeneralRe: English question Pin
megaadam12-Oct-17 3:50
professionalmegaadam12-Oct-17 3:50 
GeneralRe: English question Pin
PeejayAdams12-Oct-17 4:21
PeejayAdams12-Oct-17 4:21 
GeneralRe: English question Pin
Jörgen Andersson23-Oct-17 9:41
professionalJörgen Andersson23-Oct-17 9:41 
AnswerRe: English question Pin
Sascha Lefèvre12-Oct-17 3:40
professionalSascha Lefèvre12-Oct-17 3:40 
GeneralRe: English question Pin
PIEBALDconsult12-Oct-17 15:02
mvePIEBALDconsult12-Oct-17 15:02 

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.