Click here to Skip to main content
13,198,563 members (26,921 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: Yes - It was me Pin
Marco Bertschi16-Dec-13 4:31
professionalMarco Bertschi16-Dec-13 4:31 
GeneralRe: Yes - It was me Pin
Manfred R. Bihy16-Dec-13 4:35
professionalManfred R. Bihy16-Dec-13 4:35 
QuestionRe: Yes - It was me Pin
Pablo Aliskevicius16-Dec-13 4:40
memberPablo Aliskevicius16-Dec-13 4:40 
GeneralRe: Yes - It was me Pin
Albert Holguin28-Dec-13 12:10
memberAlbert Holguin28-Dec-13 12:10 
GeneralRe: Yes - It was me Pin
Albert Holguin28-Dec-13 12:08
memberAlbert Holguin28-Dec-13 12:08 
GeneralRe: Yes - It was me Pin
charlieg14-Jan-14 23:17
membercharlieg14-Jan-14 23:17 
GeneralYes I know it was me who wrote that... Pin
GuyThiebaut10-Dec-13 5:51
professionalGuyThiebaut10-Dec-13 5:51 
GeneralRe: Yes I know it was me who wrote that... Pin
Richard Deeming10-Dec-13 5:58
professionalRichard Deeming10-Dec-13 5: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... Pin
GuyThiebaut10-Dec-13 6:00
professionalGuyThiebaut10-Dec-13 6:00 
GeneralRe: Yes I know it was me who wrote that... Pin
BobJanova10-Dec-13 6:40
memberBobJanova10-Dec-13 6:40 
GeneralRe: Yes I know it was me who wrote that... Pin
Richard Deeming10-Dec-13 6:50
professionalRichard Deeming10-Dec-13 6:50 
GeneralRe: Yes I know it was me who wrote that... Pin
BobJanova10-Dec-13 6:59
memberBobJanova10-Dec-13 6:59 
GeneralRe: Yes I know it was me who wrote that... Pin
Richard Deeming10-Dec-13 7:01
professionalRichard Deeming10-Dec-13 7:01 
GeneralRe: Yes I know it was me who wrote that... Pin
OriginalGriff10-Dec-13 8:34
protectorOriginalGriff10-Dec-13 8:34 
GeneralRe: Yes I know it was me who wrote that... Pin
CDP180210-Dec-13 17:09
memberCDP180210-Dec-13 17:09 
GeneralRe: Yes I know it was me who wrote that... Pin
OriginalGriff10-Dec-13 21:20
protectorOriginalGriff10-Dec-13 21:20 
GeneralRe: Yes I know it was me who wrote that... Pin
Argonia10-Dec-13 20:36
memberArgonia10-Dec-13 20:36 
GeneralRe: Yes I know it was me who wrote that... Pin
Richard Deeming11-Dec-13 2:27
professionalRichard Deeming11-Dec-13 2:27 
GeneralRe: Yes I know it was me who wrote that... Pin
OriginalGriff11-Dec-13 3:00
protectorOriginalGriff11-Dec-13 3:00 
GeneralRe: Yes I know it was me who wrote that... Pin
Richard Deeming11-Dec-13 3:27
professionalRichard Deeming11-Dec-13 3:27 
GeneralRe: Yes I know it was me who wrote that... Pin
OriginalGriff11-Dec-13 3:46
protectorOriginalGriff11-Dec-13 3:46 
GeneralRe: Yes I know it was me who wrote that... Pin
Argonia11-Dec-13 3:57
memberArgonia11-Dec-13 3:57 
GeneralRe: Yes I know it was me who wrote that... Pin
OriginalGriff11-Dec-13 4:57
protectorOriginalGriff11-Dec-13 4:57 
GeneralRe: Yes I know it was me who wrote that... Pin
Argonia11-Dec-13 5:04
memberArgonia11-Dec-13 5:04 
GeneralRe: Yes I know it was me who wrote that... Pin
Richard Deeming11-Dec-13 5:13
professionalRichard Deeming11-Dec-13 5:13 

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 |
Web03 | 2.8.171020.1 | Last Updated 22 Oct 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid