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

 
GeneralHow not to do transaction processing Pin
Rob Grainger9-Apr-14 6:12
Rob Grainger9-Apr-14 6:12 
GeneralRe: How not to do transaction processing Pin
Duncan Edwards Jones9-Apr-14 7:13
professionalDuncan Edwards Jones9-Apr-14 7:13 
GeneralRe: How not to do transaction processing Pin
Rob Grainger10-Apr-14 4:12
Rob Grainger10-Apr-14 4:12 
GeneralRe: How not to do transaction processing Pin
W Balboos, GHB11-Apr-14 1:14
W Balboos, GHB11-Apr-14 1:14 
GeneralRe: How not to do transaction processing Pin
clawton9-Apr-14 12:30
clawton9-Apr-14 12:30 
GeneralRe: How not to do transaction processing Pin
BobJanova9-Apr-14 23:39
BobJanova9-Apr-14 23:39 
GeneralRe: How not to do transaction processing Pin
Rob Grainger10-Apr-14 4:14
Rob Grainger10-Apr-14 4:14 
RantI just can't take it no more! Pin
Super Lloyd9-Apr-14 0:10
Super Lloyd9-Apr-14 0:10 
New PM!
He has strong (& abysmal) opinions about development. That I just can't follow, that's bad.. Unsure | :~
What to do!?!


Some example

All business class have all private constructor and private setter properties.
They have a public static Create() method (mind you it's not a factory method, only create instance of that particular class)
To set properties (when we pass the business object to the persistence layer) we use Automapper, which override the private attribute using reflection

This afternoon we spend 2 hours to refactor 20 lines of code (in 2 method) that I had written (it was working) We had to stop because of time, but 3 classes, 6 methods, 200 lines of code later the new "improved" version was still not operational (improved version we have to duplicate at all time)

And mind you this new "improved" version is not reusable. Only improve these particular 20 lines. I have to DUPLICATE the improved version for every single method I write... I just CAN'T DO IT! Cry | :(( Mad | :mad: WTF | :WTF: Dead | X|
My programming get away... The Blog...
DirectX for WinRT/C# since 2013!
Taking over the world since 1371!

GeneralRe: I just can't take it no more! Pin
Duncan Edwards Jones9-Apr-14 0:20
professionalDuncan Edwards Jones9-Apr-14 0:20 
GeneralRe: I just can't take it no more! Pin
Sentenryu9-Apr-14 0:23
Sentenryu9-Apr-14 0:23 
GeneralRe: I just can't take it no more! Pin
Duncan Edwards Jones9-Apr-14 0:42
professionalDuncan Edwards Jones9-Apr-14 0:42 
GeneralRe: I just can't take it no more! Pin
Sentenryu9-Apr-14 1:13
Sentenryu9-Apr-14 1:13 
GeneralRe: I just can't take it no more! Pin
Duncan Edwards Jones9-Apr-14 1:21
professionalDuncan Edwards Jones9-Apr-14 1:21 
GeneralRe: I just can't take it no more! Pin
Super Lloyd9-Apr-14 15:11
Super Lloyd9-Apr-14 15:11 
GeneralRe: I just can't take it no more! Pin
Sentenryu10-Apr-14 0:43
Sentenryu10-Apr-14 0:43 
GeneralRe: I just can't take it no more! PinPopular
ZurdoDev9-Apr-14 1:24
professionalZurdoDev9-Apr-14 1:24 
GeneralRe: I just can't take it no more! Pin
PIEBALDconsult9-Apr-14 3:15
mvePIEBALDconsult9-Apr-14 3:15 
GeneralRe: I just can't take it no more! Pin
Super Lloyd9-Apr-14 15:12
Super Lloyd9-Apr-14 15:12 
GeneralRe: I just can't take it no more! Pin
V.11-Apr-14 0:00
professionalV.11-Apr-14 0:00 
GeneralRe: I just can't take it no more! Pin
Super Lloyd12-Apr-14 19:28
Super Lloyd12-Apr-14 19:28 
GeneralRe: I just can't take it no more! Pin
Super Lloyd12-Apr-14 19:30
Super Lloyd12-Apr-14 19:30 
GeneralRe: I just can't take it no more! Pin
V.12-Apr-14 20:17
professionalV.12-Apr-14 20:17 
GeneralThis did not serve it's intended purpose Pin
0bx3-Apr-14 4:04
0bx3-Apr-14 4:04 
GeneralRe: This did not serve it's intended purpose Pin
OriginalGriff3-Apr-14 4:08
mveOriginalGriff3-Apr-14 4:08 
GeneralRe: This did not serve it's intended purpose Pin
mikepwilson3-Apr-14 4:26
mikepwilson3-Apr-14 4:26 

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.