Enter your mobile number or email address below and we'll send you a link to download the free Kindle App. Then you can start reading Kindle books on your smartphone, tablet, or computer - no Kindle device required.
To get the free app, enter your email address or mobile phone number.
Sinatra: Up and Running 1st Edition
Use the Amazon App to scan ISBNs and compare prices.
Frequently Bought Together
Customers Who Bought This Item Also Bought
More About the AuthorsDiscover books, learn about writers, read author blogs, and more.
Top Customer Reviews
Sinatra Up and Running is, second to K&R, the most "lagom" technical book I've read. At a mere 102 pages you may wonder whether it's worth buying - it is. Unlike most technical books - yes, including mine - it skips the waffle and provides a perfect level of detail going through from what Sinatra is, to how it works, and on to an example project that covers just 13 pages. Don't be fooled, though, this isn't one of those tiny format O'Reilly handbooks; it's a regular, full size book - just a thin one!
It's a good book and well written. I enjoyed it and picked up or was reminded of quite a few interesting bits and pieces. I'll probably refer to it from time to time. If your Sinatra experiences are rather on and off or you've not played with it for a while, it's a great, well-paced introduction. If, however, you're already a Sinatra guru and/or working with Sinatra on a day by day basis and have all of the main patterns memorized, there's not a great deal you're going to get out of it. Buy it to be a completionist or to support the authors, but if you want a book demonstrating in depth how to integrate Sinatra with everything or how to big giant Web applications, this isn't for you.
Inexperienced Rubyists may also find the book's direct no-nonsense style intimidating. If you know what a code block is, you're good to go.Read more ›
This is not, however a book for Ruby beginners, or for novice (or perhaps even intermediate) developers looking to Sinatra for an alternative to the complex behemoth that is Rails. Don't be lulled by the thin size of this book: it is dense. After the first chapter, when it considers the rich array of paths Sinatra offers, it delves into the HTTP specification, the underlying architecture of Sinatra, hacking the Sinatra system itself, Rack, and modular applications.
However, these deeper and back-end topics are the entire beast. Besides a cursory few examples in the first chapter, there is little attention paid to organizing applications, design patters, or best-practices. There's not much hand-holding, in other words.
If you see yourself needing to manually distinguish MIME types or define custom HTTP headers, this book seems great. It's a book for computer scientists looking to add another weapon to their arsenal. It is not a book for dilettantes or the inexperienced. However, I have a sneaking suspicion I will come back to this book after I get used the Sinatra system.
The book explains Sinatra's API very well with simple and (mostly) meaningful examples. The internals are explained in the context of actual Sinatra code or a simplified version if the implementation is a little complicated. I love how the book introduces related information, but essentially beyond the scope of the book, by explaining it a bit and then providing an online resource for further reading - HTTP specific concepts for example.
I would have given them a full five if the hands on example of building a Sinatra application was something more interesting and creative than writing a blog engine (it has become poster boy of all web frameworks :|).
In spite of those statements, here are my recommendations for a reader's level of experience prior to reading this book:
1) This book is for people who know Ruby, at least at a working level. Before starting this book I had very minimal Ruby experience, but lots of server-side web development experience. Nevertheless, I stopped reading early on and read another book to learn some more Ruby before returning to this book, and it made a big difference.
2) This book is for people who are somewhat familiar with the underlying aspects of web server functionality. Concepts are not explained in much detail.
3) This book is for people who know something about Sinatra and its conventions already. In multiple cases, the authors make a passing reference to a concept as though it's understood (for example, they say "assume you have a folder named 'public' with a file in it" but never explain that it is a Sinatra convention that any static content in the /public/ folder is automatically served by Sinatra). Not knowing this, I was confused by the explanation that followed until I did some research.
4) This book, or at least some of the more advanced parts about Rack, are for people who are familiar with Rails. I am not, so I didn't really understand the analogies and comparisons that the authors make throughout that part of the book.
That's not to say it's a bad book.Read more ›
Most Recent Customer Reviews
With the advent of micro-service architectures, micro-frameworks is gaining traction over the monolithic giants out there. Read morePublished 10 months ago by Costa Michele
Well paced, useful explanations, concise examples. The content overall gets you if you already know some Ruby, personally I had also read some Rails so I wanted to deep into other... Read morePublished 12 months ago by mctaco
This book is really basic, seriously I could have just used the intro on the sinatra web site and been in the same shape. Read morePublished 17 months ago by Bobkat
Typos, editing mistakes and spotty cover make this a must miss for anyone wanting to learn about the Sinatra framework. Read morePublished 19 months ago by Paul Stevens
Short - but not too short - tour of Sinatra. If you know Ruby and have some idea of how web programming works, you will blaze through this in a day. Read morePublished 21 months ago by Sephiroth
This book is awesome and get you the skills to develop small apps and to get your ideas going with the ruby language.Published on May 26, 2013 by jonathan figueroa castro
It's a true rush to build a single file Sinatra web server that does most of what you need for a simple web application. Read morePublished on April 23, 2013 by James McPhate
Great book for a great DSL.
Funny when it can be.
Good coverage about Sinatra concepts. Read more
Like most O'Reilly books, this one starts off easy with a basic introduction to the technology and then ramps up quickly to let you let your hands dirty. Read morePublished on March 2, 2013 by Timothy L. Haas