So the journey begins!

Steve Carter
2 min readAug 9, 2020

--

For my CLI project, I created an NBA team info search. It uses balldontlie.io as an API to request data from. The CLI allows you to search for teams by their name. This project brought together all the knowledge from the lessons so far. It was interesting to see my strengths and weaknesses exposed.

First I created a notes folder and wrote out what I wanted my project to do this helped me say on track with my targets. Next, I created an “Executable” file which acts as a door to the program. Then I began to create my three classes API, CLI, Team. As I was building I was stubbing out my project one method at a time, this made debugging very simple. Once I had my shell built I then started bringing in my live API data. With my shell, I made sure the data I was using was similar to the API data to make the importing process seamless.

Once everything was up and running I started to look over my code. I began to refactor and looking to keep my code DRY. I played with code to see what work and what didn’t, just to seem how much Ruby will let me get away with. I found out quickly how a simple name change and break your whole project.

Overall this project was a lot of fun. I was extremely nervous coming into it but once things started to make sense and I had a clear path, it became therapeutic. A great starter project I would recommend for anyone first learning ruby.

--

--

Steve Carter
Steve Carter

No responses yet