Click here to Skip to main content
15,884,473 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.

 
JokeRe: Alcatraz ~ the tourist website Pin
AspDotNetDev13-Aug-12 5:50
protectorAspDotNetDev13-Aug-12 5:50 
GeneralRe: Alcatraz ~ the tourist website Pin
enhzflep13-Aug-12 6:12
enhzflep13-Aug-12 6:12 
GeneralRe: Alcatraz ~ the tourist website PinPopular
AspDotNetDev13-Aug-12 6:25
protectorAspDotNetDev13-Aug-12 6:25 
GeneralRe: Alcatraz ~ the tourist website Pin
enhzflep13-Aug-12 6:34
enhzflep13-Aug-12 6:34 
GeneralRe: Alcatraz ~ the tourist website Pin
Bernhard Hiller14-Aug-12 21:24
Bernhard Hiller14-Aug-12 21:24 
GeneralRe: Alcatraz ~ the tourist website Pin
Brisingr Aerowing15-Aug-12 15:03
professionalBrisingr Aerowing15-Aug-12 15:03 
GeneralConvertToReadableNumber PinPopular
Arpikusz8-Aug-12 21:57
Arpikusz8-Aug-12 21:57 
GeneralRe: ConvertToReadableNumber PinPopular
Shameel8-Aug-12 22:33
professionalShameel8-Aug-12 22:33 
A blind programmer who reinvented the wheel (in a pretty much bad manner) without ever looking at the rich API the underlying framework has to offer. The best thing about using framework provided APIs is that we can safely assume (to some extent) that the code is tried and tested for all scenarios.

Reminds me of this[^], had the programmer used Date.AddYears() method, it would have saved a lot of headaches for Microsoft's customers, lot of customers to Microsoft and most importantly, would not have cost him/her job. At least, the programmer could have done a sanity check on the resultant date to ensure that it is valid.
GeneralRe: ConvertToReadableNumber PinPopular
J4amieC9-Aug-12 0:43
J4amieC9-Aug-12 0:43 
GeneralRe: ConvertToReadableNumber Pin
Brisingr Aerowing9-Aug-12 14:46
professionalBrisingr Aerowing9-Aug-12 14:46 
GeneralRe: ConvertToReadableNumber Pin
bojanh13-Aug-12 4:14
bojanh13-Aug-12 4:14 
GeneralRe: ConvertToReadableNumber Pin
Bernhard Hiller9-Aug-12 0:55
Bernhard Hiller9-Aug-12 0:55 
GeneralRe: ConvertToReadableNumber Pin
Eddy Vluggen9-Aug-12 1:06
professionalEddy Vluggen9-Aug-12 1:06 
GeneralRe: ConvertToReadableNumber Pin
Pete O'Hanlon9-Aug-12 1:47
mvePete O'Hanlon9-Aug-12 1:47 
JokeRe: ConvertToReadableNumber Pin
dan!sh 9-Aug-12 2:04
professional dan!sh 9-Aug-12 2:04 
GeneralRe: ConvertToReadableNumber Pin
all_in_flames13-Aug-12 5:24
professionalall_in_flames13-Aug-12 5:24 
GeneralRe: ConvertToReadableNumber Pin
JeremyBob13-Aug-12 3:17
JeremyBob13-Aug-12 3:17 
GeneralRe: ConvertToReadableNumber Pin
Wenff13-Aug-12 3:27
professionalWenff13-Aug-12 3:27 
GeneralRe: ConvertToReadableNumber Pin
Sasha Laurel13-Aug-12 5:14
Sasha Laurel13-Aug-12 5:14 
GeneralSecurity - You're doing it wrong! PinPopular
Andrei Straut8-Aug-12 3:56
Andrei Straut8-Aug-12 3:56 
GeneralRe: Security - You're doing it wrong! Pin
Brisingr Aerowing8-Aug-12 15:15
professionalBrisingr Aerowing8-Aug-12 15:15 
JokeRe: Security - You're doing it wrong! Pin
Bernhard Hiller8-Aug-12 21:42
Bernhard Hiller8-Aug-12 21:42 
JokeRe: Security - You're doing it wrong! Pin
Andrei Straut8-Aug-12 23:05
Andrei Straut8-Aug-12 23:05 
GeneralRe: Security - You're doing it wrong! Pin
Bernhard Hiller9-Aug-12 0:49
Bernhard Hiller9-Aug-12 0:49 
GeneralRe: Security - You're doing it wrong! Pin
Andrei Straut9-Aug-12 1:15
Andrei Straut9-Aug-12 1:15 

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.