Micro-Frameworks: Big Things in Small Packages
May 07, 2009, 00:01 (0 Talkback[s])
(Other stories by Martin Streicher)
[ Thanks to An Anonymous Reader for
this link. ]
"Choose your design pattern, object-relational mapper
(ORM), and rendering technology, and off you go. As you'll see, a
working Web application can be composed in less than ten lines of
code in a single source file.
"Let's look at two micro-frameworks, one for Ruby and the other
for PHP.
"Singing the Praises of Sinatra
"Sinatra is a micro-framework for Web applications written in
Ruby. Here's a complete Sinatra Web application.
"Sinatra depends on Rack to bundle up an incoming request. As I
write this, Sinatra depends specifically on Rack version 0.9.1.
Sinatra itself is also provided as a Ruby gem. Once those two
prerequisites are installed and required, the application is four
lines: A GET request to the URL /hi generates "Hello, World!""
Complete
Story
Related Stories: