Click here to Skip to main content
15,887,135 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: It's too complicated to understand Pin
Brisingr Aerowing28-Feb-17 5:19
professionalBrisingr Aerowing28-Feb-17 5:19 
GeneralRe: It's too complicated to understand Pin
jeron128-Feb-17 5:27
jeron128-Feb-17 5:27 
GeneralRe: It's too complicated to understand Pin
raddevus28-Feb-17 5:50
mvaraddevus28-Feb-17 5:50 
GeneralRe: It's too complicated to understand Pin
CDP180213-Mar-17 22:56
CDP180213-Mar-17 22:56 
GeneralRe: It's too complicated to understand Pin
KarstenK16-Mar-17 5:39
mveKarstenK16-Mar-17 5:39 
GeneralRe: It's too complicated to understand Pin
Bernhard Hiller28-Feb-17 21:51
Bernhard Hiller28-Feb-17 21:51 
GeneralRe: It's too complicated to understand Pin
Nathan Minier1-Mar-17 1:24
professionalNathan Minier1-Mar-17 1:24 
GeneralRe: It's too complicated to understand Pin
virang_212-Mar-17 17:13
virang_212-Mar-17 17:13 
C#
#region Note To Future Developer
/* NOTE TO FUTURE DEVELOPER */

/* You might look at below line of code and wonder why this is done this way. You are already
 checking for order type in download process. Business has done politician level backflip  on the last day of UAT
 on the original logic and wanted to check if they have created 2 COs with same job number and first is already processed
 next one needs to be regen. Download would have it as a new code.
 If this requirement was known from the beginning this logic would have been totally different.
 This logic makes download process pretty redundant as you may have called APIs when CO is scanned and get data from M3
 and do rest of the checking. */



#endregion


Zen and the art of software maintenance : rm -rf *

Maths is like love : a simple idea but it can get complicated.

GeneralRe: It's too complicated to understand Pin
MarkTJohnson6-Mar-17 4:31
professionalMarkTJohnson6-Mar-17 4:31 
GeneralRe: It's too complicated to understand Pin
Jon McKee6-Mar-17 7:59
professionalJon McKee6-Mar-17 7:59 
GeneralRe: It's too complicated to understand Pin
OriginalGriff6-Mar-17 8:15
mveOriginalGriff6-Mar-17 8:15 
GeneralHow (not) to use mstest Pin
Bernhard Hiller22-Feb-17 2:30
Bernhard Hiller22-Feb-17 2:30 
GeneralRe: How (not) to use mstest Pin
User 1013254622-Feb-17 4:32
User 1013254622-Feb-17 4:32 
GeneralRe: How (not) to use mstest Pin
Sander Rossel22-Feb-17 5:14
professionalSander Rossel22-Feb-17 5:14 
GeneralRe: How (not) to use mstest Pin
Rob Grainger4-Apr-17 5:26
Rob Grainger4-Apr-17 5:26 
GeneralEnums are for wimps PinPopular
Bernhard Hiller20-Feb-17 20:36
Bernhard Hiller20-Feb-17 20:36 
GeneralRe: Enums are for wimps Pin
Pete O'Hanlon20-Feb-17 22:55
mvePete O'Hanlon20-Feb-17 22:55 
GeneralRe: Enums are for wimps Pin
Bruce Patin22-Feb-17 4:54
Bruce Patin22-Feb-17 4:54 
GeneralRe: Enums are for wimps Pin
David O'Neil21-Feb-17 0:20
professionalDavid O'Neil21-Feb-17 0:20 
JokeRe: Enums are for wimps Pin
Daniel Pfeffer21-Feb-17 2:59
professionalDaniel Pfeffer21-Feb-17 2:59 
JokeRe: Enums are for wimps Pin
David O'Neil21-Feb-17 8:20
professionalDavid O'Neil21-Feb-17 8:20 
GeneralRe: Enums are for wimps Pin
PeejayAdams21-Feb-17 4:45
PeejayAdams21-Feb-17 4:45 
GeneralRe: Enums are for wimps Pin
den2k8821-Feb-17 5:17
professionalden2k8821-Feb-17 5:17 
GeneralRe: Enums are for wimps Pin
Jon McKee21-Feb-17 8:35
professionalJon McKee21-Feb-17 8:35 
GeneralRe: Enums are for wimps Pin
den2k8821-Feb-17 8:59
professionalden2k8821-Feb-17 8:59 

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.