{"id":56,"date":"2007-10-13T07:21:12","date_gmt":"2007-10-13T01:51:12","guid":{"rendered":"http:\/\/thekua.com\/atwork\/2007\/10\/13\/onboarding-strategy-domain-driven-design-and-readable-code\/"},"modified":"2016-12-22T13:55:07","modified_gmt":"2016-12-22T13:55:07","slug":"onboarding-strategy-domain-driven-design-and-readable-code","status":"publish","type":"post","link":"https:\/\/thekua.com\/atwork\/2007\/10\/onboarding-strategy-domain-driven-design-and-readable-code\/","title":{"rendered":"Onboarding Strategy: Domain Driven Design And Readable Code"},"content":{"rendered":"<p><strong>Its Purpose?<\/strong><br \/>\nThis helps people new to a project answer questions about the domain more effectively and where the system fits into it.<\/p>\n<div style=\"text-align:center\"><img src='http:\/\/thekua.com\/atwork\/wp-content\/uploads\/2007\/10\/domaindriven.jpg' alt='Domain Driven Design' \/><\/div>\n<blockquote><p>Image taken from <a href=\"http:\/\/flickr.com\/photos\/68498640@N00\/\">Kakutani.com&#8217;s flickr<\/a> stream under the Creative Commons Licence.<\/p><\/blockquote>\n<p><strong>How Did We Execute It?<\/strong><br \/>\nWe followed domain driven design as much as possible applying several techniques described in the book. We aimed for a <a href=\"http:\/\/c2.com\/cgi\/wiki?UbiquitousLanguage\">Ubiquitous Language<\/a>, reducing the number of terms for the same thing to a single one. This flowed into the code as well, where domain terms were used for domain classes, and namespaces for related concepts. <\/p>\n<p>We tried to model all of the business processes and rules in a domain layer (the inner most tier on an onion ring model of our system), so that they were easily testable and people knew the first point to look for when answering a question about the domain. A side benefit of this is not tying the domain rules to a particular choice of technology or framework, and makes inconsistencies in the domain much more visible.<\/p>\n<p>Many different factors affected the way in which we coded including aspects from <a href=\"https:\/\/en.wikipedia.org\/wiki\/Domain-driven_design\">Domain Driven Design<\/a>, Object Oriented Design (such as encapsulation, responsibility, decoupling and reuse), testability, and readability. Our standards by default exclude comments where possible replaced by representing as much intent as possible in the code itself. We focus on what it does and why. I&#8217;ve found &#8220;What&#8221; tends to be best represented by production code, whilst &#8220;Why&#8221; is better explained in tests because you can better represent different contexts there. <\/p>\n<p>Given that I&#8217;ve been with the project for some time and seen quite a few people flow on and off, I believe that given a handful of system patterns and a high level picture of how it fits together, it&#8217;s much quicker to bring people on board. Equipping them with knowledge of where to find information and seek answers for their own questions, you spend less time answering questions and it fits much better into their own mental model. <\/p>\n<p><strong>Why Is It Important?<\/strong><br \/>\nFollowing Domain Driven Design and well refactored code brings many more benefits than just effective onboarding (think flexible, adaptable and much more robust and consistent) though I want to specifically focus on its impact on onboarding for the purpose of this entry. Even though these are great development practices, an emphasis on both of these has such a significant positive impact on onboarding of people.<\/p>\n<p>Enabling others to find the answers to their own questions is much more effective because they depend less on others to work out their mental model and help them fill the gaps in that model.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Its Purpose? This helps people new to a project answer questions about the domain more effectively and where the system fits into it. Image taken from Kakutani.com&#8217;s flickr stream under the Creative Commons Licence. How Did We Execute It? We followed domain driven design as much as possible applying several techniques described in the book. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,3,20,13],"tags":[],"class_list":["post-56","post","type-post","status-publish","format-standard","hentry","category-coaching","category-learning","category-onboarding-strategies","category-teams","post-preview"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Onboarding Strategy: Domain Driven Design And Readable Code - patkua@work<\/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:\/\/thekua.com\/atwork\/2007\/10\/onboarding-strategy-domain-driven-design-and-readable-code\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Onboarding Strategy: Domain Driven Design And Readable Code - patkua@work\" \/>\n<meta property=\"og:description\" content=\"Its Purpose? This helps people new to a project answer questions about the domain more effectively and where the system fits into it. Image taken from Kakutani.com&#8217;s flickr stream under the Creative Commons Licence. How Did We Execute It? We followed domain driven design as much as possible applying several techniques described in the book. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/thekua.com\/atwork\/2007\/10\/onboarding-strategy-domain-driven-design-and-readable-code\/\" \/>\n<meta property=\"og:site_name\" content=\"patkua@work\" \/>\n<meta property=\"article:published_time\" content=\"2007-10-13T01:51:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-12-22T13:55:07+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/thekua.com\/atwork\/wp-content\/uploads\/2007\/10\/domaindriven.jpg\" \/>\n<meta name=\"author\" content=\"Patrick\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@patkua\" \/>\n<meta name=\"twitter:site\" content=\"@patkua\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Patrick\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/thekua.com\\\/atwork\\\/2007\\\/10\\\/onboarding-strategy-domain-driven-design-and-readable-code\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/thekua.com\\\/atwork\\\/2007\\\/10\\\/onboarding-strategy-domain-driven-design-and-readable-code\\\/\"},\"author\":{\"name\":\"Patrick\",\"@id\":\"https:\\\/\\\/thekua.com\\\/atwork\\\/#\\\/schema\\\/person\\\/c942203c9ed3ff9e21c6c49a996ea3ae\"},\"headline\":\"Onboarding Strategy: Domain Driven Design And Readable Code\",\"datePublished\":\"2007-10-13T01:51:12+00:00\",\"dateModified\":\"2016-12-22T13:55:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/thekua.com\\\/atwork\\\/2007\\\/10\\\/onboarding-strategy-domain-driven-design-and-readable-code\\\/\"},\"wordCount\":450,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/thekua.com\\\/atwork\\\/2007\\\/10\\\/onboarding-strategy-domain-driven-design-and-readable-code\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/thekua.com\\\/atwork\\\/wp-content\\\/uploads\\\/2007\\\/10\\\/domaindriven.jpg\",\"articleSection\":[\"Coaching\",\"Learning\",\"Onboarding Strategies\",\"Teams\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/thekua.com\\\/atwork\\\/2007\\\/10\\\/onboarding-strategy-domain-driven-design-and-readable-code\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/thekua.com\\\/atwork\\\/2007\\\/10\\\/onboarding-strategy-domain-driven-design-and-readable-code\\\/\",\"url\":\"https:\\\/\\\/thekua.com\\\/atwork\\\/2007\\\/10\\\/onboarding-strategy-domain-driven-design-and-readable-code\\\/\",\"name\":\"Onboarding Strategy: Domain Driven Design And Readable Code - patkua@work\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/thekua.com\\\/atwork\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/thekua.com\\\/atwork\\\/2007\\\/10\\\/onboarding-strategy-domain-driven-design-and-readable-code\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/thekua.com\\\/atwork\\\/2007\\\/10\\\/onboarding-strategy-domain-driven-design-and-readable-code\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/thekua.com\\\/atwork\\\/wp-content\\\/uploads\\\/2007\\\/10\\\/domaindriven.jpg\",\"datePublished\":\"2007-10-13T01:51:12+00:00\",\"dateModified\":\"2016-12-22T13:55:07+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/thekua.com\\\/atwork\\\/#\\\/schema\\\/person\\\/c942203c9ed3ff9e21c6c49a996ea3ae\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/thekua.com\\\/atwork\\\/2007\\\/10\\\/onboarding-strategy-domain-driven-design-and-readable-code\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/thekua.com\\\/atwork\\\/2007\\\/10\\\/onboarding-strategy-domain-driven-design-and-readable-code\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/thekua.com\\\/atwork\\\/2007\\\/10\\\/onboarding-strategy-domain-driven-design-and-readable-code\\\/#primaryimage\",\"url\":\"http:\\\/\\\/thekua.com\\\/atwork\\\/wp-content\\\/uploads\\\/2007\\\/10\\\/domaindriven.jpg\",\"contentUrl\":\"http:\\\/\\\/thekua.com\\\/atwork\\\/wp-content\\\/uploads\\\/2007\\\/10\\\/domaindriven.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/thekua.com\\\/atwork\\\/2007\\\/10\\\/onboarding-strategy-domain-driven-design-and-readable-code\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/thekua.com\\\/atwork\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Onboarding Strategy: Domain Driven Design And Readable Code\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/thekua.com\\\/atwork\\\/#website\",\"url\":\"https:\\\/\\\/thekua.com\\\/atwork\\\/\",\"name\":\"patkua@work\",\"description\":\"The intersection of technology and leadership\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/thekua.com\\\/atwork\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/thekua.com\\\/atwork\\\/#\\\/schema\\\/person\\\/c942203c9ed3ff9e21c6c49a996ea3ae\",\"name\":\"Patrick\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2ef85a5f91c2aac13efb3ac90077b4db7f8883cafd6e60f2bcecba6b092d4011?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2ef85a5f91c2aac13efb3ac90077b4db7f8883cafd6e60f2bcecba6b092d4011?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2ef85a5f91c2aac13efb3ac90077b4db7f8883cafd6e60f2bcecba6b092d4011?s=96&d=mm&r=g\",\"caption\":\"Patrick\"},\"sameAs\":[\"http:\\\/\\\/thekua.com\\\/atwork\"],\"url\":\"https:\\\/\\\/thekua.com\\\/atwork\\\/author\\\/patrick\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Onboarding Strategy: Domain Driven Design And Readable Code - patkua@work","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/thekua.com\/atwork\/2007\/10\/onboarding-strategy-domain-driven-design-and-readable-code\/","og_locale":"en_US","og_type":"article","og_title":"Onboarding Strategy: Domain Driven Design And Readable Code - patkua@work","og_description":"Its Purpose? This helps people new to a project answer questions about the domain more effectively and where the system fits into it. Image taken from Kakutani.com&#8217;s flickr stream under the Creative Commons Licence. How Did We Execute It? We followed domain driven design as much as possible applying several techniques described in the book. [&hellip;]","og_url":"https:\/\/thekua.com\/atwork\/2007\/10\/onboarding-strategy-domain-driven-design-and-readable-code\/","og_site_name":"patkua@work","article_published_time":"2007-10-13T01:51:12+00:00","article_modified_time":"2016-12-22T13:55:07+00:00","og_image":[{"url":"http:\/\/thekua.com\/atwork\/wp-content\/uploads\/2007\/10\/domaindriven.jpg","type":"","width":"","height":""}],"author":"Patrick","twitter_card":"summary_large_image","twitter_creator":"@patkua","twitter_site":"@patkua","twitter_misc":{"Written by":"Patrick","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/thekua.com\/atwork\/2007\/10\/onboarding-strategy-domain-driven-design-and-readable-code\/#article","isPartOf":{"@id":"https:\/\/thekua.com\/atwork\/2007\/10\/onboarding-strategy-domain-driven-design-and-readable-code\/"},"author":{"name":"Patrick","@id":"https:\/\/thekua.com\/atwork\/#\/schema\/person\/c942203c9ed3ff9e21c6c49a996ea3ae"},"headline":"Onboarding Strategy: Domain Driven Design And Readable Code","datePublished":"2007-10-13T01:51:12+00:00","dateModified":"2016-12-22T13:55:07+00:00","mainEntityOfPage":{"@id":"https:\/\/thekua.com\/atwork\/2007\/10\/onboarding-strategy-domain-driven-design-and-readable-code\/"},"wordCount":450,"commentCount":0,"image":{"@id":"https:\/\/thekua.com\/atwork\/2007\/10\/onboarding-strategy-domain-driven-design-and-readable-code\/#primaryimage"},"thumbnailUrl":"http:\/\/thekua.com\/atwork\/wp-content\/uploads\/2007\/10\/domaindriven.jpg","articleSection":["Coaching","Learning","Onboarding Strategies","Teams"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/thekua.com\/atwork\/2007\/10\/onboarding-strategy-domain-driven-design-and-readable-code\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/thekua.com\/atwork\/2007\/10\/onboarding-strategy-domain-driven-design-and-readable-code\/","url":"https:\/\/thekua.com\/atwork\/2007\/10\/onboarding-strategy-domain-driven-design-and-readable-code\/","name":"Onboarding Strategy: Domain Driven Design And Readable Code - patkua@work","isPartOf":{"@id":"https:\/\/thekua.com\/atwork\/#website"},"primaryImageOfPage":{"@id":"https:\/\/thekua.com\/atwork\/2007\/10\/onboarding-strategy-domain-driven-design-and-readable-code\/#primaryimage"},"image":{"@id":"https:\/\/thekua.com\/atwork\/2007\/10\/onboarding-strategy-domain-driven-design-and-readable-code\/#primaryimage"},"thumbnailUrl":"http:\/\/thekua.com\/atwork\/wp-content\/uploads\/2007\/10\/domaindriven.jpg","datePublished":"2007-10-13T01:51:12+00:00","dateModified":"2016-12-22T13:55:07+00:00","author":{"@id":"https:\/\/thekua.com\/atwork\/#\/schema\/person\/c942203c9ed3ff9e21c6c49a996ea3ae"},"breadcrumb":{"@id":"https:\/\/thekua.com\/atwork\/2007\/10\/onboarding-strategy-domain-driven-design-and-readable-code\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/thekua.com\/atwork\/2007\/10\/onboarding-strategy-domain-driven-design-and-readable-code\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/thekua.com\/atwork\/2007\/10\/onboarding-strategy-domain-driven-design-and-readable-code\/#primaryimage","url":"http:\/\/thekua.com\/atwork\/wp-content\/uploads\/2007\/10\/domaindriven.jpg","contentUrl":"http:\/\/thekua.com\/atwork\/wp-content\/uploads\/2007\/10\/domaindriven.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/thekua.com\/atwork\/2007\/10\/onboarding-strategy-domain-driven-design-and-readable-code\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/thekua.com\/atwork\/"},{"@type":"ListItem","position":2,"name":"Onboarding Strategy: Domain Driven Design And Readable Code"}]},{"@type":"WebSite","@id":"https:\/\/thekua.com\/atwork\/#website","url":"https:\/\/thekua.com\/atwork\/","name":"patkua@work","description":"The intersection of technology and leadership","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/thekua.com\/atwork\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/thekua.com\/atwork\/#\/schema\/person\/c942203c9ed3ff9e21c6c49a996ea3ae","name":"Patrick","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/2ef85a5f91c2aac13efb3ac90077b4db7f8883cafd6e60f2bcecba6b092d4011?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/2ef85a5f91c2aac13efb3ac90077b4db7f8883cafd6e60f2bcecba6b092d4011?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2ef85a5f91c2aac13efb3ac90077b4db7f8883cafd6e60f2bcecba6b092d4011?s=96&d=mm&r=g","caption":"Patrick"},"sameAs":["http:\/\/thekua.com\/atwork"],"url":"https:\/\/thekua.com\/atwork\/author\/patrick\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/thekua.com\/atwork\/wp-json\/wp\/v2\/posts\/56","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thekua.com\/atwork\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thekua.com\/atwork\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thekua.com\/atwork\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/thekua.com\/atwork\/wp-json\/wp\/v2\/comments?post=56"}],"version-history":[{"count":2,"href":"https:\/\/thekua.com\/atwork\/wp-json\/wp\/v2\/posts\/56\/revisions"}],"predecessor-version":[{"id":2721,"href":"https:\/\/thekua.com\/atwork\/wp-json\/wp\/v2\/posts\/56\/revisions\/2721"}],"wp:attachment":[{"href":"https:\/\/thekua.com\/atwork\/wp-json\/wp\/v2\/media?parent=56"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thekua.com\/atwork\/wp-json\/wp\/v2\/categories?post=56"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thekua.com\/atwork\/wp-json\/wp\/v2\/tags?post=56"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}