Click here to Skip to main content
11,720,545 members (78,898 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
tecgoblin1-Feb-12 0:27
membertecgoblin1-Feb-12 0:27 
GeneralRe: Enabling backwards compatibility Pin
GamleKoder1-Feb-12 7:56
memberGamleKoder1-Feb-12 7:56 
GeneralRe: Enabling backwards compatibility Pin
tecgoblin1-Feb-12 8:10
membertecgoblin1-Feb-12 8:10 
GeneralRe: Enabling backwards compatibility Pin
Stefan_Lang1-Feb-12 1:42
memberStefan_Lang1-Feb-12 1:42 
GeneralRe: Enabling backwards compatibility Pin
Garry Lowther1-Feb-12 1:42
memberGarry Lowther1-Feb-12 1:42 
GeneralRe: Enabling backwards compatibility Pin
charlieg1-Feb-12 5:52
membercharlieg1-Feb-12 5:52 
GeneralRe: Enabling backwards compatibility Pin
Jeremy David Thomson1-Feb-12 10:37
memberJeremy David Thomson1-Feb-12 10:37 
GeneralStrictly Short Circuit Pin
AspDotNetDev26-Jan-12 15:02
protectorAspDotNetDev26-Jan-12 15: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 5:25
memberryanb3127-Jan-12 5:25 
GeneralRe: Strictly Short Circuit Pin
cpkilekofp27-Jan-12 6:40
membercpkilekofp27-Jan-12 6:40 
GeneralRe: Strictly Short Circuit Pin
AspDotNetDev27-Jan-12 7:03
protectorAspDotNetDev27-Jan-12 7:03 
GeneralRe: Strictly Short Circuit Pin
ryanb3127-Jan-12 8:15
memberryanb3127-Jan-12 8:15 
GeneralRe: Strictly Short Circuit Pin
AspDotNetDev27-Jan-12 8:33
protectorAspDotNetDev27-Jan-12 8:33 
GeneralRe: Strictly Short Circuit Pin
ryanb3127-Jan-12 8:47
memberryanb3127-Jan-12 8:47 
GeneralRe: Strictly Short Circuit Pin
AspDotNetDev27-Jan-12 8:59
protectorAspDotNetDev27-Jan-12 8:59 
GeneralRe: Strictly Short Circuit Pin
ryanb3127-Jan-12 9:06
memberryanb3127-Jan-12 9:06 
GeneralRe: Strictly Short Circuit Pin
dawmail33330-Jan-12 0:41
memberdawmail33330-Jan-12 0:41 
GeneralRe: Strictly Short Circuit Pin
AspDotNetDev30-Jan-12 4:37
protectorAspDotNetDev30-Jan-12 4:37 
GeneralRe: Strictly Short Circuit Pin
LetMeFinclOut30-Jan-12 12:36
memberLetMeFinclOut30-Jan-12 12:36 
GeneralRe: Strictly Short Circuit Pin
cpkilekofp27-Jan-12 9:09
membercpkilekofp27-Jan-12 9:09 
GeneralRe: Strictly Short Circuit Pin
Jan Steyn29-Jan-12 23:16
memberJan Steyn29-Jan-12 23:16 
GeneralRe: Strictly Short Circuit Pin
K Quinn30-Jan-12 1:51
memberK Quinn30-Jan-12 1:51 
GeneralRe: Strictly Short Circuit Pin
agolddog30-Jan-12 3:54
memberagolddog30-Jan-12 3:54 
GeneralRe: Strictly Short Circuit Pin
Patrick Fox30-Jan-12 6:07
memberPatrick Fox30-Jan-12 6:07 
GeneralRe: Strictly Short Circuit Pin
ekolis30-Jan-12 10:28
memberekolis30-Jan-12 10:28 

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
Web02 | 2.8.150901.1 | Last Updated 4 Sep 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid