Start reading Sinatra: Up and Running on your Kindle in under a minute. Don't have a Kindle? Get your Kindle here.

Deliver to your Kindle or other device

 
 
 

Try it free

Sample the beginning of this book for free

Deliver to your Kindle or other device

Read books on your computer or other mobile devices with our FREE Kindle Reading Apps.
Sinatra: Up and Running
 
 

Sinatra: Up and Running [Kindle Edition]

Alan Harris , Konstantin Haase
5.0 out of 5 stars  See all reviews (1 customer review)

Print List Price: £15.50
Kindle Price: £7.67 includes VAT* & free wireless delivery via Amazon Whispernet
You Save: £7.83 (51%)
* Unlike print books, digital books are subject to VAT.

Formats

Amazon Price New from Used from
Kindle Edition £7.67  
Paperback £9.92  


Product Description

Book Description

Ruby for the Web, Simply

Product Description

Take advantage of Sinatra, the Ruby-based web application library and domain-specific language used by Heroku, GitHub, Apple, Engine Yard, and other prominent organizations. With this concise book, you will quickly gain working knowledge of Sinatra and its minimalist approach to building both standalone and modular web applications.

Sinatra serves as a lightweight wrapper around Rack middleware, with syntax that maps closely to functions exposed by HTTP verbs, which makes it ideal for web services and APIs. If you have experience building applications with Ruby, you’ll quickly learn language fundamentals and see under-the-hood techniques, with the help of several practical examples. Then you’ll get hands-on experience with Sinatra by building your own blog engine.

  • Learn Sinatra’s core concepts, and get started by building a simple application
  • Create views, manage sessions, and work with Sinatra route definitions
  • Become familiar with the language’s internals, and take a closer look at Rack
  • Use different subclass methods for building flexible and robust architectures
  • Put Sinatra to work: build a blog that takes advantage of service hooks provided by the GitHub API

Product details

  • Format: Kindle Edition
  • File Size: 1425 KB
  • Print Length: 122 pages
  • Simultaneous Device Usage: Unlimited
  • Publisher: O'Reilly Media; 1 edition (21 Nov 2011)
  • Sold by: Amazon Media EU S.à r.l.
  • Language: English
  • ASIN: B006C3HPS4
  • Text-to-Speech: Enabled
  • X-Ray: Not Enabled
  • Average Customer Review: 5.0 out of 5 stars  See all reviews (1 customer review)
  • Amazon Bestsellers Rank: #65,975 Paid in Kindle Store (See Top 100 Paid in Kindle Store)
  •  Would you like to give feedback on images?


More About the Authors

Discover books, learn about writers, and more.

What Other Items Do Customers Buy After Viewing This Item?


Customer Reviews

4 star
0
3 star
0
2 star
0
1 star
0
5.0 out of 5 stars
5.0 out of 5 stars
Most Helpful Customer Reviews
5.0 out of 5 stars great coverage 21 Aug 2012
By flo
Format:Paperback
While the book is not massive it covers everything.
The size also means that coming back to it to find that comment, or that feature is damn easy.

Will recommand this book to everyone that wonder about a simple framework, or to expose an api.
100% worth the price
Comment | 
Was this review helpful to you?
Most Helpful Customer Reviews on Amazon.com (beta)
Amazon.com: 4.8 out of 5 stars  10 reviews
7 of 7 people found the following review helpful
4.0 out of 5 stars not a book for beginners 9 Jan 2012
By niteshade - Published on Amazon.com
Format:Paperback
I can sense the quality of this book. As other reviews have stated, it is clear and concise, and I will keep it on my bookshelf for future reference. It has a certain zen feel, and if you can follow everything in this book, you will be a force of nature.

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.
11 of 13 people found the following review helpful
5.0 out of 5 stars It's just right. A perfect introduction. 15 Dec 2011
By Peter Cooper - Published on Amazon.com
Format:Paperback
An interesting quirk of Scandinavian society is the concept of Jante Law. It knocks down standing out and being individual, in favor of communal harmony. It's typically used in a negative context to lament restrictions and lack of risk taking within Nordic society but the flip side of the Jante coin is "lagom": the idea and ideal of having just the right amount of something.

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. This may seem like a bizarre observation to most Rubyists, but I've encountered many beginners who've wanted to "build a Web site" and immediately leapt into an advanced Rails book, only to be confused. If you're still new to Ruby, read The Well Grounded Rubyist or Beginning Ruby first.

And I'm going to stop here, because that would be lagom :-)
2 of 2 people found the following review helpful
5.0 out of 5 stars Fast, Thorough Introduction 12 April 2012
By Ryan Riley - Published on Amazon.com
Format:Kindle Edition|Amazon Verified Purchase
I read this book through in its entirety in just a few days. It was short but thorough, and I thought it covered all the necessities rather well. Even if you don't use either Ruby or Sinatra, I'd recommend picking this up to find out just how simple building web applications should be.
Were these reviews helpful?   Let us know
Search Customer Reviews
Only search this product's reviews

Popular Highlights

 (What's this?)
&quote;
Sinatra is essentially a lightweight layer separating you as a developer from a piece of Ruby middleware called Rack. Rack wraps HTTP requests to help standardize communication between Ruby web applications and web servers. Sinatra abstracts Rack, allowing you to focus solely on responding to HTTP requests &quote;
Highlighted by 4 Kindle users
&quote;
PATCH is used to update a portion of a resource; this is in contrast to PUT, which replaces it wholesale. &quote;
Highlighted by 4 Kindle users
&quote;
GET, PUT, and DELETE are expected to exhibit what is termed idempotence: an action that is idempotent should deliver identical results if the action is repeated. &quote;
Highlighted by 4 Kindle users

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 

Search Customer Discussions
Search all Amazon discussions
   


Look for similar items by category


Amazon Media EU S.à r.l. Privacy Statement Amazon Media EU S.à r.l. Delivery Information Amazon Media EU S.à r.l. Returns & Exchanges