RSS DAILY NEWS TICKER EXAMPLE


home > overview

Bill Karwin's Blog: ActiveRecord does not suck




Bill Karwin (formerly of Zend and the Zend Framework project) has a new post to his blog defending one of the more abused (both in code and in opinions) design patterns, ActiveRecord:

ActiveRecord is fine. It is a tool that does just what it's designed to do. What sucks is when developers try to make it do other things than what it's intended to do.

He cites his work with the Zend_Db component and how Mike Seth gets it right when he says that the pattern shouldn't be "ActiveRecord-View-Controller". He compares the ideas of a true Model in an MVC application with the incorrect ideas that many developers seem to hold.

A Model is a class that provides a logical component of your application domain. Models are products of OO design, which is a development activity I see get very little attention in the developer blogosphere or the developer tools market.

Models can reference one or many (or no) database tables and are not where the hard work is being done. That's saved for the ORM (or ActiveRecord) to do.




click here to see original article or to find similar articles

 RSS DAILY HEADLINES

HEADLINES

Newsweek: McCains $5 million gaffeThe same media machine that rewards consultant-driven candidates for staying on-message is apt to ignore a dozen well-crafted talking points in favor of a single slip of the candidate's tongue. And McCain--whose performance as a whole was solid--had just such a slip Saturday night.

Court: Accused Nazi eligible for extradition (AP) AP - An 86-year-old man accused of killing a Jewish teenager in Hungary during World War II can be extradited to Hungary to face charges, an Australian judge found Wednesday.

U.S. tracking citizens border crossings: report (Reuters)

A U.S Customs Officer checks the identification papers of a driver entering the U.S. from Canada at the Detroit-Windsor tunnel in Detroit, January 31, 2008. (Rebecca Cook/Reuters)Reuters - The U.S. government has been using its border checkpoints to collect information on citizens that will be stored for 15 years, raising concern among privacy advocates, the Washington Post reported on Wednesday.



Find this article in Google