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: Strangely Refactored Name PinmemberSoMad28-Jan-13 23:46 
GeneralRe: Strangely Refactored Name PinmemberPIEBALDconsult29-Jan-13 12:20 
GeneralRe: Strangely Refactored Name PinmemberHuntrCkr31-Jan-13 22:48 
GeneralRe: Strangely Refactored Name PinmemberSoMad31-Jan-13 23:38 
GeneralRe: Strangely Refactored Name Pinmemberjibesh28-Jan-13 21:19 
GeneralRe: Strangely Refactored Name PinmvpOriginalGriff28-Jan-13 21:43 
GeneralRe: Strangely Refactored Name PinmemberJonathan C Dickinson3-Feb-13 23:25 
GeneralHandling "Special" Cases in "Special" Ways PinprotectorAspDotNetDev23-Jan-13 15:14 
A sample of the code I'm working on now:
TimeZone = If(item.Descendants("DisplayableDateTime").Attributes("TimeZone").ElementAt(0).Value <> "", item.Descendants("DisplayableDateTime").Attributes("TimeZone").ElementAt(0).Value, "")
In short, set the result to the value when the value is not an empty string; otherwise, set the result to an empty string.
 
Cry | :((

GeneralRe: Handling "Special" Cases in "Special" Ways PinmemberPIEBALDconsult23-Jan-13 21:38 
GeneralRe: Handling "Special" Cases in "Special" Ways PinmemberRobert Rohde23-Jan-13 21:42 
GeneralRe: Handling "Special" Cases in "Special" Ways PinmemberPIEBALDconsult23-Jan-13 21:49 
GeneralRe: Handling "Special" Cases in "Special" Ways Pinmemberpeterchen28-Jan-13 22:57 
GeneralI am in love <3 PinmemberAmgad Fahmi17-Jan-13 12:11 
GeneralRe: I am in love <3 PinmemberRanjan.D17-Jan-13 12:27 
GeneralRe: I am in love <3 PinmemberAmgad Fahmi17-Jan-13 12:30 
GeneralRe: I am in love <3 PinmemberPIEBALDconsult17-Jan-13 13:44 
GeneralRe: I am in love <3 Pinmemberlewax0017-Jan-13 14:06 
GeneralRe: I am in love <3 PinmemberPIEBALDconsult17-Jan-13 14:15 
GeneralRe: I am in love <3 PinmemberBrisingr Aerowing17-Jan-13 15:15 
GeneralRe: I am in love <3 Pinmemberlewax0017-Jan-13 16:15 
GeneralRe: I am in love <3 PinmemberPIEBALDconsult17-Jan-13 16:57 
GeneralRe: I am in love <3 PinmemberAmgad Fahmi17-Jan-13 22:54 
GeneralRe: I am in love <3 PinmemberChris Quinn17-Jan-13 22:15 
GeneralRe: I am in love <3 PinmemberPIEBALDconsult17-Jan-13 13:43 
QuestionRe: I am in love <3 PinmemberGuirec Le Bars17-Jan-13 15:15 

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.150224.1 | Last Updated 1 Mar 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid