Click here to Skip to main content
11,477,625 members (72,787 online)

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, embarrasing 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: Enabling backwards compatibility Pin
englebart1-Feb-12 3:42
memberenglebart1-Feb-12 3:42 
JokeRe: Enabling backwards compatibility Pin
Moshe Katz1-Feb-12 12:00
memberMoshe Katz1-Feb-12 12:00 
GeneralRe: Enabling backwards compatibility Pin
jsc4230-Jan-12 4:43
memberjsc4230-Jan-12 4:43 
GeneralRe: Enabling backwards compatibility Pin
Chanoch Wiggers30-Jan-12 5:06
memberChanoch Wiggers30-Jan-12 5:06 
GeneralRe: Enabling backwards compatibility Pin
Firo Atrum Ventus30-Jan-12 12:15
memberFiro Atrum Ventus30-Jan-12 12:15 
GeneralRe: Enabling backwards compatibility Pin
PIEBALDconsult31-Jan-12 3:24
memberPIEBALDconsult31-Jan-12 3:24 
GeneralRe: Enabling backwards compatibility Pin
tecgoblin1-Feb-12 1:27
membertecgoblin1-Feb-12 1:27 
GeneralRe: Enabling backwards compatibility Pin
GamleKoder1-Feb-12 8:56
memberGamleKoder1-Feb-12 8:56 
GeneralRe: Enabling backwards compatibility Pin
tecgoblin1-Feb-12 9:10
membertecgoblin1-Feb-12 9:10 
GeneralRe: Enabling backwards compatibility Pin
Stefan_Lang1-Feb-12 2:42
memberStefan_Lang1-Feb-12 2:42 
GeneralRe: Enabling backwards compatibility Pin
Garry Lowther1-Feb-12 2:42
memberGarry Lowther1-Feb-12 2:42 
GeneralRe: Enabling backwards compatibility Pin
charlieg1-Feb-12 6:52
membercharlieg1-Feb-12 6:52 
GeneralRe: Enabling backwards compatibility Pin
Jeremy David Thomson1-Feb-12 11:37
memberJeremy David Thomson1-Feb-12 11:37 
GeneralStrictly Short Circuit Pin
AspDotNetDev26-Jan-12 16:02
protectorAspDotNetDev26-Jan-12 16:02 
Names changed to protect the innocent...

I'm working with some VB.net projects and I decided to turn on Option Strict. It threw an error for this line:
If someProp Is Nothing OrElse String.IsNullOrEmpty(someProp.Value OrElse someProp.Value = "0") Then
This is what was intended:
If someProp Is Nothing OrElse String.IsNullOrEmpty(someProp.Value) OrElse someProp.Value = "0" Then
Big Grin | :-D for option explicit! Cry | :(( for the fact that I have several projects to go and I'm working in the order of best code to worst code.

GeneralRe: Strictly Short Circuit Pin
ryanb3127-Jan-12 6:25
memberryanb3127-Jan-12 6:25 
GeneralRe: Strictly Short Circuit Pin
cpkilekofp27-Jan-12 7:40
membercpkilekofp27-Jan-12 7:40 
GeneralRe: Strictly Short Circuit Pin
AspDotNetDev27-Jan-12 8:03
protectorAspDotNetDev27-Jan-12 8:03 
GeneralRe: Strictly Short Circuit Pin
ryanb3127-Jan-12 9:15
memberryanb3127-Jan-12 9:15 
GeneralRe: Strictly Short Circuit Pin
AspDotNetDev27-Jan-12 9:33
protectorAspDotNetDev27-Jan-12 9:33 
GeneralRe: Strictly Short Circuit Pin
ryanb3127-Jan-12 9:47
memberryanb3127-Jan-12 9:47 
GeneralRe: Strictly Short Circuit Pin
AspDotNetDev27-Jan-12 9:59
protectorAspDotNetDev27-Jan-12 9:59 
GeneralRe: Strictly Short Circuit Pin
ryanb3127-Jan-12 10:06
memberryanb3127-Jan-12 10:06 
GeneralRe: Strictly Short Circuit Pin
dawmail33330-Jan-12 1:41
memberdawmail33330-Jan-12 1:41 
GeneralRe: Strictly Short Circuit Pin
AspDotNetDev30-Jan-12 5:37
protectorAspDotNetDev30-Jan-12 5:37 
GeneralRe: Strictly Short Circuit Pin
LetMeFinclOut30-Jan-12 13:36
memberLetMeFinclOut30-Jan-12 13:36 
GeneralRe: Strictly Short Circuit Pin
cpkilekofp27-Jan-12 10:09
membercpkilekofp27-Jan-12 10:09 
GeneralRe: Strictly Short Circuit Pin
Jan Steyn30-Jan-12 0:16
memberJan Steyn30-Jan-12 0:16 
GeneralRe: Strictly Short Circuit Pin
K Quinn30-Jan-12 2:51
memberK Quinn30-Jan-12 2:51 
GeneralRe: Strictly Short Circuit Pin
agolddog30-Jan-12 4:54
memberagolddog30-Jan-12 4:54 
GeneralRe: Strictly Short Circuit Pin
Patrick Fox30-Jan-12 7:07
memberPatrick Fox30-Jan-12 7:07 
GeneralRe: Strictly Short Circuit Pin
ekolis30-Jan-12 11:28
memberekolis30-Jan-12 11:28 
GeneralRe: Strictly Short Circuit Pin
LetMeFinclOut30-Jan-12 13:34
memberLetMeFinclOut30-Jan-12 13:34 
GeneralRe: Strictly Short Circuit Pin
ekolis30-Jan-12 14:06
memberekolis30-Jan-12 14:06 
GeneralRe: Strictly Short Circuit Pin
YvesDaoust28-Jan-12 0:05
memberYvesDaoust28-Jan-12 0:05 
GeneralRe: Strictly Short Circuit Pin
PIEBALDconsult29-Jan-12 5:18
memberPIEBALDconsult29-Jan-12 5:18 
GeneralRe: Strictly Short Circuit Pin
YvesDaoust29-Jan-12 10:12
memberYvesDaoust29-Jan-12 10:12 
GeneralRe: Strictly Short Circuit Pin
Fabio Franco30-Jan-12 3:00
memberFabio Franco30-Jan-12 3:00 
GeneralRe: Strictly Short Circuit Pin
ekolis30-Jan-12 11:30
memberekolis30-Jan-12 11:30 
GeneralRe: Strictly Short Circuit Pin
Naerling28-Jan-12 7:39
memberNaerling28-Jan-12 7:39 
GeneralRe: Strictly Short Circuit Pin
Jörgen Andersson29-Jan-12 22:07
memberJörgen Andersson29-Jan-12 22:07 
GeneralRe: Strictly Short Circuit Pin
Nagy Vilmos30-Jan-12 0:46
memberNagy Vilmos30-Jan-12 0:46 
GeneralRe: Strictly Short Circuit Pin
Jörgen Andersson30-Jan-12 1:06
memberJörgen Andersson30-Jan-12 1:06 
GeneralRe: Strictly Short Circuit Pin
Nagy Vilmos30-Jan-12 1:46
memberNagy Vilmos30-Jan-12 1:46 
GeneralRe: Strictly Short Circuit Pin
Naerling30-Jan-12 8:54
memberNaerling30-Jan-12 8:54 
JokeRe: Strictly Short Circuit Pin
LetMeFinclOut10-Feb-12 12:37
memberLetMeFinclOut10-Feb-12 12:37 
GeneralRe: Strictly Short Circuit Pin
Shameel30-Jan-12 2:09
memberShameel30-Jan-12 2:09 
GeneralRe: Strictly Short Circuit Pin
Marbry Hardin30-Jan-12 4:48
memberMarbry Hardin30-Jan-12 4:48 
GeneralRe: Strictly Short Circuit Pin
Patrick Fox30-Jan-12 7:05
memberPatrick Fox30-Jan-12 7:05 
GeneralRe: Strictly Short Circuit Pin
sergio_ykz30-Jan-12 8:28
membersergio_ykz30-Jan-12 8:28 
GeneralRe: Strictly Short Circuit Pin
johny1015198131-Jan-12 20:32
memberjohny1015198131-Jan-12 20:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.150520.1 | Last Updated 22 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid