DePippo Blog

Chronicling my adventures in code

Enhancing a Rails App with Javascript

A couple months ago, I built a Rails app for viewing and submitting vegan recipes. It was a perfectly nice little app, built in fairly standard CRUD fashion, but because it was made entirely with Ruby/HTML, it lacked dynamic features. That is to say, every time a link was clicked or a form submitted, a page refresh was necessary. I recently revisited this app with the intention of making it more dynamic, by adding a layer of Javascript functionality. It was an interesting challenge to return to my old code – code I had originally written without the expectation that I would be adding significant new features in the future. When coding a particular resource’s show view, for example, I wasn’t anticipating how I would later render this same information via a JSON API.

Rails Project

For my Rails Assessment project, I set out to build an app for sharing vegan recipes. (Technically there’s nothing stopping you from uploading non-vegan recipes; as of now, there are no validations in place to ensure that all ingredients are vegan. Maybe a futue update!)

Product Reviews - Sinatra Assessment Project

The Sinatra Assessment Project on tasks students with creating a CRUD (Create Read Update Delete) app. I wasn’t initially sure just what sort of content I wanted my app to manage, so I described the parameters of the project to my wife and asked her what she might use this type of app for. She suggested something to keep track of her collection of beauty products, so that is what I set out to build.

Pitchfork Reviews - A CLI Data Gem Project

At the end of the Object Oriented Ruby unit on, we are given the task of creating an original RubyGem with a Command Line Interface. More specifically, the gem must scrape the web for data. Once presented with this challenge, I started thinking about all the websites I frequent. Before long, I came to my most trusted resource for music reviews, Pitchfork Music is a huge part of my life, and I love discovering new albums. Perhaps I could build a gem that would pull all the latest album reviews from Pitchfork into a simple CLI? Sounded fun and doable enough, so that’s what I set out to do.

Beginning my adventure in coding

Last year, I made the decision to pursue a career in software development, a rather significant shift for me. In college, I had studied music theory and composition. I was and remain passionate about music, but having worked in the world of classical music administration for nearly a decade, I felt it was time to explore other options. I enjoyed my work and met some wonderful people along the way, but I realized it was simply not where I wanted to be long-term. I was looking for a new direction that would be challenging and rewarding. And frankly, I wanted a career path with more opportunities on the horizon than the relatively insular world I had been inhabiting.