programming
Type Erasure
Recently I came across a programming pattern that has been there for a while called Type Erasure Design Pattern. It has been very useful if abstracting types across multiple layers. I found it very useful when designing a graphics engine that we are creating at work.
Virtual Functions III
From the previous post you would’ve understood that declaring a pure virtual function converts a class to an abstract class. This opens numerous doors and gives us infinite options for structuring our project. We can get rid of cluttered or messed up code flow and enforce elegance to the code!
Virtual Functions II
In the previous post we saw one basic use-case of a virtual function. Here is another awesome use case involving the virtual keyword.