여러 번 생각해도 결론이 나오지 않는 DDD 문제
6816 단어 DDD
모델 이상으로 애플리케이션 이하의 도메인이라는 존재로 모든 설계가 일관성이 손실된다
callback도 아니고 FormObject도 아니고 mvc로 해결할 수 있는 DHH의 대단함
여러 모델을 transaction 내에서 처리
htps : // 기 st. 기주 b. 코m/dh/9348053
h tps : // 아모 l 뿌삐. rdp s. 이 m/2013/04/09/184/
htps : // 이 m/초케 r1007/이고 ms/2아 03500017766bdb0234
htps : // 코 m / 스이 드 리 / ms / f2 316dc8 98b4 ~ f82
h tps : // 아모 l 뿌삐. rdp s. 이 m/2013/04/09/184/
htps : // 코 m / 카모 히코 카마 / MS / 7c31f61c99c9fc0 7f
htps : /// ch 라쵸. bp 신 c. jp/벌 8833/2017_11_06/47607
htps : // 아피. 루병라이 LS. 오 rg / c ぁせ s / 아 c ゔ ぇ 레코 rd / T 란사 c 치온 s / C ぁ s s ds. HTML
htps : /// ch 라쵸. bp 신 c. jp/벌 8833/2017_12_12/48367
htps : // 아피. 루병라이 LS. 오 rg / c ぁせ s / 아 c ゔ ぇ 레코 rd / 아 t 리부 s / C ぁ s ds. HTML
이 정책이 엉망인 것 같다.
If you just need to update fields in the same model, use Callbacks. You can still do this for field updates even if you also need other patterns for more complex needs.
If you have a form with multiple models or with form-specific validation, use a Form Object. But I don’t recommend adding secondary effects to a Form Object.
If you have only few secondary effects that you use rarely, or that aren’t on the critical path, use General Decorators.
If you have secondary effects that aren’t on the critical path, and they’re always used, use Events.
If you have many secondary effects called from multiple places in different combinations, or if they’re on the critical path, use Service Objects.
If your Service Objects are getting complex or repetitive, you can have them use General Decorators or broadcast Events instead of calling secondary effects directly.
htps : // 코기 tw 롱 g. 이 m / 2015 / 12 / 14 / 레후 c와 린 g 파 r r s - 후 r - 넣은 ry - 에후 cts. HTMLvalidation을 복잡하지 않고 쓰기
htps : // 기 st. 기주 b. 코m/dh/9672827
htps : // 기 st. 기주 b. 코 m/dh/10649506
2개의 모델에 묶는 모델의 controller로의 취급
htps : // 기 st. 기주 b. 코 m/dh/10022098
authentication 분할
htps : // 기 st. 기주 b. 코 m/dh/10880690
Grid 카운트 샘플
htps : // 기 st. 기주 b. 코 m/dh/10882430
테스트가 설계를 낭비
htps: //dh. dk / 2014 / st- い ん せ せ d - し g ん - まめ. HTML
htps : // bg. cぇ안코로 r. 이 m/응 cぇ-보 b/2014/05/01/에서 해 g 응-다마게. HTML
환경별 설정을 yml로
h tps://의st.魏 Tub. 작은 m/dh/9 아 fdbfd67 그림 3C42c9f09 그림
htps //w w. 요츠베. 코 m / 찬 l / 우 Cdx5Dk3 에 W 2 8Y이다 7bfl6g
youtube에서 코드 예제
Reference
이 문제에 관하여(여러 번 생각해도 결론이 나오지 않는 DDD 문제), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/rainbowaffro/items/d4e5e39e83d0c1bb7f6c텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)