{"id":379,"date":"2021-08-09T14:44:23","date_gmt":"2021-08-09T06:44:23","guid":{"rendered":"https:\/\/www.tonghin.com.my\/blog\/?p=379"},"modified":"2021-08-09T14:44:26","modified_gmt":"2021-08-09T06:44:26","slug":"domain-driven-design","status":"publish","type":"post","link":"https:\/\/www.tonghin.com.my\/blog\/2021\/08\/09\/domain-driven-design\/","title":{"rendered":"Domain Driven Design"},"content":{"rendered":"\n<p>For the past week , I have been working on creating repository patterns in the project . <\/p>\n\n\n\n<p>Throughout my coding experience in the Tong Hin Sandbox Application . I have implemented some of the common DDD patterns in the project .<\/p>\n\n\n\n<p>In DDD , the Domain normally refers to the &#8220;pillar and activity around which the application logic revolves around&#8221; . The DDD pattern aims to ease the complexity in an application .<\/p>\n\n\n\n<p>Common terms used in DDD practices :<br>&#8211; Ubiquitous Language: A language structured in the project between team members to solve conflicts <br>&#8211; Bounded context: A description of a boundary within a model<br>that is defined and applicable to team members<br>&#8211; Aggregate : An aggregate is an encapsulation of entities and value objects<br>&#8211; Service : A functionality that must exist but cannot relate to an entity or value object<br>&#8211; Repository : An interface to allow CRUD around a project<\/p>\n\n\n\n<p>With these practices , it helps to minimize the complexity of the code . These are just the common terms used and there is more to know as I complete new tasks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For the past week , I have been working on creating repository patterns in the project . Throughout my coding experience in the Tong Hin Sandbox Application . I have implemented some of the common DDD patterns in the project . In DDD , the Domain normally refers to the &#8220;pillar and activity around which &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.tonghin.com.my\/blog\/2021\/08\/09\/domain-driven-design\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Domain Driven Design&#8221;<\/span><\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v15.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Domain Driven Design | Tong Hin&#039;s Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.tonghin.com.my\/blog\/2021\/08\/09\/domain-driven-design\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Domain Driven Design | Tong Hin&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"For the past week , I have been working on creating repository patterns in the project . Throughout my coding experience in the Tong Hin Sandbox Application . I have implemented some of the common DDD patterns in the project . In DDD , the Domain normally refers to the &#8220;pillar and activity around which &hellip; Continue reading &quot;Domain Driven Design&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.tonghin.com.my\/blog\/2021\/08\/09\/domain-driven-design\/\" \/>\n<meta property=\"og:site_name\" content=\"Tong Hin&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-09T06:44:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-09T06:44:26+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data1\" content=\"1 minute\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#organization\",\"name\":\"TONG HIN MACHINERY\",\"url\":\"https:\/\/www.tonghin.com.my\/blog\/\",\"sameAs\":[\"https:\/\/www.youtube.com\/channel\/UC60EoxJMNbu8mV0LuEGfrBg\"],\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#logo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/www.tonghin.com.my\/blog\/wp-content\/uploads\/2020\/10\/web_logo_180_180.jpg\",\"width\":180,\"height\":180,\"caption\":\"TONG HIN MACHINERY\"},\"image\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#logo\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#website\",\"url\":\"https:\/\/www.tonghin.com.my\/blog\/\",\"name\":\"Tong Hin&#039;s Blog\",\"description\":\"Sharing About Technology\",\"publisher\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/www.tonghin.com.my\/blog\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2021\/08\/09\/domain-driven-design\/#webpage\",\"url\":\"https:\/\/www.tonghin.com.my\/blog\/2021\/08\/09\/domain-driven-design\/\",\"name\":\"Domain Driven Design | Tong Hin&#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#website\"},\"datePublished\":\"2021-08-09T06:44:23+00:00\",\"dateModified\":\"2021-08-09T06:44:26+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2021\/08\/09\/domain-driven-design\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.tonghin.com.my\/blog\/2021\/08\/09\/domain-driven-design\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2021\/08\/09\/domain-driven-design\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/\",\"url\":\"https:\/\/www.tonghin.com.my\/blog\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2021\/08\/09\/domain-driven-design\/\",\"url\":\"https:\/\/www.tonghin.com.my\/blog\/2021\/08\/09\/domain-driven-design\/\",\"name\":\"Domain Driven Design\"}}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2021\/08\/09\/domain-driven-design\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2021\/08\/09\/domain-driven-design\/#webpage\"},\"author\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#\/schema\/person\/edf00f798aa3304d5b1c2f40ca0bc301\"},\"headline\":\"Domain Driven Design\",\"datePublished\":\"2021-08-09T06:44:23+00:00\",\"dateModified\":\"2021-08-09T06:44:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/2021\/08\/09\/domain-driven-design\/#webpage\"},\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#organization\"},\"articleSection\":\"Experiential\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.tonghin.com.my\/blog\/2021\/08\/09\/domain-driven-design\/#respond\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#\/schema\/person\/edf00f798aa3304d5b1c2f40ca0bc301\",\"name\":\"Wang Qi Le\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.tonghin.com.my\/blog\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4f522ad020f37316008f6f8757e45090?s=96&d=mm&r=g\",\"caption\":\"Wang Qi Le\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/posts\/379"}],"collection":[{"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/comments?post=379"}],"version-history":[{"count":1,"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/posts\/379\/revisions"}],"predecessor-version":[{"id":380,"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/posts\/379\/revisions\/380"}],"wp:attachment":[{"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/media?parent=379"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/categories?post=379"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tonghin.com.my\/blog\/wp-json\/wp\/v2\/tags?post=379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}