February 2012
2 posts
Digestion
There doesn’t seem to be a lot of consensus on adding security to web services. For example, here are two ways advertised for Rack (the Ruby framework on which Sinatra is built): Rack::Auth::Basic implements HTTP Basic Authentication, as per RFC 2617. Initialize with the Rack application that you want protecting, and a block that checks if a username and password pair are valid. ...
Feb 18th
Perceptions
Been doing some boilerplate REST code, using the excellent Sinatra on Ruby/Linux and WCF on Windows. I did the Ruby stuff first and it seems really straightforward (once you have read the source code for the framework, because, like all open source stuff, the documentation is useless), and I’m quite impressed that I don’t need to create acres of object hierarchies just to generate...
Feb 7th