As I mentioned before, I am making small abstraction FW.
For giving the task a vista, I want to make a list of the requirements in advance.

  • Abstract Model (I hope the ActiveORM will be)
  • Basic HTML tag helpers (such as "tag", "url_for")
  • Starting up hook to modify others
  • Way to register helpers
  • Way to read/write configuration of plugin

In particular, abstract model is quite important.
There are already several efforts, but they all are probably not succeeding.
I think the reason of the failure is what most of them had been concentrating to make abstraction of models for models.
It must be designed for agnostic plugins.

Suppose you are an application developer and you are writing some code.
Obviously, the FW and ORM have already been chosen.
So you have no need to treat various ORMs for making the app.
Only agnostic plugins need the abstract model.

What is the requirements of the plugins?

  • read_many with options for specifying :limit and :offset
  • read_one, create, destroy, update
  • read/write access to attributes
  • counting, searching, association and so on.

Is it the DataMapper?
Yeah, it is nearly equals to. But it must have more flexibility.

In conclusion, we should not make an abstraction of models but an abstraction of plugin's requirements to FW.

posted by genki genki on Thu 23 Jul 2009 at 20:41 with 0 comments
Contents rssrss
光ファイバーを二次元振動させて走査するAR用ディスプレイ
因果の取り違え
Swift2's defer for CoffeeScript
mongodb-3.0からcreateIndexのdropDupsが無くなったらしい
mongodb-3.0以降のWiredTigerの設定を動的に変更する方法
一般楕円の高速生成アルゴリズムへの道標
farro mantecatoのレシピ
Droonga関連の記事のまとめ
RuntimeErrorの特定のメッセージに限定してrescueする方法
jQueryでscriptタグを実行せずにappendする
Tags
coffeescriptdefergroongajsmemonodenodejs
Comments rssrss
https://ogniat.com https://ogniat.com: We Advise You Hole Apartments In Dubai Apace And S... 05/31 12:22
https://bulldog-mon.ru https://bulldog-mon.ru: Вред через наркотиков — это единая хоботня, охва... 05/31 12:01
https://fianm.ru https://fianm.ru: Вред через наркотиков — этто групповая хоботня, об... 05/31 11:43
https://389999.ru https://389999.ru: Порча от наркотиков — это групповая проблема, охва... 05/31 11:27
https://unosport.pl/ https://unosport.pl/: Hey! This post couldn't be written any better! Rea... 05/31 08:15
https://t.me/+sIQx_N4fMY9mMGIy https://t.me/+sIQx_N4fMY9mMGIy: Обмен криптовалюты проходит спокойнее, когда услов... 05/31 07:32
https://meneercasino.com/slot-reviews/7-sins https://meneercasino.com/slot-reviews/7-sins: It is generally not recommended to take ephedrine ... 05/31 07:23
https://www.thegameroom.org/de/sportwetten/ohne-oasis/ https://www.thegameroom.org/de/sportwetten/ohne-oasis/: Материалы для взрослых доступны на различных сайта... 05/31 06:54
Services from s21g
YOMU Web小説リーダー
小説投稿サイトの公式ページを開き、WebView表示と読み上げ向け表示を切り替えて、移動中や作業中にもWeb小説の続きを聴きやすくするiPhoneアプリです。
補助探
公開されている補助金・助成金情報を集約し、条件に合う制度を探しやすくするサービスです。
jotter.me
個人開発者のためのホスティング一体型ノートサービス
ハンドミラー
iPhone向けの手鏡アプリ
ツイプロ(twpro)
Twitterプロフィールの高速検索エンジン