Step 3 - Coding: calculator
Following Test-Driven Development (TDD) principles, we'll now code the software for the calculator software system.
For the purpose of demonstration, we use different programming languages to achieve the same goal.
Step 3.1 - Coding in C#: calculator
Step 3.2 - Coding in Java: calculator
GitHub
As we created a repository called 'calculator' at the start of our use case, we will now create a branch for our code in Java, as follows.
cd calculator
git branch java
Next, change our current branch to the 'java' branch.
git checkout java
From here on we will add and edit code for java in this java branch, in a newly created directory called java.
mkdir java
cd java
more to follow...