<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>murajun1978</author_name>
  <author_url>https://blog.hatena.ne.jp/murajun1978/</author_url>
  <blog_title>Murajun's Style</blog_title>
  <blog_url>https://murajun1978.hatenadiary.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>Software design</anon>
    <anon>現場で役立つシステム設計の原則 </anon>
  </categories>
  <description>最近、現場で役立つシステム設計の原則をよみ直している データベースにはコトを、ドメインモデルには業務ロジックを記述していく このことを考えるとデータベースをアップデートすることは、マスターデータ以外はそうはなさそう 例えば、商品名は変更することはあるけども、購入データを変更することはない 購入したという事実をデータとして登録するだけだからね わかりやすい例を書いてくれていた 年齢という関心事があると、年齢というクラスが必要になる でも、データはコトなので生年月日が登録されている Rubyだとこんな感じでしょうか require 'date' class Age def initialize(b…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmurajun1978.hatenadiary.com%2Fentry%2F2020%2F01%2F30%2F232614&quot; title=&quot; 【現場で役立つシステム設計の原則】データとドメインモデル - Murajun&amp;#39;s Style&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://ws-fe.amazon-adsystem.com/widgets/q?_encoding=UTF8&amp;ASIN=B073GSDBGT&amp;Format=_SL160_&amp;ID=AsinImage&amp;MarketPlace=JP&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=junkichi0f2-22&amp;language=ja_JP</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-01-30 23:26:14</published>
  <title> 【現場で役立つシステム設計の原則】データとドメインモデル</title>
  <type>rich</type>
  <url>https://murajun1978.hatenadiary.com/entry/2020/01/30/232614</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
