TDD for Embedded C
2018-10-29 11:53:39 UTC
Most useful learnings:
I learned the practical approach to TDD. A hands on approach on how to implement TDD in real code examples.
Concepts v exercises:
Presentation v discussion:
For the course to be more effective, a smaller size group would help.
For our case, it would have helped to see some examples of DSP code.
The slides as a pdf are hard to read on a monitor, it would help to have full size 1 slide per page documentation or a pptx.
Yes, I can start placing unit tests and developing code in this fashion (starting by the tests and then implementing the code that will fulfill the required functionality to pass the test).
Challenges to applying:
It will be difficult to put in place this TDD approach for our toolset as we have our own c/c++ compiler and different data types from the standard c. We already work in a way where we develop as standard c for multi-platform support but some blocks are written specifically for our DSP platform for improved performance. In this instance, the existing unit test frameworks do not apply immediately...
I do see the advantages of TDD for increasing coverage and code quality overall. I do wonder though, why is there such a big controversy around this way of working and what are the other alternatives and what's the breakdown across industries of what methodology to follow.
Legacy code workshop:
Recommend to others: