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++ 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


Concurrency in C++: Sharing Data Between Threads Using Mutex
In my last article C++: Introduction to Concurrency , I've gone through fundaments of concurrency and it's benefits in terms of improving...

Sunil Kumar Yadav
Sep 22, 20245 min read


C++: Introduction to Concurrency
Concurrency in C++ is a powerful feature that enables developers to create applications capable of performing multiple tasks...

Sunil Kumar Yadav
Sep 18, 20246 min read


Python Decorators Simplified
Decorators are very powerful tool for Python programmer. It allows Python programmers to modify the behavior of a function or a class....

Sunil Kumar Yadav
Jul 20, 20243 min read


Overview Of Clock Source In ARM Cortex-M
Time isn't the main thing. It's the only thing! - Miles Davis Microcontrollers rely on their clock source, which is essential...

Sunil Kumar Yadav
Oct 28, 20237 min read


Adaptor: Must Know Design Pattern (7/7)
In my last article, I discussed the Strategy pattern, which falls under the Behavioural Design Pattern. The Adaptor pattern is classified...

Sunil Kumar Yadav
Oct 22, 20232 min read


Strategy: Must Know Design Pattern (6/7)
The Strategy Pattern is a design pattern in object-oriented programming that falls under the category of behavioral patterns. It is used...

Sunil Kumar Yadav
Oct 21, 20233 min read


Iterator: Must Know Design Pattern (5/7)
The Iterator Pattern is a behavioral design pattern that provides a way to access the elements of an aggregate object (a collection)...

Sunil Kumar Yadav
Oct 21, 20233 min read


Observer: Must Know Design Pattern (4/7)
In my last article, I discussed the Singleton pattern, which falls under the Creational Design Pattern. The Observer pattern is...

Sunil Kumar Yadav
Oct 20, 20234 min read


Singleton: Must Know Design Pattern (3/7)
Singleton is a part of Gang of Four design pattern and it is categorized under creational design patterns. In this article, we will delve...

Sunil Kumar Yadav
Oct 2, 20233 min read


Builder: Must Know Design Pattern (2/7)
In my last article, I discussed the Factory design pattern. Key disadvantages of the Factory method patterns were 1. the high number of...

Sunil Kumar Yadav
Oct 2, 20232 min read


Factory Method: Must Know Design Pattern (1/7)
Factory pattern is a type of Creational Design Pattern. Factory patterns define an interface for creating an object, but let subclasses...

Sunil Kumar Yadav
Sep 24, 20232 min read


Design Pattern: Overview of Reusable Object-Oriented Software
In software engineering, a software design pattern is a general, reusable solution to a commonly occurring problem within a given context...

Sunil Kumar Yadav
Sep 17, 20232 min read


Operation Mode and Access Level in ARM Cortex M
In our last article, we've gone through a brief overview of ARM Cortex M series microcontrollers and using the STM32 development board...

Sunil Kumar Yadav
Aug 28, 20234 min read


What is Serial Wire Debug?
Serial Wire Debug (SWD) is a lightweight debug protocol from ARM. Unlike traditional JTAG which required 5-pin, SWD required only 2-pin...

Sunil Kumar Yadav
Dec 25, 20221 min read


S.O.L.I.D. Principles of Object-Oriented Programming
The SOLID principles were introduced by Robert C. Martin also known as "Uncle Bob" in his 2000 paper "Design Principles and Design...

Sunil Kumar Yadav
Dec 4, 20227 min read
Home: Subscribe
Home: Contact
bottom of page