top of page



Welcome to EmbeddedHow
Home: Welcome
Home: Blog2
Search


Smart Pointers: Understanding Ownership, Memory Overhead and Common Pitfalls
C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows your whole leg off. — Bjarne Stroustrup Smart pointers are one of the most useful additions introduced in modern C++. Most developers know that smart pointers help prevent memory leaks by automatically releasing dynamically allocated objects. However, understanding the ownership model and memory overhead of different smart pointers is equally important, especially in embedd
Sunil Kumar Yadav
Jun 75 min read


C++ Upcasting and Downcasting Simplified
Inheritance allows us to treat derived class objects as base class objects. This capability forms the foundation of runtime polymorphism in C++. While working with inheritance, you will often come across the terms Upcasting and Downcasting. Introduction In this article, we'll understand what they mean, when they are useful, and why one is generally considered safer than the other. Let's start with a simple inheritance hierarchy. #include <iostream> class Animal { public: vir
Sunil Kumar Yadav
Jun 64 min read


C++ Object Slicing Simplified
Object-oriented programming and polymorphism are fundamental concepts in C++. Most developers learn that virtual functions allow derived classes to provide specialized implementations while interacting through a base class interface. However, there is a subtle issue that can silently break polymorphism: Object Slicing. In this article, we'll understand what object slicing is, why it happens, and how to avoid it using a few simple examples. What is Object Slicing? Object slici
Sunil Kumar Yadav
May 313 min read


How to Prepare for Technical Interviews: A Practical Guide for Engineers
Preparing for technical interviews can feel overwhelming. Many engineers—whether fresh graduates or professionals with a few years of...
Sunil Kumar Yadav
Aug 25, 20254 min read


From Chaos to Clarity: Lessons from Leading Diverse Tech Teams as a First-Time Tech Lead
When your team is learning, you lead by doing first—and explaining right after... Introduction: Wearing Many Hats Stepping into the role...
Sunil Kumar Yadav
Jul 6, 20255 min read


GPU: Getting Started With CUDA
What is GPU? A graphics processing unit (GPU) is an electronic circuit that processes images and accelerates the rendering of 3D computer...
Sunil Kumar Yadav
Oct 4, 20245 min read
Home: Subscribe
Home: Contact
bottom of page