Click here to Skip to main content
15,566,394 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 2:18
professionalSlacker00726-Mar-18 2:18 
GeneralRe: Why use the correct exception type? Pin
Bernhard Hiller26-Mar-18 3:04
Bernhard Hiller26-Mar-18 3:04 
GeneralRe: Why use the correct exception type? Pin
F-ES Sitecore26-Mar-18 4:22
professionalF-ES Sitecore26-Mar-18 4:22 
GeneralRe: Why use the correct exception type? Pin
Slacker00726-Mar-18 7:51
professionalSlacker00726-Mar-18 7:51 
GeneralRe: Why use the correct exception type? Pin
Tim Carmichael27-Mar-18 7:44
Tim Carmichael27-Mar-18 7:44 
GeneralRe: Why use the correct exception type? Pin
S Douglas28-Mar-18 10:10
professionalS Douglas28-Mar-18 10:10 
GeneralRe: Why use the correct exception type? Pin
Kirill Illenseer28-Mar-18 23:40
Kirill Illenseer28-Mar-18 23:40 
GeneralRe: Why use the correct exception type? Pin
Sentenryu29-Mar-18 2:28
Sentenryu29-Mar-18 2: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 14:28
professionalChristiaan van Bergen3-Apr-18 14:28 
GeneralInteresting / strange code picked up from pluralsight training (functional programming) Pin
raddevus18-Mar-18 14:19
mvaraddevus18-Mar-18 14:19 
GeneralRe: Interesting / strange code picked up from pluralsight training (functional programming) Pin
Sander Rossel18-Mar-18 22:15
professionalSander Rossel18-Mar-18 22:15 
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 
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 

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.