Click here to Skip to main content
15,887,027 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: Why String.Format? Pin
KP Lee18-Jun-12 20:39
KP Lee18-Jun-12 20:39 
GeneralRe: Why String.Format? PinPopular
jhunley15-Jun-12 17:38
jhunley15-Jun-12 17:38 
GeneralRe: Why String.Format? Pin
JackDingler19-Jun-12 9:53
JackDingler19-Jun-12 9:53 
GeneralRe: Why String.Format? Pin
RobCroll17-Jun-12 5:25
RobCroll17-Jun-12 5:25 
GeneralRe: Why String.Format? Pin
FireDog3126218-Jun-12 3:20
FireDog3126218-Jun-12 3:20 
JokeRe: Why String.Format? Pin
Rahul Rajat Singh26-Jun-12 1:01
professionalRahul Rajat Singh26-Jun-12 1:01 
GeneralTry Fail... PinPopular
VallarasuS15-Jun-12 2:22
VallarasuS15-Jun-12 2:22 
GeneralRe: Try Fail... Pin
CDP180215-Jun-12 2:40
CDP180215-Jun-12 2:40 
r, g and b are declared because you can't call TryParse() without providing an out parameter for the result. Still, a CanParse() method would not be very much faster or more efficient than misusing TryParse() for that purpose. Anyway, I have seen much code where some rookie tried to put everything into strings (instead of proper types) and then was trying to parse (no pun intended) all over the code.
At least artificial intelligence already is superior to natural stupidity



GeneralRe: Try Fail... Pin
BobJanova15-Jun-12 4:53
BobJanova15-Jun-12 4:53 
GeneralRe: Try Fail... Pin
CDP180215-Jun-12 5:08
CDP180215-Jun-12 5:08 
GeneralRe: Try Fail... Pin
Julien Villers15-Jun-12 3:33
professionalJulien Villers15-Jun-12 3:33 
GeneralRe: Try Fail... Pin
VallarasuS15-Jun-12 5:15
VallarasuS15-Jun-12 5:15 
GeneralRe: Try Fail... Pin
Julien Villers15-Jun-12 5:18
professionalJulien Villers15-Jun-12 5:18 
GeneralRe: Try Fail... Pin
Richard Deeming18-Jun-12 10:18
mveRichard Deeming18-Jun-12 10:18 
GeneralRe: Try Fail... Pin
KP Lee18-Jun-12 21:55
KP Lee18-Jun-12 21:55 
GeneralWhy use String.Concat() ? Pin
CoperNick13-Jun-12 3:04
CoperNick13-Jun-12 3:04 
GeneralRe: Why use String.Concat() ? PinPopular
CoperNick13-Jun-12 3:08
CoperNick13-Jun-12 3:08 
GeneralRe: Why use String.Concat() ? PinPopular
StM0n13-Jun-12 5:59
StM0n13-Jun-12 5:59 
GeneralRe: Why use String.Concat() ? PinPopular
leppie14-Jun-12 1:55
leppie14-Jun-12 1:55 
GeneralRe: Why use String.Concat() ? Pin
Brisingr Aerowing14-Jun-12 2:12
professionalBrisingr Aerowing14-Jun-12 2:12 
GeneralRe: Why use String.Concat() ? Pin
FireDog3126218-Jun-12 3:26
FireDog3126218-Jun-12 3:26 
GeneralRe: Why use String.Concat() ? Pin
KP Lee18-Jun-12 22:59
KP Lee18-Jun-12 22:59 
GeneralWhy on earth? PinPopular
leppie13-Jun-12 0:07
leppie13-Jun-12 0:07 
GeneralRe: Why on earth? Pin
Sentenryu13-Jun-12 0:25
Sentenryu13-Jun-12 0:25 
GeneralRe: Why on earth? Pin
Vitaly Tomilov14-Jun-12 1:30
Vitaly Tomilov14-Jun-12 1:30 

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.