Sinatra doesn’t know that ditty and in the beginning neither did I

Christopher Breen
2 min readJan 11, 2021

Phase 2 of this coding bootcamp could not have started at a more complicated time, The Presidential election was decided (and then up for debate and decided again), Christmas and New Years and ending with the capitol building being stormed. To say keeping focus was difficult at times is a bit of understatement. Luckily Sinatra was there to suck me back in with an app to build.

I started off like most building a diagram of what I wanted to build, realizing I was going a little too deep then changing course and reshaping with an outline I could build on. I started with what my tables and their columns would be and how they would interact with each other whom would belong to who and or have many of whom. Once I had that I could see this taking shape.

I first created my migrations to set up my db with tables and columns right from my diagram. Once those were in I decides to build my models and assign relationship giving my user many cocktails and ingredients and having my cocktails belong to users and has and belong to many ingredients was also able to use the beauty of ActiveRecord to add validations to my models.

From my models I planned out my routes from controllers following restful conventions to map out the crud actions ad built out my controller actions and my matching views going back and forth with a lot of binding pry( If you’re not binding are you really coding?).

Little by little I got more and more comfortable with Sinatra and all its ditties as well as the simplicity that Active Record brings and my Bar-Cart was built and cocktails loaded for all my quarantine friends to see.

--

--

Christopher Breen

Leader in Hospitality turned hopeful coder learning to become a software engineer.