
A pattern bandage for messy virtual functions
In my previous article the mess of virtual functions, I show how easily they introduce bugs and propose language extensions to fix it. Several comments
In my previous article the mess of virtual functions, I show how easily they introduce bugs and propose language extensions to fix it. Several comments
Virtual functions, though generally a blessing, have a defect-prone dark side. No language, that I know of, provides a way to encode when the base
A new technology I’m trying has a curious domain-specific extension for OpenGL graphics. It introduces a block concept allowing for modular shader code. From a
It is important to write exception-safe code. A truly exception-safe function produces no side-effects when an error occurs. It returns to the caller with the
Sometimes the simplest of things have complex answers. In programming we like to think of simple data types, but in reality there aren’t any. While
In the article on “How Polymorphism Works: Part 1” we learned how to create virtual functions. The method which we chose has at one significant
Polymorphism: the core of object oriented programming. Most modern languages have some concept of interfaces, virtual functions, and classes. Though each language differs in details,
Signup to my mailing list to get notified of each article I publish.
Made with Elementor. Hosted with SiteGround. Domain from Netim.