SHARE
Facebook X Pinterest WhatsApp

Micro-Frameworks: Big Things in Small Packages

Written By
thumbnail
Web Webster
Web Webster
May 7, 2009

[ 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

thumbnail
Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Recommended for you...

5 Best Free and Open Source Text Expander Tools
webmaster
Jun 13, 2025
Grafito: Systemd Journal Log Viewer with a Beautiful Web UI
Bobby Borisov
Jun 12, 2025
FreeBSD Wants to Know a Few Things
brideoflinux
May 11, 2025
NVK enabled for Maxwell, Pascal, and Volta GPUs
Kara Bembridge
May 1, 2025
Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.