Skip to content

Instantly share code, notes, and snippets.

@geeksam
Created January 27, 2012 17:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geeksam/1689918 to your computer and use it in GitHub Desktop.
Save geeksam/1689918 to your computer and use it in GitHub Desktop.
If Rails really, REALLY cared about OO principles
(In response to https://gist.github.com/1687527, with apologies and smoochies to @jc00ke.)
my-proj
|
-- app
|
-- data_mappers <--- (see note below)
-- models
-- views
-- controllers
-- config
-- ...
NOTE: "data_mappers" does not refer to DataMapper[1], which is an implementation of the Active Record design pattern[2]. For the Data Mapper design pattern, see [3].
[1] http://datamapper.org/
[2] http://martinfowler.com/eaaCatalog/activeRecord.html (not to be confused with Rails' ActiveRecord)
[3] http://martinfowler.com/eaaCatalog/dataMapper.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment