About this trail:
Camping is a web framework which consistently stays at less than 4kb of code. You can probably view the complete source code on a single page. But, you know, it‘s so small that, if you think about it, what can it really do? The idea here is to store a complete fledgling web application in a single file like many small CGIs. But to organize it as a Model-View-Controller application like Rails does. You can then easily move it to Rails once you‘ve got it going.
Trail link: http://trailfire.com/peony/trails/35679
Summary: http://trailfire.com/peony/trailview/35679
Summary: http://trailfire.com/peony/trailview/35679
1
Camping is a web framework which consistently stays at less than 4kb of code. You can probably view the complete source code on a single page. But, you know, it‘s so small that, if you think about it, what can it really do? The idea here is to store a complete fledgling web application in a single file like many small CGIs. But to organize it as a Model-View-Controller application like Rails does. You can then easily move it to Rails once you‘ve got it going.
2
Rails is great for many things, but for very small apps, it can definitely be overkill. That’s where why the lucky stiff’s Camping micro-framework comes in. Where rails gets you started with a clearly defined structure and generally presumes you’re going to want to use a database, Camping makes no such assumptions and just provides a few nice hooks for micro apps.
3
The driving idea behind Camping, as translated from why’s beautiful hummingbird language, is to have your entire MVC application in one file; failing that in as few files as possible. For models, Camping uses ActiveRecord, so your model code is nearly identical to what it would be in Rails.
4
Camping is computer gaming jargon for the practice of a player staying in one area of the game world waiting for enemies or useful objects to appear or to come to the player rather than actively seeking them out. Players camp in order to gain an advantage over their opponents




