Sinatra, No One Cares
Tags: sinatra, ruby, frameworks
Published: 2019-06-13 15:26:29

---
title: Sinatra, No One Cares
published: true
tags: sinatra,ruby,frameworks
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4kfulszax7m8fmjymn7s.jpeg
---

[Sinatra](http://sinatrarb.com/) is a Ruby low-level micro-framework.

What is a framework? Glad you asked!

> A software framework is an [abstraction](https://en.wikipedia.org/wiki/Abstraction_(computer_science)) in which [software](https://en.wikipedia.org/wiki/Software) providing generic functionality can be selectively changed by additional user-written code, thus providing application-specific software. A software framework provides a standard way to build and deploy applications.  
> [https://en.wikipedia.org/wiki/Software\_framework](https://en.wikipedia.org/wiki/Software_framework)

Sinatra, as a framework, lets you [CRUD](https://en.wikipedia.org/wiki/Create,_read,_update_and_delete) within a [RESTful](https://restfulapi.net/) structure, thus Creating, Reading, Updating, and Deleting data via a web browser. It does this through standardized RESTful conventions like GET and POST. With Sinatra, you can make things like a simple website, blog, or barebones content management system.

As our mod geared up towards Sinatra, some peers from earlier mods I’ve spoken to described this little framework with a slight tinge of disdain, as in “Eww, you’re going to start using Sinatra”. And any time someone made an icky face about Sinatra to a noob like myself, it reminded me of the album cover for Frank’s seminal work [“No One Cares”](https://en.wikipedia.org/wiki/No_One_Cares), a collection of heart-brake and love-struck songs depicting how even a staple like Sinatra himself, also gets no love.

I couldn’t help correlating lonely Frank and the relationship some programmers might share with Sinatra versus Rails.

But despite said pity party, lets take a look at some statistics showing how Sinatra actually holds it's own in the framework field.

Sinatra's usage is only a [mere 95% less than Rails](https://infinum.co/the-capsized-eight/analyzing-rubygems-stats-v2016) in 2016, but that means it’s being used by 5% of the Ruby framework market and that’s not a negligible number in any market. More so, it [ranks 73rd place](http://bestgems.org/search?q=sinatra) in Ruby Gem usage in 2018. Not bad considering there are at total _152,505_ gems available.

![](https://cdn-images-1.medium.com/max/1000/1*sSoL48R1roxvic0N25co7g.jpeg)<figcaption>from: <a href="https://infinum.co/the-capsized-eight/analyzing-rubygems-stats-v2018">https://infinum.co/the-capsized-eight/analyzing-rubygems-stats-v2018</a></figcaption>

This goes to show that Sinatra is a robust little tool, and therefore when comparing it with Ruby, would be more suited toward something like the below image:

![](https://cdn-images-1.medium.com/max/1024/1*qNr0r_1DS6fkZyFjRuFN2Q.png)

Here lies the importance of getting comfortable with Sinatra before jumping into larger frameworks. When your hardware store is closed or your power tools are broken, having a deeply rooted skillset to solve challenges (because you’ve solved them with a simpler tool like a foldable knife) is crucial. 

Beyond that, it also helps you understand and thus deeply appreciate a framework like Rails. Having a good base of experience with Sinatra will allow you to program better with larger, more complex tools. It will help you find solutions to bugs and challenges you'll hit in the future.

Lastly, Sinatra is ideal for projects that don't require all the bells and whistles Rails provides. Sometimes you don't need an 18v lithium powered cordless hammer drill/driver, a pocket knife will do.

Using Sinatra, through its simplicity, may even evoke the words of [this Amazon reviewer](https://www.amazon.com/gp/customer-reviews/RK1QZGY5AXJZV/ref=cm_cr_dp_d_rvw_ttl?ie=UTF8&ASIN=B00005UMTA) for _“No One Cares”,_

> _Frank is so good that he can put you in the mood whether you were in that mood to begin with or not.”_

Check out [this awesome long list of apps, tools, and websites using Sinatra.](http://sinatrarb.com/wild.html)