Click here to Skip to main content
15,902,276 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: which one is faster and better coding Pin
Sylvester george18-May-07 2:06
Sylvester george18-May-07 2:06 
GeneralRe: which one is faster and better coding Pin
Brady Kelly18-May-07 4:00
Brady Kelly18-May-07 4:00 
GeneralRe: which one is faster and better coding Pin
Vasudevan Deepak Kumar23-May-07 2:33
Vasudevan Deepak Kumar23-May-07 2:33 
GeneralRe: which one is faster and better coding Pin
jonavi25-May-07 4:31
jonavi25-May-07 4:31 
GeneralRe: which one is faster and better coding Pin
davidnr30-May-07 3:14
davidnr30-May-07 3:14 
GeneralRe: which one is faster and better coding Pin
ChandraRam18-May-07 2:17
ChandraRam18-May-07 2:17 
GeneralRe: which one is faster and better coding Pin
V.18-May-07 4:13
professionalV.18-May-07 4:13 
GeneralRe: which one is faster and better coding Pin
PIEBALDconsult18-May-07 4:41
mvePIEBALDconsult18-May-07 4:41 
Any improvement in speed the second may have pales in comparison to the cost in maintainability.

Any why have both values be strings?

And why have a DropDownList simply to select a number? Use a NumericUpDown or a TextBox with validation.

I really dislike Websites that have a list of (U.S.) state abbreviations or whatnot when it's simpler just to type in the data... e.g. I now live in Arizona, but rather than allowing me to enter "AZ" (two keystrokes) I need to either scroll down or press "A" five times! Just so the programmer doesn't have to validate the entry, pathetic.
JokeRe: which one is faster and better coding Pin
Nemanja Trifunovic18-May-07 7:16
Nemanja Trifunovic18-May-07 7:16 
GeneralRe: which one is faster and better coding Pin
Juan Pablo G.C.23-May-07 0:29
Juan Pablo G.C.23-May-07 0:29 
GeneralRe: which one is faster and better coding Pin
maz233123-May-07 10:11
maz233123-May-07 10:11 
GeneralRe: which one is faster and better coding Pin
KarstenK23-May-07 23:01
mveKarstenK23-May-07 23:01 
GeneralRe: which one is faster and better coding Pin
Mark Focas24-May-07 20:30
Mark Focas24-May-07 20:30 
GeneralRe: which one is faster and better coding Pin
Vasudevan Deepak Kumar24-May-07 23:17
Vasudevan Deepak Kumar24-May-07 23:17 
GeneralRe: which one is faster and better coding Pin
John R. Shaw25-May-07 16:08
John R. Shaw25-May-07 16:08 
QuestionCould this copy/paste redundancy prove costly? Pin
jayart17-May-07 0:58
jayart17-May-07 0:58 
AnswerRe: Could this copy/paste redundancy prove costly? Pin
jayart17-May-07 1:17
jayart17-May-07 1:17 
AnswerRe: Could this copy/paste redundancy prove costly? Pin
Pete O'Hanlon17-May-07 2:07
mvePete O'Hanlon17-May-07 2:07 
GeneralRe: Could this copy/paste redundancy prove costly? Pin
Vasudevan Deepak Kumar24-May-07 23:21
Vasudevan Deepak Kumar24-May-07 23:21 
AnswerRe: Could this copy/paste redundancy prove costly? Pin
Tim Yen20-May-07 22:09
Tim Yen20-May-07 22:09 
GeneralRe: Could this copy/paste redundancy prove costly? Pin
Vasudevan Deepak Kumar24-May-07 23:20
Vasudevan Deepak Kumar24-May-07 23:20 
AnswerRe: Could this copy/paste redundancy prove costly? Pin
Vasudevan Deepak Kumar24-May-07 23:18
Vasudevan Deepak Kumar24-May-07 23:18 
GeneralIf, for some weird reason, you _have_ to use Hungarian in .NET, at least use it properly Pin
Vikram A Punathambekar15-May-07 22:31
Vikram A Punathambekar15-May-07 22:31 
GeneralRe: If, for some weird reason, you _have_ to use Hungarian in .NET, at least use it properly Pin
szukuro15-May-07 22:37
szukuro15-May-07 22:37 
GeneralRe: If, for some weird reason, you _have_ to use Hungarian in .NET, at least use it properly Pin
Vikram A Punathambekar16-May-07 1:18
Vikram A Punathambekar16-May-07 1:18 

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.