Click here to Skip to main content
12,077,753 members (48,215 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: Found this little gem in one of the applications Pin
OriginalGriff13-Dec-12 7:16
mvpOriginalGriff13-Dec-12 7:16 
GeneralRe: Found this little gem in one of the applications Pin
RugbyLeague13-Dec-12 7:24
memberRugbyLeague13-Dec-12 7:24 
GeneralRe: Found this little gem in one of the applications Pin
d@nish 13-Dec-12 7:35
member d@nish 13-Dec-12 7:35 
GeneralRe: Found this little gem in one of the applications Pin
Super Lloyd13-Dec-12 14:13
memberSuper Lloyd13-Dec-12 14:13 
GeneralRe: Found this little gem in one of the applications Pin
ProgramFOX13-Dec-12 8:21
memberProgramFOX13-Dec-12 8:21 
GeneralRe: Found this little gem in one of the applications Pin
Zac Greve13-Dec-12 7:29
memberZac Greve13-Dec-12 7:29 
GeneralRe: Found this little gem in one of the applications Pin
DrABELL13-Dec-12 8:12
memberDrABELL13-Dec-12 8:12 
GeneralRe: Found this little gem in one of the applications Pin
Walt Fair, Jr.13-Dec-12 9:12
subeditorWalt Fair, Jr.13-Dec-12 9:12 
I would suggest the following:

private long _remainder = (long)int.parse((0).ToString());
CQ de W5ALT

Walt Fair, Jr., P. E.
Comport Computing
Specializing in Technical Engineering Software


GeneralRe: Found this little gem in one of the applications Pin
Super Lloyd13-Dec-12 14:15
memberSuper Lloyd13-Dec-12 14:15 
GeneralRe: Found this little gem in one of the applications Pin
KP Lee17-Dec-12 9:06
memberKP Lee17-Dec-12 9:06 
GeneralRe: Found this little gem in one of the applications Pin
Super Lloyd17-Dec-12 17:58
memberSuper Lloyd17-Dec-12 17:58 
GeneralRe: Found this little gem in one of the applications Pin
KP Lee18-Dec-12 7:29
memberKP Lee18-Dec-12 7:29 
GeneralRe: Found this little gem in one of the applications Pin
Super Lloyd18-Dec-12 13:52
memberSuper Lloyd18-Dec-12 13:52 
GeneralFacepalm time. Pin
Marcus Kramer13-Dec-12 5:36
memberMarcus Kramer13-Dec-12 5:36 
GeneralRe: Facepalm time. Pin
wout de zeeuw13-Dec-12 5:59
memberwout de zeeuw13-Dec-12 5:59 
GeneralRe: Facepalm time. Pin
Marcus Kramer13-Dec-12 7:44
memberMarcus Kramer13-Dec-12 7:44 
GeneralRe: Facepalm time. Pin
Anna-Jayne Metcalfe13-Dec-12 23:34
memberAnna-Jayne Metcalfe13-Dec-12 23:34 
GeneralRe: Facepalm time. Pin
KP Lee16-Dec-12 0:58
memberKP Lee16-Dec-12 0:58 
NewsExtract from the code I'm working on Pin
Super Lloyd10-Dec-12 17:26
memberSuper Lloyd10-Dec-12 17:26 
GeneralRe: Extract from the code I'm working on Pin
Zac Greve10-Dec-12 18:57
memberZac Greve10-Dec-12 18:57 
GeneralRe: Extract from the code I'm working on Pin
Super Lloyd10-Dec-12 19:13
memberSuper Lloyd10-Dec-12 19:13 
GeneralRe: Extract from the code I'm working on Pin
KP Lee11-Dec-12 13:08
memberKP Lee11-Dec-12 13:08 
GeneralRe: Extract from the code I'm working on Pin
Super Lloyd11-Dec-12 23:04
memberSuper Lloyd11-Dec-12 23:04 
GeneralRe: Extract from the code I'm working on Pin
Nemanja Trifunovic13-Dec-12 8:29
memberNemanja Trifunovic13-Dec-12 8:29 
GeneralRe: Extract from the code I'm working on Pin
Super Lloyd13-Dec-12 14:12
memberSuper Lloyd13-Dec-12 14:12 

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 | Mobile
Web02 | 2.8.160212.1 | Last Updated 13 Feb 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid