Click here to Skip to main content
13,248,112 members (36,163 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: That may have been a mistake... Pin
OriginalGriff21-Aug-10 5:41
memberOriginalGriff21-Aug-10 5:41 
GeneralRe: That may have been a mistake... Pin
Jeroen De Dauw21-Aug-10 5:35
memberJeroen De Dauw21-Aug-10 5:35 
GeneralRe: That may have been a mistake... Pin
OriginalGriff21-Aug-10 5:39
memberOriginalGriff21-Aug-10 5:39 
GeneralRe: That may have been a mistake... Pin
Jeroen De Dauw21-Aug-10 5:41
memberJeroen De Dauw21-Aug-10 5:41 
GeneralRe: That may have been a mistake... Pin
OriginalGriff21-Aug-10 5:42
memberOriginalGriff21-Aug-10 5:42 
AnswerRe: That may have been a mistake... Pin
Luc Pattyn22-Aug-10 10:17
mvpLuc Pattyn22-Aug-10 10:17 
GeneralRe: That may have been a mistake... Pin
OriginalGriff22-Aug-10 10:28
memberOriginalGriff22-Aug-10 10:28 
GeneralRe: That may have been a mistake... Pin
Luc Pattyn22-Aug-10 11:03
mvpLuc Pattyn22-Aug-10 11:03 
OriginalGriff wrote:
it would have defeated the purpose


rather than write code, you should have read this then: Something You May Not Know About the Switch Statement in C/C++[^]. And if you are convinced C# may behave differently, it would deserve a real article.


OriginalGriff wrote:
Do you think I should post it as a new Tip / Trick


Absolutely, a tip or article. And please include an SQL file with the data, so others can set up their own DB.


OriginalGriff wrote:
Five hundred and twenty three


There seems to be one more issue that needs getting settled: should or shouldn't you use a hyphen in those inverted decimal-and-unit combinations? And if both are acceptable, how to let the user choose?

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.


GeneralRe: That may have been a mistake... Pin
OriginalGriff22-Aug-10 12:40
memberOriginalGriff22-Aug-10 12:40 
GeneralRe: That may have been a mistake... Pin
Luc Pattyn22-Aug-10 12:50
mvpLuc Pattyn22-Aug-10 12:50 
GeneralRe: That may have been a mistake... Pin
OriginalGriff22-Aug-10 23:00
memberOriginalGriff22-Aug-10 23:00 
GeneralRe: That may have been a mistake... Pin
PIEBALDconsult22-Aug-10 12:55
mvpPIEBALDconsult22-Aug-10 12:55 
GeneralRe: That may have been a mistake... Pin
Luc Pattyn22-Aug-10 13:00
mvpLuc Pattyn22-Aug-10 13:00 
GeneralRe: That may have been a mistake... Pin
PIEBALDconsult22-Aug-10 18:48
mvpPIEBALDconsult22-Aug-10 18:48 
GeneralRe: That may have been a mistake... Pin
Robert Rohde22-Aug-10 21:49
memberRobert Rohde22-Aug-10 21:49 
GeneralRe: That may have been a mistake... Pin
OriginalGriff22-Aug-10 22:13
memberOriginalGriff22-Aug-10 22:13 
GeneralRe: That may have been a mistake... Pin
Daniel Grunwald23-Aug-10 12:11
memberDaniel Grunwald23-Aug-10 12:11 
GeneralRe: That may have been a mistake... Pin
Peter_in_278025-Aug-10 14:24
memberPeter_in_278025-Aug-10 14:24 
GeneralRe: That may have been a mistake... Pin
OriginalGriff26-Aug-10 1:36
memberOriginalGriff26-Aug-10 1:36 
GeneralString "bitmaps" Pin
gkushner20-Aug-10 3:32
membergkushner20-Aug-10 3:32 
GeneralRe: String "bitmaps" Pin
PIEBALDconsult20-Aug-10 4:13
mvpPIEBALDconsult20-Aug-10 4:13 
GeneralRe: String "bitmaps" Pin
CDP180220-Aug-10 5:32
memberCDP180220-Aug-10 5:32 
GeneralRe: String "bitmaps" Pin
gkushner20-Aug-10 6:22
membergkushner20-Aug-10 6:22 
GeneralRe: String "bitmaps" Pin
Richard A. Dalton20-Aug-10 5:39
memberRichard A. Dalton20-Aug-10 5:39 
GeneralRe: String "bitmaps" Pin
gkushner20-Aug-10 6:20
membergkushner20-Aug-10 6:20 

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 |
Web02 | 2.8.171114.1 | Last Updated 18 Nov 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid