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: Why use the correct exception type? Pin
Slacker00726-Mar-18 1:18
professionalSlacker00726-Mar-18 1:18 
GeneralRe: Why use the correct exception type? Pin
Bernhard Hiller26-Mar-18 2:04
Bernhard Hiller26-Mar-18 2:04 
GeneralRe: Why use the correct exception type? Pin
F-ES Sitecore26-Mar-18 3:22
professionalF-ES Sitecore26-Mar-18 3:22 
GeneralRe: Why use the correct exception type? Pin
Slacker00726-Mar-18 6:51
professionalSlacker00726-Mar-18 6:51 
GeneralRe: Why use the correct exception type? Pin
Tim Carmichael27-Mar-18 6:44
Tim Carmichael27-Mar-18 6:44 
GeneralRe: Why use the correct exception type? Pin
S Douglas28-Mar-18 9:10
professionalS Douglas28-Mar-18 9:10 
GeneralRe: Why use the correct exception type? Pin
Kirill Illenseer28-Mar-18 22:40
Kirill Illenseer28-Mar-18 22:40 
GeneralRe: Why use the correct exception type? Pin
Sentenryu29-Mar-18 1:28
Sentenryu29-Mar-18 1:28 
I mean, not really? COM files have a size limit because they behave different from EXE files (or rather, EXE files behave different, since COM is the original). When you try to load a COM file that exceeds this limit you're really running out of memory, before the code can even start to be executed.

Could they read the file size and predict that? they couldn't (or just didn't, hard to say with stuff this old) when COM files where actually being used, so the current included loaders also don't. You don't really want to mess with those kinds of legacy systems, specially when they are useless for current developments and the alternative doesn't share the concerns.

COM file - Wikipedia
GeneralRe: Why use the correct exception type? Pin
Christiaan van Bergen3-Apr-18 13:28
professionalChristiaan van Bergen3-Apr-18 13:28 
GeneralInteresting / strange code picked up from pluralsight training (functional programming) Pin
raddevus18-Mar-18 13:19
mvaraddevus18-Mar-18 13:19 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
Sander Rossel18-Mar-18 21:15
professionalSander Rossel18-Mar-18 21:15 
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 
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 

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.