More Related Content
Similar to PHP Coding in BEAR.Sunday
Similar to PHP Coding in BEAR.Sunday (20)
More from Akihito Koriyama
More from Akihito Koriyama (13)
PHP Coding in BEAR.Sunday
- 10. Tell Logic
Logic Object
Val
Val
Object Oriented
- 11. Ask
Logic Val Object
Val
Logic
Procedural
- 12. Tell, Don t ask.
• OK $dog->walk();
• OK $model->render();
• NG $renderer->set($model-
>name)->render();