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.

 

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


Advertise | Privacy | Mobile
Web03 | 2.6.130617.1 | Last Updated 19 Jun 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid

You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page  Show 
GeneralRe: Strangely Refactored Name PinmemberJonathan C Dickinson3-Feb-13 22:25 
GeneralHandling "Special" Cases in "Special" Ways PinprotectorAspDotNetDev23-Jan-13 14: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 20:38 
What language is that?
GeneralRe: Handling "Special" Cases in "Special" Ways PinmemberRobert Rohde23-Jan-13 20:42 
GeneralRe: Handling "Special" Cases in "Special" Ways PinmemberPIEBALDconsult23-Jan-13 20:49 
GeneralRe: Handling "Special" Cases in "Special" Ways Pinmemberpeterchen28-Jan-13 21:57 
GeneralI am in love <3 PinmemberAmgad Fahmi17-Jan-13 11:11 
Few weeks ago i decided to create an application to make my work easier as we used to execute different scripts to complete our tasks, other than using different applications to do this, i created this application. And because everyday we can use different scripts i decided to make the application extendable so you can add new dll and the application know how to execute this new script. Right now while am having a drink and reading a little bit about MEF, my heart start to beat very fast as i found this exactly what i was doing without using reflection. I think i will have couple of drinks more and dive more deep with this sweet lovely thing. Just wanna share my feelings with you guys Smile | :)
Genius is one percent inspiration and ninety-nine percent perspiration.

GeneralRe: I am in love <3 PinmemberRanjan.D17-Jan-13 11:27 
GeneralRe: I am in love <3 PinmemberAmgad Fahmi17-Jan-13 11:30 
GeneralRe: I am in love <3 PinmemberPIEBALDconsult17-Jan-13 12:44