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: Yes - It was me PinprofessionalMarco Bertschi16-Dec-13 5:31 
GeneralRe: Yes - It was me PinprofessionalManfred R. Bihy16-Dec-13 5:35 
QuestionRe: Yes - It was me PinmemberPablo Aliskevicius16-Dec-13 5:40 
GeneralRe: Yes - It was me PinmemberAlbert Holguin28-Dec-13 13:10 
GeneralRe: Yes - It was me PinmemberAlbert Holguin28-Dec-13 13:08 
GeneralRe: Yes - It was me Pinmembercharlieg15-Jan-14 0:17 
GeneralYes I know it was me who wrote that... PinprofessionalGuyThiebaut10-Dec-13 6:51 
GeneralRe: Yes I know it was me who wrote that... PinprofessionalRichard Deeming10-Dec-13 6:58 
GuyThiebaut wrote:
I should have coded:

if (item.Substring(0, 3).ToLower() != "PF_".ToLower())

I hope that's a good example of sarcasm! Poke tongue | ;-P
if (string.Compare(item, 0, "PF_", 0, 3, StringComparison.OrdinalIgnoreCase) != 0)



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: Yes I know it was me who wrote that... PinprofessionalGuyThiebaut10-Dec-13 7:00 
GeneralRe: Yes I know it was me who wrote that... PinmemberBobJanova10-Dec-13 7:40 
GeneralRe: Yes I know it was me who wrote that... PinprofessionalRichard Deeming10-Dec-13 7:50 
GeneralRe: Yes I know it was me who wrote that... PinmemberBobJanova10-Dec-13 7:59 
GeneralRe: Yes I know it was me who wrote that... PinprofessionalRichard Deeming10-Dec-13 8:01 
GeneralRe: Yes I know it was me who wrote that... PinprotectorOriginalGriff10-Dec-13 9:34 
GeneralRe: Yes I know it was me who wrote that... PinmemberCDP180210-Dec-13 18:09 
GeneralRe: Yes I know it was me who wrote that... PinprotectorOriginalGriff10-Dec-13 22:20 
GeneralRe: Yes I know it was me who wrote that... PinmemberArgonia10-Dec-13 21:36 
GeneralRe: Yes I know it was me who wrote that... PinprofessionalRichard Deeming11-Dec-13 3:27 
GeneralRe: Yes I know it was me who wrote that... PinprotectorOriginalGriff11-Dec-13 4:00 
GeneralRe: Yes I know it was me who wrote that... PinprofessionalRichard Deeming11-Dec-13 4:27 
GeneralRe: Yes I know it was me who wrote that... PinprotectorOriginalGriff11-Dec-13 4:46 
GeneralRe: Yes I know it was me who wrote that... PinmemberArgonia11-Dec-13 4:57 
GeneralRe: Yes I know it was me who wrote that... PinprotectorOriginalGriff11-Dec-13 5:57 
GeneralRe: Yes I know it was me who wrote that... [modified] PinmemberArgonia11-Dec-13 6:04 
GeneralRe: Yes I know it was me who wrote that... PinprofessionalRichard Deeming11-Dec-13 6:13 

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