Click here to Skip to main content
15,924,367 members

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:STACK OVERFLOW Pin
Chris Meech12-Nov-07 2:44
Chris Meech12-Nov-07 2:44 
GeneralRe:STACK OVERFLOW Pin
leppie12-Nov-07 3:22
leppie12-Nov-07 3:22 
GeneralRe: I'm speechless about this piece of code. Pin
Pete O'Hanlon12-Nov-07 2:56
mvePete O'Hanlon12-Nov-07 2:56 
GeneralRe: I'm speechless about this piece of code. Pin
NormDroid13-Nov-07 9:13
professionalNormDroid13-Nov-07 9:13 
JokeRe: I'm speechless about this piece of code. Pin
Paddy Boyd13-Nov-07 21:35
Paddy Boyd13-Nov-07 21:35 
GeneralRe: I'm speechless about this piece of code. Pin
NormDroid14-Nov-07 3:24
professionalNormDroid14-Nov-07 3:24 
JokeRe: I'm speechless about this piece of code. Pin
codemunkeh14-Nov-07 9:49
codemunkeh14-Nov-07 9:49 
GeneralRe: I'm speechless about this piece of code. Pin
Luc Pattyn12-Nov-07 4:50
sitebuilderLuc Pattyn12-Nov-07 4:50 
Pete O`Hanlon wrote:
Convert.ToInt16(chkdate.Length.ToString()) != 11


why do you rely on an implicit Int16-to-Int32 conversion?
I would recommend an explicit cast to make things more clear.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]


this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google


GeneralRe: I'm speechless about this piece of code. Pin
Pete O'Hanlon12-Nov-07 5:00
mvePete O'Hanlon12-Nov-07 5:00 
GeneralRe: I'm speechless about this piece of code. Pin
MidwestLimey12-Nov-07 7:26
professionalMidwestLimey12-Nov-07 7:26 
GeneralRe: I'm speechless about this piece of code. Pin
Ri Qen-Sin12-Nov-07 15:31
Ri Qen-Sin12-Nov-07 15:31 
GeneralRe: I'm speechless about this piece of code. Pin
Andy Brummer12-Nov-07 17:22
sitebuilderAndy Brummer12-Nov-07 17:22 
GeneralRe: I'm speechless about this piece of code. Pin
leppie12-Nov-07 8:09
leppie12-Nov-07 8:09 
GeneralRe: I'm speechless about this piece of code. Pin
Chris Meech12-Nov-07 8:24
Chris Meech12-Nov-07 8:24 
GeneralRe: I'm speechless about this piece of code. [modified] Pin
Xiangyang Liu 刘向阳12-Nov-07 8:28
Xiangyang Liu 刘向阳12-Nov-07 8:28 
GeneralRe: I'm speechless about this piece of code. Pin
leppie12-Nov-07 20:11
leppie12-Nov-07 20:11 
GeneralRe: I'm speechless about this piece of code. Pin
darkelv12-Nov-07 13:05
darkelv12-Nov-07 13:05 
JokeRe: I'm speechless about this piece of code. Pin
Rajesh R Subramanian12-Nov-07 20:42
professionalRajesh R Subramanian12-Nov-07 20:42 
GeneralRe: I'm speechless about this piece of code. Pin
KarstenK12-Nov-07 21:23
mveKarstenK12-Nov-07 21:23 
GeneralRe: I'm speechless about this piece of code. Pin
Pete O'Hanlon12-Nov-07 21:49
mvePete O'Hanlon12-Nov-07 21:49 
JokeRe: I'm speechless about this piece of code. Pin
codemunkeh14-Nov-07 9:52
codemunkeh14-Nov-07 9:52 
GeneralSnobbish replies Pin
Michael Pauli15-Nov-07 2:48
Michael Pauli15-Nov-07 2:48 
GeneralRe: Snobbish replies Pin
Tony Wesley15-Nov-07 7:11
Tony Wesley15-Nov-07 7:11 
GeneralRe: I'm speechless about this piece of code. Pin
Tony Wesley15-Nov-07 5:40
Tony Wesley15-Nov-07 5:40 
GeneralRe: I'm speechless about this piece of code. Pin
Michael Pauli15-Nov-07 23:05
Michael Pauli15-Nov-07 23:05 

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.