A couple weeks and a Sinatra app later, our team was on its way to building a solid, extensible, well-tested JSON API with Rails.
My response: "Being able to create an iOS app must be so cool! You want a new view and then a few hours later - there it is!"
And then a light went on: …
…possible, so you extract the logic into a gem or a separate ruby application that is an API ( Sinatra or rails-api). When extracting your business logic into an API you still need to access it - thin adapter(s) used from the controllers can do the job. Now your original app becomes only the UI. A " UI application", "frontend application" or just "one of the applications using your API/gem". As a matter of fact the code that is now left in app/* means nothing …
Beyond the technical chops, the single most important thing is your initiative. Will you dive into a problem unprompted? Point out problems and give suggestions on fixing it? Given a high-level goal, can you break it actionable chunks, ask for help when you need it, and see everything through to completion? …
The course contents are subject to change.
Satish Talim and Victor Goff III from the team.
Some of the mentors and students hang out at RubyLearning's IRC (irc.freenode.net) channel (#) for both technical and non-technical discussions. Everyone benefits with the active discussions on with the mentors.
Building a trivial Sinatra application
Deployment of a Sinatra app to Heroku
Error Handling - 404 and 500
Hosting a static webpage on Heroku
Text String Reversal Service
Stock Exchange Quote Service
Using Sinatra to access the Google+ API
Running a Sinatra app using JRuby
A Sorter Web Service in Sinatra
Finding Photos on Flickr
A Sinatra app to access GEO…
That means you're going to be designing, for real. Drawing on whiteboard, building prototypes and proofs of concepts. Getting feedback from as many smart people as you can corner. Questioning your assumptions, reading everything you can find on the topic. Looking for tradeoffs that decrease risk and simplify your problem domain.
Accept that you're unlikely to ever get it entirely right. …
…didn't handle things much faster, finishing in a bit over 38 seconds, or 391 transactions per second. Sinatra blew away the competition at 1023 transactions per second, completing the benchmark with no errors in just 14.65 seconds.
The thing that surprised me most about these tests was how little performance difference there was between Rails and Rails-API. A 3.5% performance increase isn't quite enough to impress me, but Sinatra's nearly-tripled performance is.
Iconic framework is "a beautiful front-end framework for developing hybrid mobile apps in ." Based on SASS and . Looks interesting.
Lines of Code
How Authy Built A Fault-Tolerant Two-Factor Authentication Service . Sinatra, , , stuff like that.
But more interesting is what Give it a try , it's the most awesome 2FA iPhone app.is doing to make two-factor authentication usable.
A fellow Rubyist, Tim Millwood, is about to write an eBook on Sinatra. In order to begin writing, he needs to get appropriate funding on Kickstarter first. If you want to show your support, visit his eye-appealing website and back the project!
A Sinatra app, " Farmer" runs locally which allows me to store "Plants" ( Harvest timer IDs paired with Button numbers) in a database, and make "toggle" requests through the Harvest API whenever a request to /toggle?button=[number] is made to the app.