Project 4: The Music Library

Tristan Hawes
2 min readJul 15, 2021

I just want to start by saying that these past 2–3 weeks have been crazy. I am in the process of moving, and it is being tedious, and there was a good 4 day period of time where I had no internet connectivity for my coding work whatsoever. Thankfully I have moved all my necessities over at this point; my computer, my laptop, my charging stations, a mini fridge, and some cups. Bed? Eh, I’ll sleep eventually.

Ok, but to the topic at hand, the phase 4 project, where we used Ruby, React, and Rails to create an application that had multiple databases and utilized authentication in order to display only certain things to each user. The multiple databases is something that we have been doing for a while now, so that was nothing new, but the Authentication was fun to learn and utilize. Even if it did give me a bit of a challenge at first.

It took me a bit of time to understand that the controllers I was using with the models allowed me to use POST, GET, DELETE, and PATCH without needing to write too many lines for them. I also learned about sessions and how they are able to save the current user data between refreshes and shutdowns until the session is ended via logging out.

I also, happily, finally learned how to properly use useState and useEffect, as up until this point I had preferred just using classes for everything, but this feels much smoother. Many thanks to my Cohort Leader Nancy for assisting me when my sleep-addled brain was creating errors via either typos or overcomplicating the entire issue.

I will come back and fix this blog post to be a bit more technical once my sleep ratio is better than 2 hours of sleep in the past 57 hours. Apologies for my informality and lack of technical examples at this point, I will add them when I update this article, I just really need to sleep right now.

Signing off- TJ Hawes

--

--

Tristan Hawes
0 Followers

An up and coming programmer currently still learning the ropes from Flatiron.