Recently I started contributing to an open source project and learned along the way some new ruby methods that are used to group together a collection of ruby objects.
One of the data structures I recently learned about is linked lists. Linked lists are a bunch of nodes that besides for containing its own data reference the next node in the list. We start off with the head node and move on to the next node using the head node. From the second node, we can access its own data and the next node in the list. This cycle continues until we reach a node that its next node points to null indicating that we have reached the end of the linked list.
A recent feature I added to my react app was a popup panel that would appear when the user clicks on a button in the menu bar and would disappear when the user clicks outside of the popup panel.
For my react app, I built a rails api for persisting flight reservations. I set up the database relations in a way that a reservation would belong to a flight, a flight would belong to a route, and a route would belong to an arrival and departure airport: