Click here to Skip to main content
15,887,683 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: Interesting / strange code picked up from pluralsight training (functional programming) Pin
raddevus19-Mar-18 2:27
mvaraddevus19-Mar-18 2:27 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
Richard Deeming19-Mar-18 2:46
mveRichard Deeming19-Mar-18 2:46 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
raddevus19-Mar-18 3:00
mvaraddevus19-Mar-18 3:00 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
raddevus19-Mar-18 3:08
mvaraddevus19-Mar-18 3:08 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
Sander Rossel19-Mar-18 7:17
professionalSander Rossel19-Mar-18 7:17 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
BillWoodruff19-Mar-18 17:54
professionalBillWoodruff19-Mar-18 17:54 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
Sander Rossel19-Mar-18 21:28
professionalSander Rossel19-Mar-18 21:28 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
Sentenryu29-Mar-18 1:41
Sentenryu29-Mar-18 1:41 
I just ask that, if you've no state, make the damn method static.

The amount of times I had to rewrite stuff because people fumbled around with instances of a stateless object and later added state to that object, breaking half the code depending on execution order is uncanny.

It's fine to be an instance method if you class has an immutable state. At least nobody would come and remove a const or readonly from a field without the knowledge that it would break everything... I hope...
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
Dr.Walt Fair, PE12-Apr-18 9:44
professionalDr.Walt Fair, PE12-Apr-18 9:44 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
Bernhard Hiller18-Mar-18 22:42
Bernhard Hiller18-Mar-18 22:42 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
raddevus19-Mar-18 2:31
mvaraddevus19-Mar-18 2:31 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
Super Lloyd19-Mar-18 2:29
Super Lloyd19-Mar-18 2:29 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
raddevus19-Mar-18 2:32
mvaraddevus19-Mar-18 2:32 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
Super Lloyd19-Mar-18 2:42
Super Lloyd19-Mar-18 2:42 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
Richard Deeming19-Mar-18 2:44
mveRichard Deeming19-Mar-18 2:44 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
Super Lloyd19-Mar-18 2:48
Super Lloyd19-Mar-18 2:48 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
raddevus19-Mar-18 3:56
mvaraddevus19-Mar-18 3:56 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
Eddy Vluggen19-Mar-18 4:09
professionalEddy Vluggen19-Mar-18 4:09 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
raddevus19-Mar-18 4:13
mvaraddevus19-Mar-18 4:13 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
Eddy Vluggen19-Mar-18 4:18
professionalEddy Vluggen19-Mar-18 4:18 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
raddevus19-Mar-18 5:46
mvaraddevus19-Mar-18 5:46 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
Eddy Vluggen19-Mar-18 6:16
professionalEddy Vluggen19-Mar-18 6:16 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
raddevus19-Mar-18 7:23
mvaraddevus19-Mar-18 7:23 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
Eddy Vluggen19-Mar-18 8:03
professionalEddy Vluggen19-Mar-18 8:03 
GeneralOFFTOPIC Pin
Nelek19-Mar-18 7:00
protectorNelek19-Mar-18 7:00 

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.