Click here to Skip to main content
15,887,344 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: Constructor reading Session Variables Pin
Kunal Chowdhury «IN»11-Sep-10 22:03
professionalKunal Chowdhury «IN»11-Sep-10 22:03 
GeneralRe: Constructor reading Session Variables Pin
PIEBALDconsult8-Sep-10 4:05
mvePIEBALDconsult8-Sep-10 4:05 
GeneralRe: Constructor reading Session Variables Pin
Ian Shlasko8-Sep-10 4:51
Ian Shlasko8-Sep-10 4:51 
GeneralRe: Constructor reading Session Variables Pin
Richard A. Dalton8-Sep-10 5:23
Richard A. Dalton8-Sep-10 5:23 
GeneralRe: Constructor reading Session Variables Pin
CDP18029-Sep-10 0:55
CDP18029-Sep-10 0:55 
GeneralRe: Constructor reading Session Variables Pin
Andrew Rissing9-Sep-10 4:21
Andrew Rissing9-Sep-10 4:21 
GeneralRe: Constructor reading Session Variables Pin
Kunal Chowdhury «IN»11-Sep-10 22:02
professionalKunal Chowdhury «IN»11-Sep-10 22:02 
GeneralWhere is the exit? PinPopular
red_moon6-Sep-10 2:46
red_moon6-Sep-10 2:46 
I just take a look into my friend's code, then I found something confusing to me Confused | :confused:

I have made some modifications here :

VB
Private Function xxx(ByVal name As String) As Boolean
    Dim xxxResult As Boolean = False
    If name = "A" Then
        ' Lots of code here
        Return xxxResult
    Else
        ' Lots of code here
        Return xxxResult
    End If
    ' Lots of code again
    Return xxxResult
    Exit Function
End Function


Finally, when I want to go back to my home, I still confused, the world is spinning in my head, there are so much doors. Poke tongue | ;-P
25160506848319

GeneralRe: Where is the exit? Pin
DaveAuld6-Sep-10 3:16
professionalDaveAuld6-Sep-10 3:16 
GeneralRe: Where is the exit? Pin
red_moon6-Sep-10 6:42
red_moon6-Sep-10 6:42 
AnswerRe: Where is the exit? Pin
Kunal Chowdhury «IN»6-Sep-10 18:46
professionalKunal Chowdhury «IN»6-Sep-10 18:46 
GeneralRe: Where is the exit? Pin
DaveAuld7-Sep-10 23:47
professionalDaveAuld7-Sep-10 23:47 
GeneralRe: Where is the exit? Pin
Kunal Chowdhury «IN»7-Sep-10 23:50
professionalKunal Chowdhury «IN»7-Sep-10 23:50 
GeneralRe: Where is the exit? Pin
phil.o7-Sep-10 0:20
professionalphil.o7-Sep-10 0:20 
GeneralRe: Where is the exit? PinPopular
PIEBALDconsult6-Sep-10 5:23
mvePIEBALDconsult6-Sep-10 5:23 
GeneralRe: Where is the exit? Pin
OriginalGriff6-Sep-10 8:14
mveOriginalGriff6-Sep-10 8:14 
AnswerRe: Where is the exit? Pin
Luc Pattyn6-Sep-10 8:25
sitebuilderLuc Pattyn6-Sep-10 8:25 
GeneralRe: Where is the exit? Pin
OriginalGriff6-Sep-10 8:35
mveOriginalGriff6-Sep-10 8:35 
GeneralRe: Where is the exit? Pin
RugbyLeague7-Sep-10 3:57
RugbyLeague7-Sep-10 3:57 
JokeRe: Where is the exit? Pin
AspDotNetDev7-Sep-10 12:42
protectorAspDotNetDev7-Sep-10 12:42 
General65K Lines of Code Pin
ch3ckmat32-Sep-10 1:33
ch3ckmat32-Sep-10 1:33 
GeneralRe: 65K Lines of Code PinPopular
AspDotNetDev2-Sep-10 5:09
protectorAspDotNetDev2-Sep-10 5:09 
GeneralRe: 65K Lines of Code Pin
ch3ckmat32-Sep-10 5:10
ch3ckmat32-Sep-10 5:10 
GeneralRe: 65K Lines of Code Pin
ChandanPatra2-Sep-10 18:26
ChandanPatra2-Sep-10 18:26 
GeneralRe: 65K Lines of Code Pin
ch3ckmat34-Sep-10 7:34
ch3ckmat34-Sep-10 7:34 

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.