News for hackers. Stuff that matters.
Re:Show HN: Crown – A flexible game engine written from scra... by dgfgfdagasdfgfa on Thursday June 22, 2017 @06:31AM (#14611229)
I mean it's kind of a smartass answer, but—don't fail during constructors. Move all possible code that can fail into an initialize method; check explicitly for allocation failure and/or put things on the stack instead of heap when possible; consider failing hard with a stack trace or core dump over catching and processing exceptions before (likely) failing anyway.

There are no comments on this comment yet.