Click here to Skip to main content
12,819,913 members (23,867 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, 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: The Exception to the C# Rules Pin
Bernhard Hiller15-May-14 22:54
professionalBernhard Hiller15-May-14 22:54 
GeneralRe: The Exception to the C# Rules Pin
Shameel16-May-14 1:53
professionalShameel16-May-14 1:53 
GeneralRe: The Exception to the C# Rules Pin
Keith Barrow19-May-14 7:28
mentorKeith Barrow19-May-14 7:28 
GeneralRe: The Exception to the C# Rules Pin
Bernhard Hiller19-May-14 23:46
professionalBernhard Hiller19-May-14 23:46 
Ehm, did you realize the extra gem?
if (myUserObj.USER_CODEID == 0) { }
He provokes a NullReferenceException instead of checking the returned value myUserObj for null (also that book says: do not return null...).
Of course, dealing with exceptions the Java style is very inconvenient for us .Net fans.
GeneralRe: The Exception to the C# Rules Pin
cpkilekofp19-Jun-14 10:50
membercpkilekofp19-Jun-14 10:50 
GeneralVB6 code that emits VB6 code Pin
MrChug7-May-14 17:12
memberMrChug7-May-14 17:12 
GeneralI can't set title for this post!!! Pin
Meysam Tolouee2-May-14 19:45
memberMeysam Tolouee2-May-14 19:45 
GeneralRe: I can't set title for this post!!! <- then what's that? You trying to confuse me? Pin
Eddy Vluggen3-May-14 9:25
professionalEddy Vluggen3-May-14 9:25 
GeneralRe: I can't set title for this post!!! Pin
PIEBALDconsult3-May-14 13:14
memberPIEBALDconsult3-May-14 13:14 
GeneralRe: I can't set title for this post!!! Pin
cpkilekofp19-Jun-14 12:05
membercpkilekofp19-Jun-14 12:05 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.170308.1 | Last Updated 25 Mar 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid