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

Bring Your Own Cause

If you think any info here has remotely helped you consider dropping a penny for this cause, just click me . You can visit https://www.bbc.com/news/world-asia-india-52672764 Unfortunately, there are plenty of sad things happening all over the world, if you have a different cause or charity you'd rather support please do. And if you did make a donation, please drop a note to me (annotated) or leave a comment here (anonymous is OK!) and I will use that as motivation to write more useful content here.

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