- A simple CLI lab that requires no logic, only interpolation.
- It demonstrates the structure of a CLI lab and having a bin use a method defined in a library.
-
Describe Overview, building the first part of a complex military program. The first thing you need to do is ask the user for their name. After taking the user's name, the program should greet the user with "Hello, <user's name>. How are you doing?."
-
Screenshots / video of working program.
-
Structure of program. Walk user through what code goes where, the lib and the bin.
-
Have them first build the greeting method and use the test suites to make that pass.
-
They should then build the program in
greet
to load that file with require_relative. -
Greet should output a hello and ask their name.
-
It should take input.
-
They need to use that input in greet.
-
Show them how to walk through the errors in the CLI spec.
Joshua Wargames clip. https://www.youtube.com/watch?v=7R0mD3uWk5c