TDD for Embedded C
2021-10-25 17:59:02 UTC
Most useful learnings:
The test doubles module. Just being able to create a test double from a precompiled library and have the linker "sew in" the test double was pretty amazing.
Concepts v exercises:
Presentation v discussion:
Might be interesting to make note of integration tests (a segue to another course perhaps?)
It would be interesting to apply SOLID principles to embedded C design.
I don't think they can, really. They are applicable to embedded C and are just the right size to fit into the training timeframe. Most importantly the exercises emphasize the focus on the TDD pattern.
David Cozens taught the course very well. I had a lot of questions and he was able to answer them on the spot or from the parking lot at a later time.
Bring it on!
I can technically start tomorrow, but we are in the requirements phase for the project, so a little premature for testing just yet.
Truth be told, I've been doing TDD for years and I still learned valuable techniques as did my new colleague.
Challenges to applying:
Our organization is very welcoming to TDD. I think the heritage of our business is to acquire products (and therefore code-bases) which do not have tests. I would find value in learning to test with legacy code bases.
The other challenge may be in, as David put it, helping other developers convince themselves whether TDD is worthwhile or not through subsequent training which I will provide to our team. I have no idea why someone would not do TDD after they have been through this training.
I'd just like to thank James Grenning and David Cozens for being flexible to split up the hands-on training across a M-W-F schedule to accomodate our timezone span. It was great.
Legacy code workshop:
Recommend to others: