Click here to Skip to main content
15,905,229 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: Again, where are cases 0 and 11 ? Pin
Dan Neely15-May-07 10:34
Dan Neely15-May-07 10:34 
GeneralRe: For loops and array Pin
Brent Lamborn5-Jun-07 11:02
Brent Lamborn5-Jun-07 11:02 
GeneralRe: For loops and array Pin
D1117-Jun-07 3:29
D1117-Jun-07 3:29 
GeneralRe: For loops and array Pin
Sylvester george20-Jun-07 3:03
Sylvester george20-Jun-07 3:03 
General_GC pointers [modified] Pin
syedhasan13-May-07 20:27
syedhasan13-May-07 20:27 
GeneralRe: _GC pointers Pin
Michael Dunn13-May-07 20:47
sitebuilderMichael Dunn13-May-07 20:47 
GeneralFormatting a "yyyyMMdd" string to "yyyy-MM-dd" in C# Pin
Vikram A Punathambekar10-May-07 20:31
Vikram A Punathambekar10-May-07 20:31 
GeneralRe: Formatting a "yyyyMMdd" string to "yyyy-MM-dd" in C# Pin
Pete O'Hanlon10-May-07 23:33
mvePete O'Hanlon10-May-07 23:33 
Arrgggghhhhh - that's horrible. Let's ignore the fact that the method name is camel cased and hit a particular arrogant nasty. Unless you have a really, really, really good reason (and by that I mean that you can prove to me that you know me much much better than I know myself), don't presume to know how to format a date that I will like. I hate it when people force these cultural settings on me, and I have refused to use some software in the past because it has presented regional variations on me that I don't like because they are downright confusing.Mad | :mad:

As an example, what date is this?

06/05/07

Is it the 6th May 2007, the 7th May 2006, the 5th of June 2007?

Deja View - the feeling that you've seen this post before.

GeneralRe: Formatting a "yyyyMMdd" string to "yyyy-MM-dd" in C# Pin
Mike Dimmick11-May-07 0:46
Mike Dimmick11-May-07 0:46 
GeneralRe: Formatting a "yyyyMMdd" string to "yyyy-MM-dd" in C# Pin
PIEBALDconsult11-May-07 6:01
mvePIEBALDconsult11-May-07 6:01 
GeneralRe: Formatting a "yyyyMMdd" string to "yyyy-MM-dd" in C# Pin
peterchen13-May-07 6:44
peterchen13-May-07 6:44 
GeneralRe: Formatting a "yyyyMMdd" string to "yyyy-MM-dd" in C# Pin
Mike Dimmick11-May-07 1:00
Mike Dimmick11-May-07 1:00 
GeneralRe: Formatting a "yyyyMMdd" string to "yyyy-MM-dd" in C# Pin
John R. Shaw12-May-07 12:10
John R. Shaw12-May-07 12:10 
GeneralRe: Formatting a "yyyyMMdd" string to "yyyy-MM-dd" in C# Pin
pbraun17-May-07 17:12
pbraun17-May-07 17:12 
GeneralRe: Formatting a "yyyyMMdd" string to "yyyy-MM-dd" in C# Pin
Sylvester george20-Jun-07 3:04
Sylvester george20-Jun-07 3:04 
Generalc++ constructor Pin
vimal_yet9-May-07 23:13
vimal_yet9-May-07 23:13 
GeneralRe: c++ constructor Pin
Kochise10-May-07 2:24
Kochise10-May-07 2:24 
GeneralRe: c++ constructor Pin
Rick York10-May-07 20:23
mveRick York10-May-07 20:23 
GeneralRe: c++ constructor Pin
Kochise10-May-07 21:46
Kochise10-May-07 21:46 
GeneralRe: c++ constructor Pin
XTAL25611-May-07 2:11
XTAL25611-May-07 2:11 
GeneralRe: c++ constructor Pin
Rick York11-May-07 14:39
mveRick York11-May-07 14:39 
GeneralRe: c++ constructor Pin
Paul Conrad13-May-07 9:19
professionalPaul Conrad13-May-07 9:19 
GeneralRe: c++ constructor Pin
Kochise13-May-07 21:03
Kochise13-May-07 21:03 
GeneralWhy do some people code at all? Pin
Optimus Chaos9-May-07 21:08
Optimus Chaos9-May-07 21:08 
GeneralRe: Why do some people code at all? Pin
BadKarma10-May-07 1:35
BadKarma10-May-07 1:35 

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.