Click here to Skip to main content

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: DateTime.Now vs. GetSystemTime PinmemberBobJanova2-Jun-14 1:51 
GeneralRe: DateTime.Now vs. GetSystemTime PinprofessionalRob Philpott10-Jun-14 6:20 
GeneralRe: DateTime.Now vs. GetSystemTime PinprofessionalEddy Vluggen6-Jun-14 6:11 
GeneralSuccessfully writing to a string literal PinprofessionalIndivara19-May-14 0:44 
GeneralRe: Successfully writing to a string literal PinmemberFreak3019-May-14 2:45 
GeneralRe: Successfully writing to a string literal [modified] PinprofessionalIndivara19-May-14 6:17 
GeneralRe: Successfully writing to a string literal Pinmembernewton.saber19-May-14 2:45 
GeneralRe: Successfully writing to a string literal PinprofessionalIndivara19-May-14 6:15 
GeneralRe: Successfully writing to a string literal Pinmembernewton.saber19-May-14 6:34 
GeneralThe Exception to the C# Rules PinmemberBrady Kelly15-May-14 19:55 
GeneralRe: The Exception to the C# Rules PinprofessionalBernhard Hiller15-May-14 22:54 
GeneralRe: The Exception to the C# Rules PinprofessionalShameel16-May-14 1:53 
GeneralRe: The Exception to the C# Rules PinmentorKeith Barrow19-May-14 7:28 
GeneralRe: The Exception to the C# Rules PinprofessionalBernhard 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 Pinmembercpkilekofp19-Jun-14 10:50 
GeneralVB6 code that emits VB6 code PinmemberMrChug7-May-14 17:12 
GeneralI can't set title for this post!!! PinmemberMeysam Tolouee2-May-14 19:45 
GeneralRe: I can't set title for this post!!! <- then what's that? You trying to confuse me? PinprofessionalEddy Vluggen3-May-14 9:25 
GeneralRe: I can't set title for this post!!! PinmemberPIEBALDconsult3-May-14 13:14 
GeneralRe: I can't set title for this post!!! Pinmembercpkilekofp19-Jun-14 12:05 
GeneralSome useful extension methods PinprofessionalBrisingr Aerowing2-May-14 14:41 
GeneralRe: Some useful extension methods PinmemberPIEBALDconsult2-May-14 15:50 
GeneralRe: Some useful extension methods Pinmemberrobocodeboy13-May-14 22:52 
QuestionRe: Some useful extension methods PinprofessionalMatt T Heffron5-May-14 15:45 
AnswerRe: Some useful extension methods PinprofessionalBrisingr Aerowing5-May-14 16:30 
GeneralRe: Some useful extension methods PinmemberBobJanova6-May-14 1:43 
GeneralThinking Inside the Box Pinmemberkmoorevs24-Apr-14 13:11 
GeneralRe: Thinking Inside the Box Pinmemberahmed zahmed28-Apr-14 8:35 
GeneralRe: Thinking Inside the Box PinprofessionalNagy Vilmos29-Apr-14 12:05 
GeneralRe: Thinking Inside the Box Pinmemberkmoorevs29-Apr-14 12:51 
GeneralRe: Thinking Inside the Box PinprotectorOriginalGriff30-Apr-14 9:13 
GeneralRe: Thinking Inside the Box PinprofessionalArgonia30-Apr-14 6:00 
GeneralRe: Thinking Inside the Box PinmvpRyanDev29-Apr-14 13:52 
Generalconscious perma-coupling PinprofessionalDuncan Edwards Jones20-Apr-14 13:17 
GeneralRe: conscious perma-coupling PinmemberShameel21-Apr-14 1:53 
GeneralRe: conscious perma-coupling PinmemberBobJanova22-Apr-14 0:58 
GeneralRe: conscious perma-coupling PinprofessionalDuncan Edwards Jones22-Apr-14 1:10 
GeneralRe: conscious perma-coupling PinmemberJacek Gajek30-Apr-14 23:18 
GeneralRtf -WTF: why is it different? PinprofessionalBernhard Hiller15-Apr-14 5:56 
GeneralRe: Rtf -WTF: why is it different? Pinmemberledtech315-Apr-14 6:11 
GeneralRe: Rtf -WTF: why is it different? PinprofessionalBernhard Hiller15-Apr-14 21:55 
GeneralRe: Rtf -WTF: why is it different? Pinmemberledtech316-Apr-14 5:28 
GeneralRe: Rtf -WTF: why is it different? PinmemberRob Grainger16-Apr-14 1:08 
GeneralRe: Rtf -WTF: why is it different? PinprofessionalManikandan1011-Jun-14 4:31 
General#region PinprofessionalBernhard Hiller11-Apr-14 3:51 
GeneralRe: #region Pinmembertgrt11-Apr-14 4:58 
GeneralRe: #region PinprotectorOriginalGriff11-Apr-14 6:41 
GeneralRe: #region PinprofessionalBernhard Hiller13-Apr-14 21:40 
GeneralRe: #region PinprotectorOriginalGriff13-Apr-14 22:00 
GeneralRe: #region PinprofessionalBrisingr Aerowing11-Apr-14 6:46 

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.141220.1 | Last Updated 20 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid