A Command Line Interface (CLI) program is one that interfaces with a user via their computer terminal. The files are communicating via ./environment.rb file and the program is executed using bin/run to create an instance of the CLI class and call the #start method on that new instance. The program prompts the user for input and loops through the program based on the input until exiting. The CLI program I’ve built displays properties of countries that speak Spanish and creates a 3 question quiz on country capitals. The Ruby Gems utilized for this program are ‘pry’ for debugging, ‘net/http’ to call API and receive data response, ‘json’ to parse the response into a readable array, and ‘colorize’ to add color to terminal output.
Since I was young, I’ve always loved to press buttons. If there was an idle keyboard at a store, you can bet I was trying to sneak over and press a button on it. I loved computer classes in school; practicing typing, learning the Microsoft Office applications, I took an interest in it. I didn’t get a taste of coding until I went to college. My major was Management Information Systems and starting with an Intro to Java I didn’t really get into it. It could have been the 8:00am class, but nothing was really sticking with me. I later had to take a database class where we got into MySQL and this peaked my interest more. Maybe it was the organizational aspect of building tables and configuring table relationships that I could visualize more.