Most of simple microcontroller applications can be modelled through finite-state machine (FSM). This is a simple and powerful approach. Now the question is “how should I implement it?”. Using an object oriented language like C++ usually lead to the implementation of the state pattern. I had to implement it using C for an MSP430 microcontroller.
adevs Adevs (A Discrete EVent System simulator) is a C++ library for constructing discrete event simulations based on the Parallel DEVS and Dynamic DEVS (dynDEVS) formalisms. DEVS has been applied to the study of social systems, ecological systems, computer networks and computer architecture, military systems at the tactical and theater levels, and in many other […]
Test Driven Development I’ve discovered TDD reading “Agile Java: Crafting Code with Test-Driven Development” from Jeff Langr, and I’ve realized that this is the way to go, but sadly I’ve never applied this technique in real projects… Doing most of the programming in C and C++ specially for embedded systems, I’ve abandoned the idea of […]
Generic programming in C++ Generic programming can be defined as “programming with templates” and object-oriented programming as “programming with inheritance.” This is somewhat misleading because the core semantics of these two methodologies are only indirectly related to templates and inheritance. More formally, generic programming is based on parametric polymorphism, while object-oriented programming is based on […]