From d68f4ae0d2b744e1401e3bf39868876103ef8d2b Mon Sep 17 00:00:00 2001 From: mo Date: Sun, 2 Jun 2019 22:12:11 -0600 Subject: provide some discussion --- src/Q1/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/Q1/README.md b/src/Q1/README.md index 14c7bdd..f30290b 100644 --- a/src/Q1/README.md +++ b/src/Q1/README.md @@ -158,3 +158,18 @@ Bye ``` 5. Discussion: + +I started implementing this exercise by creating a class that matches +the supplied class diagram in the assignment. I then started writing +testing using `junit` to flush out the expected API. I enjoy practicing +test driven development so writing my tests first helps me to explore +the target code from the perspective of the client and makes it easier +to refactor the code as I learn new techniques or optimizations. + +I only wrote happy path tests using `junit`, but this was enough to put +together a running console application. + +I prefer to automate things as much as I can, so I chose to use maven +to create the default folder structure and some maven plugins to run +junit and a plugin to automatically format the code as per the Google +java code style guidelines. -- cgit v1.2.3