Me
About
Gallery
Company
Girl


Projects
Ruby on Rails
Basecamp
Highrise
Backpack
Campfire
Ta-da List
Writeboard


More
Feed
Archives

March 22, 20:07

MVC: In layman's terms

MVC is a pattern for separating the three basic concerns of a web application into isolated tiers, which can be constructed, tweaked, and tested apart from the others. MVC is short for Model, View, Control.

The model is composed of business classes, such as Person, Project, Account. The Project class has methods like has_milestones?, save, get_project_lead, and so on. This is the world of abstract ideas in a Plato-sense of ideals.

The view is the HTML templates that knows how to format and display the model objects, like "Title: <%= @post.title %>" (which shows the title of the post object). There's no computations and very little logic in the templates (or at least that's the way it should be).

The controller ties the view and model together by determining which models to give to which view and a given request. Or how to update the model as a request prescribes and redirect the user some where.

This might appear as a somewhat elaborate scheme. And in a way, it is. You probably wouldn't structure your guest book application like this. Having it all mashed together is fine for that.

But as soon as your application grows to even a moderate level of complexity, there's an incredible benefit to be found in the MVC approach (or similar patterns for separating concerns). You decrease duplication, promote coherence and clarity, make it possible to test, and a world of other benefits.

Since all MVC-style applications relies on a number of shared principles, it's possible to abstract and reuse these in what's called a framework. Rails is such a framework that tries to remove the complexity and drudgery of MVC, while still allowing you to realize all the benefits.

This description is a reprint from the discussion of Ruby on Rails to Basecamp from Signal vs Noise.


Challenge by PBal on March 26, 10:41

Could you give up more details about Ruby version, machines, web server, etc used in BaserCamp??

Thanks.

Challenge by David Heinemeier Hansson on March 26, 16:07

We do the LAMP dance (sustituting R for P). So that's Ruby 1.8.1, Apache 1.3.x, and MySQL 4.0.x running on some Linux flavor.

Challenge by serge on May 09, 21:28

Sorry for my links
Creampie gangbang pregnant cum load inside Unsuspecting teen creampies Eating anal creampies Cheat creampie stories Creampie stories Creampie internal, cumshots Eating anal creampies Mature mature plump fat hardcore pics creampie nasty fetish Eating anal creampies Free creampies pics Free thumbnails of creampie women Galleries free creampie movies Creampie hardcore sex pictures Creampie eating stories Pussy creampie avi Internal cum shot creampie video Internal cum shot creampie video Porn movies creampie frei tgp Creampie pussy cunt Mature mature plump fat hardcore pics creampie nasty fetish Anal creampie movie free Creampies pussy Gallery creampie pics Creampie cock in pussy Sex advice creampie Creampie stories Unsuspecting teen creampies Gallery creampie pics Gallery pictures creampie Creampie vaginal cum shot Creampie gangbang pregnant cum load inside Creampie vaginal cum shot Free and creampie and panty and pics Gallery creampie pics Gallery creampie pics Brittanys interracial creampie videos Anal creampie mpegs Amateur creampie pictures Sex advice creampie Pussy creampie avi Anal creampie movie free Porn movies creampie frei tgp Creampie sex videos Brittanys interracial creampie videos Anal creampie movie free Creampie pics free Creampie pics free Creampie internal, cumshots Free and creampie and panty and pics Creampies pussy Creampie eating stories Sex creampies Cheat creampie stories Free and creampie and panty and pics Creampie internal, cumshots Sex advice creampie Pussy creampie avi Creampie gangbang pregnant cum load inside Sex advice creampie Cheat creampie stories Free thumbnails of creampie women Creampie eating stories Porn movies creampie frei tgp Galleries free creampie movies Creampie pussy cunt Creampie gangbang pregnant cum load inside Anal creampie mpegs Creampie eating stories Anal creampie movie free Pussy creampie avi

Challenge by ivan on June 04, 12:00

Sorry for my links
nud3 senior women free naked older women nud3 senior women mature ladies in lingerie south indian mature women free naked older women south indian mature women mature amature mature amature mature video free naked older women mature nud3 pics older moms mature bitches free naked older women mature anal mature women stories mature nudists photos mature amature free naked older women older moms mature spunker lyrics to older country songs mature living mature anal older moms mature gallerys older moms mature living free naked older women mature nud3 pics mature nudists photos south indian mature women mature nud3 pics nud3 senior women mature ladies in lingerie mature women stories free naked older women older moms lyrics to older country songs

Challenge by nik on June 04, 19:54

Hello. I am new here. It is very interesting.
creampie t9p creampie eating stories xyx creampies xyx creampies creampie video clips creampies movies xyx creampies xyx creampies creampie ass hairy creampie creampie video store creampie video clips free creampie pics free free creampie pics free creampie video store creampie pussies japanese creampie links cum creampie mature creampies xyx creampies free creampie video creampie video clips free creampie video free creampie thumbnails xyx creampies free anal creampie movies creampies movies free creampie pics free ass creampie cum creampie ass creampie creampie eating stories japanese creampie links teen anal creampies japanese creampie links creampies free xyx creampies free creampie thumbnails free creampie pics free creampie ass

Challenge by jon on June 05, 5:36

Hi. This is my links.
girl panty pics pantyhose crossed legs feet in pantyhose pics girls in body stockings men who wear pantyhose pantyhose and nylon feet and toes feet in pantyhose pics men who wear pantyhose free pantyhose thumbs free pantyhose thumbs free panty thumbnail gallery pantyhose crossed legs pantyhose crossed legs free pantyhose thumbs mature pantyhose pictures girl panty pics pictures of crossed nylon legs mature pantyhose pictures free panty thumbnail gallery men pantyhose cum on panties girls in fishnet stockings girls in body stockings nylon stocking galleries girls in body stockings boys in pantyhose men who wear pantyhose men pantyhose boys in pantyhose mature pantyhose pictures boys in pantyhose pantyhose and nylon feet and toes pantyhose chat free panty thumbnail gallery nylon stocking galleries cum on panties feet in pantyhose pics russian pantyhose women men pantyhose cum on panties

