Click here to Skip to main content
16,005,169 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
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 Pin
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 
GeneralRe: Enums are for wimps Pin
Leng Vang22-Feb-17 6:22
Leng Vang22-Feb-17 6:22 
GeneralRe: Enums are for wimps Pin
harold aptroot22-Feb-17 6:55
harold aptroot22-Feb-17 6:55 
GeneralRe: Enums are for wimps Pin
Munchies_Matt4-Mar-17 7:36
Munchies_Matt4-Mar-17 7:36 
GeneralRe: Enums are for wimps Pin
Brisingr Aerowing4-Mar-17 8:00
professionalBrisingr Aerowing4-Mar-17 8:00 
GeneralRe: Enums are for wimps Pin
Munchies_Matt4-Mar-17 8:42
Munchies_Matt4-Mar-17 8:42 
GeneralIt's not just code, I read the user manual... PinPopular
OriginalGriff9-Feb-17 8:37
mveOriginalGriff9-Feb-17 8:37 

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.