Manoj Rao bio photo

Manoj Rao

Your Average Common Man

Email Twitter Github

Topics:

Inheritance Is Not Always Good

Watch Sean Parent’s “Inheritance is the Root of Evil” where Sean eloquently convinces the listener that inheritance can be avoided where possible. It’s also oddly satisfying to watch Sean Parent’s code snippets.

A modern callback

There are mulitutde of options to mess up the implementation, usually done by, adding layers upon layers of abstraction disguised as abstract classes with pure virtual methods. You can do away with it.

std::variant to the rescue

Diverse unrelated classes/objects can be bunched together for a single purpose after which these objects are free to go on their own.

TODO: Needs expansion

Really these are selfishly put up as notes for myself. I will fill these out shortly.

  • Use std::variant as frequently as possible.
  • Hide behind std::any when possible

My Podcast!

If you like topics such as this then please consider subscribing to my podcast. I talk to some of the stalwarts in tech and ask them what their favorite productivity hacks are:

Available on iTunes Podcast

Visit Void Star Podcast’s page on iTunes Podcast Portal. Please Click ‘Subscribe’, leave a comment.

Get it iTunes