Challenge by mikle on June 05, 9:23

Sorry for my links
free anal creampie pics latina creampie latina creampie free creampie pics and stories free creampie pics free interracial wives bareback creampies creampie p0Rn creampie cum and amature creampie cum and amature creampie p0Rn free creampie pics and stories interracial wives bareback creampies pictures creampie gangbang creampies videos creampies free asian creampies latina creampie creampie anal gangbang creampies videos amature creampies creampie cum and amature creampies free pictures creampie creampie p0Rn free creampie clips interracial wives bareback creampies creampie p0Rn latina creampie creampie anal creampie movie creampie internal, cumshots interracial wives bareback creampies amature creampies creampie movie amature creampies creampie p0Rn creampie cum and amature free creampie pics free creampies xyx creampies xyx

Challenge by den on June 05, 17:33

Hi. This is my links.
older men younger women mature women nud3 mature men galleries old naked women older women younger men free mature s3x older men younger women older women younger men older women younger men mature nud3 women free mature mature women t9p old naked women mature 1esbians mature 1esbians mature amateur dating mature women mature nud3 women free mature older women younger men mature women t9p mature over 50 mature women t9p mature babes free mature s3x free mature free older women mature women nud3 free mature older women younger men mature over 50 mature 1esbians mature babes older women younger men mature amateur mature men galleries free mature s3x old naked women free older women older thumbs

Challenge by nelly on June 06, 1:31

Sorry for my links
1ncest daughter free 1ncest story 1ncests 1ncest thumbnails free 1ncest sites granny 1ncest 1ncest 101itas 1ncest sites 1ncest xyx teen 1ncest er0t1c stories 1ncests free 1ncest story free 1ncest sites free family 1ncest stories true 1ncest stories free 1ncest mpegs free 1ncest mpegs 1ncest daughter free 1ncest sites 1ncest mother son 1ncest sites mom and son 1ncest 1ncest free pictures stories 1ncest sites 1ncest sites 1ncest 101ita 1ncest 101itas granny 1ncest teen 1ncest er0t1c stories 1ncest thumbnails mom and son 1ncest free family 1ncest stories 1ncest gallery granny 1ncest 1ncest mother son 1ncest 101itas true 1ncest stories granny 1ncest 1ncests 1ncest daughter

Challenge by angel on June 06, 11:52

Hello. I am new here. It is very interesting.
mature glamour mature pantyhose pictures mature index mature index mature mistress free older women galleries naked old women thumbs mature nudists mature mistress mature asian women how to meet older women older women stories mature pic gallery mature glamour mature index mature asian women free older women galleries young girls older men young girls older men mature glamour older black women naked old women thumbs naked old women thumbs naked old women thumbs naked old women thumbs older women stories mature women over 40 thumbs gallery older women mature index mature index naked old women thumbs how to meet older women mature index thumbs gallery older women older holland older women stories black older ladies mature mistress mature hardcore links older black women

Challenge by mikle on June 08, 0:06

Hello. I am new here. It is very interesting.
winnie-cooper pantyhose celebrities in pantyhose hooters girls in pantyhose free wet panty free wet panty panty thumbnails girls in nylons men's pantyhose cheerleader panty pics free wet panty panty fetish cheerleader panty pics mature ladies in pantyhose free wet panty pantyhose images winnie-cooper pantyhose men's pantyhose panty fetish panty post wet pantyhose winnie-cooper pantyhose men's pantyhose cheerleader panty pics mature pantyhose pics girls in nylons mature ladies in pantyhose panty thumbnails girls in nylons mature pantyhose pics cheerleader panty pics mature pantyhose pics pantyhose images girls in nylons men's pantyhose pantyhose images celebrities in pantyhose mature ladies in pantyhose free teen panties white pantyhose hooters girls in pantyhose

Challenge by nik on June 08, 4:21

Hi. This is my links.
free panties pantyhose fetish crotchless pantyhose panty girls free panty galleries teen panty pictures crotchless pantyhose men in panty pics mature women in nylons teen panty pictures crotchless pantyhose free panty galleries men in panty pics pantyhose pic gallery silkies pantyhose teen panty pictures free pantyhose sites mature women in nylons wolford pantyhose pantyhose men teen panty pictures free panty galleries free panties panty girls teen panty pictures teens in pantyhose teen panty pictures teen panty pictures wolford pantyhose teen panty pictures pantyhose foot gallery shiny pantyhose shiny pantyhose bra and panty pics free panties panty line pics shiny pantyhose pantyhose foot gallery shiny pantyhose pantyhose foot gallery

Challenge by petra on June 08, 19:26

Hi. This is my links.
meet older women nud3 mature black women mature s3x pics s3xy mature women meet older women nud3 mature nud3 mature top mature t9p's mature s3x pics mature personals top mature t9p's top mature t9p's victor mature victor mature meet older women meet older women top mature t9p's mature cart00ns free pics mature ladies free pics mature ladies free mature s3x pics older women pictures daily mature boobs bcn mature mature s3x pics daily mature boobs free mature movies older pussy mature 1esbian older women pictures free mature s3x pics s3xy mature women nud3 mature black women daily mature boobs victor mature nud3 mature men bcn mature older pussy victor mature free mature s3x pics