One of the frequent questions I come across every now and then is, when do I use a void pointer? or what are some practical examples of void pointer?
[Read More]
Dynamic Interface Models
For Embedded C
Let’s say you are designing a home automation system. One part of that is LightScheduler. During development the requirement said to support one technology. Now, the product manager and hardware designers have refined some of the requirements. The system must be able to handle different light controlling technologies in one...
[Read More]
Abstract Data Type in C
Barbara Liskov, an American computer scientist, defines ADTs as follows:
[Read More]
SOLID Design Principle
For Embedded C!
To build good designs in C, everyone should follow SOLID design principles. These five design principles were described in Bob Martin’s book (Agile Software Development, Principles, Patterns, and Practices). SOLID stands for:
[Read More]
Project Euler - Problem 142
In an interview I was asked to solve Project Euler: Problem 142 using Python. Here is the problem statement:
[Read More]