Do you have some time to do a simple programming problem in C or C++ for my research?more...
I want to see how C and C++ programmers solve a simple programming problem, CircularBuffer. There are no tools to set up. You will work on my cyber-dojo system. It has a build environment and a simple IDE.
Here are some of the instructions you will find when you do the exercise
Objective --------- Write a CircularBuffer and make sure it works. Requirements ------------ * A CircularBuffer is sized during create. * It stores integers. * It is FIFO. * It can report its total capacity * It can report if it is empty * It can report if it is full * Putting to a full CircularBuffer * loses no prior values * returns false * Getting from an empty CircularBuffer returns a default value provided during create function. For this exercise, do not worry about: -------------------------------------- * Null pointers * Concurrency * Memory allocation failures CircularBuffer Diagram ---------------------- www.wingman-sw.com/files/cyber-dojo/CircularBuffer.pdf Starting point -------------- The CircularBuffer interface is defined in CircularBuffer.h. You must develop your implementation to that interface. The architects said so.
If you are interested, please email me for a link to your exercise using address 'research AT wingman-sw DOT com'.
Let me know if you usually use a unit test framework. I'll have one there ready for you to use. If you do not use a unit test framework, no worries. You'll test the code as you see fit.
Published: January 05, 2018
Announcing James Grenning fall conferences and training offerings in Denmark, Sweden, Norway, Netherlands, and San Francisco.
James Grenning will deliver the keynote talk and a technical talk at Agile on the Beach in lovely Cornwall, UK. July 6-7, 2017
James Grenning will deliver the keynote talk and a two-day public TDD for Embedded C/C++ training course at the Oslo Continuous Delivery and DevOps Conference.
James Grenning will be giving the keynote talk at Agile Saturday in Tallin Estonia, May 6, 2017. A public training course is scheduled for May 8-9, 2017.more...
James is the author of Test-Driven Development for Embedded C.