Click here to Skip to main content
15,569,644 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 3:27
mvaraddevus19-Mar-18 3:27 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
Richard Deeming19-Mar-18 3:46
mveRichard Deeming19-Mar-18 3:46 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
raddevus19-Mar-18 4:00
mvaraddevus19-Mar-18 4:00 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
raddevus19-Mar-18 4:08
mvaraddevus19-Mar-18 4:08 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
Sander Rossel19-Mar-18 8:17
professionalSander Rossel19-Mar-18 8:17 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
BillWoodruff19-Mar-18 18:54
professionalBillWoodruff19-Mar-18 18:54 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
Sander Rossel19-Mar-18 22:28
professionalSander Rossel19-Mar-18 22:28 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
Sentenryu29-Mar-18 2:41
Sentenryu29-Mar-18 2: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 10:44
professionalDr.Walt Fair, PE12-Apr-18 10:44 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
Bernhard Hiller18-Mar-18 23:42
Bernhard Hiller18-Mar-18 23:42 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
raddevus19-Mar-18 3:31
mvaraddevus19-Mar-18 3:31 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
Super Lloyd19-Mar-18 3:29
Super Lloyd19-Mar-18 3:29 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
raddevus19-Mar-18 3:32
mvaraddevus19-Mar-18 3:32 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
Super Lloyd19-Mar-18 3:42
Super Lloyd19-Mar-18 3:42 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
Richard Deeming19-Mar-18 3:44
mveRichard Deeming19-Mar-18 3:44 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
Super Lloyd19-Mar-18 3:48
Super Lloyd19-Mar-18 3:48 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
raddevus19-Mar-18 4:56
mvaraddevus19-Mar-18 4:56 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
Eddy Vluggen19-Mar-18 5:09
professionalEddy Vluggen19-Mar-18 5:09 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
raddevus19-Mar-18 5:13
mvaraddevus19-Mar-18 5:13 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
Eddy Vluggen19-Mar-18 5:18
professionalEddy Vluggen19-Mar-18 5:18 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
raddevus19-Mar-18 6:46
mvaraddevus19-Mar-18 6:46 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
Eddy Vluggen19-Mar-18 7:16
professionalEddy Vluggen19-Mar-18 7:16 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
raddevus19-Mar-18 8:23
mvaraddevus19-Mar-18 8:23 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
Eddy Vluggen19-Mar-18 9:03
professionalEddy Vluggen19-Mar-18 9:03 
GeneralOFFTOPIC Pin
Nelek19-Mar-18 8:00
protectorNelek19-Mar-18 8: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.