php conference kansai 2015

26
~ Large outer gulp ~ @slywaker

Upload: yasuo-harada

Post on 16-Apr-2017

992 views

Category:

Technology


0 download

TRANSCRIPT

~ Large outer gulp ~ @slywaker

CakePHP Version

• CakePHP 1.3.x 2010 PHP 4.3.2~

• CakePHP 2.0.0 2011 PHP 5.2.6~

• CakePHP 3.0.0 2015 PHP 5.4.16~

CakePHP3は大丈夫か?

Taichung_20090621_29 by Lordcolus

大丈夫ですowl's smile!! :) by merec0

何が変わった?

Before after pic by Hey Paul Studios

どう変わった?

Modelモデル

Modell

modèle

نموذج

модельmodello modelo

Man holding up a model of 16th century ship, 23 June 1934 by Australian National Maritime Museum on The Commons

MVCの話をします

軽くですよ…

まさかり by ume-y

まさかり by ume-y

Solution of the FAT model

100_1016 by misawakatsutoshi

Domain Driven Design

100_1016 by misawakatsutoshi

DDDの話をします

軽くですよ…

まさかり by ume-y

まさかり by ume-y

ドメイン駆動設計とは… ソフトウェアの設計手法

http://ja.wikipedia.org/wiki/ドメイン駆動設計

まさかり by ume-y

ドメインとは… 全体の中に定義される部分領域

https://www.google.co.jp/search?q=ドメインとは

まさかり by ume-y

ドメイン駆動設計とは… 複雑なドメインの設計はモデルベースで行うべき

http://ja.wikipedia.org/wiki/ドメイン駆動設計

まさかり by ume-y

ドメイン駆動設計とは… ドメインそのものとドメインのロジックに焦点を置くべき

http://ja.wikipedia.org/wiki/ドメイン駆動設計

まさかり by ume-y

ドメインモデルを表現する要素 エンティティ リポジトリ ファクトリー サービス …

http://ja.wikipedia.org/wiki/ドメイン駆動設計

まさかり by ume-y

CakePHP Core Cake\ORM\Entity Cake\ORM\Table Cake\ORM\TableRegistry サービス???

まさかり by ume-y

Modelの分解 2.x Model/Post.php 3.x App\Model\Entity\Post App\Model\Table\PostsTable App\Model\Service\PostService

カジュアルに DDD

CakePHP3を 使いましょう