Repo storing my Rust exercises from Exercism.
My general strategy for completing exercises is thusly:
- Take a look at
README.mdto understand the problem, and attempt to build a mental model. I use the word attempt because sometimes it's just that – an attempt! - Use a TDD approach to write just enough code for the first, unignored, test to pass.
- Write the code in a way I believe is idiomatic, understandable and maintainable. Principally code is written for humans to understand.
- Remove the
#[ignore]from the next test - Rinse and repeat steps 2 through 4 until all tests pass
- Review the solution – apply small refactors now that I understand the problem better, and add comments.
- Whilst I may have further ideas on how to improve or perform larger refactors, I now submit the solution.
- Take a look at community solutions and incorporate what I learn into planning next steps.
- Produce zero, one, or more iterations.
I do occasionally submit a solution for further mentoring, asking for specific feedback on a particular approach or improvement.
Dual-licensed to be compatible with the Rust project.
Licensed under the Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0 or the MIT license http://opensource.org/licenses/MIT, at your option. This file may not be copied, modified, or distributed except according to those terms.