<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Radek Kowalski on Medium]]></title>
        <description><![CDATA[Stories by Radek Kowalski on Medium]]></description>
        <link>https://medium.com/@radekkowalski?source=rss-4bdaf6fafd6f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*edTnZUAIXLbRQVbbN0cavg.png</url>
            <title>Stories by Radek Kowalski on Medium</title>
            <link>https://medium.com/@radekkowalski?source=rss-4bdaf6fafd6f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 04:15:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@radekkowalski/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[AI Augmented Teams]]></title>
            <link>https://radekkowalski.medium.com/ai-augmented-teams-46c2b4365b9f?source=rss-4bdaf6fafd6f------2</link>
            <guid isPermaLink="false">https://medium.com/p/46c2b4365b9f</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[human-ai-collaboration]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Radek Kowalski]]></dc:creator>
            <pubDate>Sun, 01 Feb 2026 09:34:13 GMT</pubDate>
            <atom:updated>2026-02-01T12:08:31.199Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wxuFN7es8AY78s538HxqyQ.jpeg" /></figure><h3>AI Augmented Teams</h3><p><em>A battle-tested collaboration blueprint for weaving human and AI work into one practical team workflow.</em></p><p>First published at: <a href="https://aiaugmentedteams.com/">aiaugmentedteams.com</a></p><p>AI-augmented teams is a concept for how the productivity of a digital product team can be boosted by interweaving human and AI tasks into a team workflow. It does not promote a particular tool or AI model. Instead, it describes a collaboration model you can implement with the tools and environment you already have.</p><blockquote><em>It’s not unique in any way. This is how we will all collaborate in a year, and in another year it will be outdated. The sooner we embrace it, the better the chance we’re ahead of the race.</em></blockquote><h3>Why</h3><p>We live in incredible times, when things we never dreamt of are within our reach. Things that were not possible just half a year ago are becoming a commodity. Old ways are inefficient, new ways are immature, and not joining the race means being light-years behind, while joining it means pioneering approaches that will be obsolete before they ripen. AI-augmented teams is a blueprint based on the experience of teams that adopted AI enablers early and stayed enthusiastic about sharing their learnings for the benefit of others.</p><h3>For whom</h3><p>AI-enabled teams can be applied to any group of people collaborating from different roles. It’s very applicable in digital product engineering, but it can also extend to other knowledge and creative work, where AI can structurally boost human productivity.</p><h3>The story of an AI-augmented team</h3><h4>Culture</h4><p>This story is based on my team — a team of goal-oriented, open-minded, egoless engineers. This culture enabled the idea to breed organically. It would never be possible without the openness and flexibility of my teammates.</p><h4>Personal productivity</h4><p>Like most software engineers, we entered 2026 equipped with Copilot, Cursor, and other productivity-boosting AI tools, each of us in our own way, with our own preferences and habits. It was a big productivity boost on its own, but we felt that there was more to gain.</p><h4>Tooling</h4><p>For me, personally, Cursor was a nice tool. Adding MCP servers for collaboration tools (like Jira, Confluence, or Azure DevOps) has taken the AI capabilities to a whole new level. But discovering the Opus model was a game-changer. Previously, I had to spend a lot of time guiding the AI. With these tools in my hands, I could just give the AI a task and trust it to save me a lot of time. Also, gaining experience and figuring out the right ruleset and prompts made the overall productivity much higher.</p><h4>Scope</h4><p>Seeing that AI boosts my productivity by orders of magnitude in software development, I started wondering where else I could apply it. As my responsibilities in the team ranged from portfolio management, through external and internal customer communication and delivery management, all the way to contributing code, I started using AI in all those roles.</p><h4>Automation</h4><p>Some of the activities where I applied AI were repeatable. Reviewing pull requests is a perfect example of an activity where AI will find problems humans will always miss (and vice versa). The combination of Opus, my refined prompt, and MCP servers made my PR reviews so much better than plain out-of-the-box AI reviews that my teammates started asking me to apply it to their PRs. This was clearly asking for automation.</p><h4>Scaling</h4><p>Inspired by the success of our AI experiments, as a hobby, I built a framework that automated the application of AI in our team workflow. Starting with reviewing PRs, which was the most obvious use case, I extended the product to cover other software engineering activities, in order of how frequently we needed them.</p><h4>Sharing</h4><p>Seeing the value it brings, I decided to share this story with you and connect with like-minded people who can build on this idea and help me refine it by sharing their experiences.</p><h3>Our workflow</h3><p>Before we dive into each step of the workflow, let’s agree on an abstraction, which is as applicable to digital product engineering tasks carried out by humans as much as those facilitated by AI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/1*sPMUVtLsli2d725m-D74oA.png" /></figure><p>Long story short: we need to have some domain and contextual <strong>knowledge</strong>, the rules of what is expected of us (let’s call it our <strong>role</strong>), and the <strong>task</strong> we need to perform. A task is something that emerges as soon as there is work to do. For many software engineering tasks, we also need to produce or modify <strong>code</strong>. I will use this abstraction to describe each step of the workflow.</p><h3>1. Portfolio creation</h3><p>A portfolio is our collection of ideas we want to implement. It can be anything from a small improvement to a new product. The ideas for the portfolio can come from anywhere — customers, stakeholders, team members, etc. We need to collect them and describe them in such a way that they are understandable and to avoid duplicates. The outcome should be a well-structured and clear list of ideas, ready to analyze the value and effort so we can decide whether and when to implement them.</p><h4>Task</h4><p>The task emerges as soon as we get a new request from a customer or stakeholder, or we have just held a product strategy session and want to capture the ideas for future implementation. In our workflow, the tasks are still largely collected manually as they often arise from conversations at a coffee machine, in meetings, etc., so ad-hoc channels prevail over structured ones.</p><h4>Role</h4><p>Our role is to collect all the ideas and describe them in such a way that they are understandable and to avoid duplicates. This means that a new product feature request might result in enhancing an existing portfolio item rather than creating a new one.</p><h4>AI augmentation</h4><p>Here we use Cursor as the AI orchestrator with MCP access to our knowledge sources like the wiki, taskboards, and the product backlog. We paste email content, chat messages, meeting transcripts, etc. into Cursor and ask it to position the idea in the portfolio.</p><p>Prompt</p><pre>You are given a transcript of our last product meeting and an email from the CEO. Figure out what sounds like a request to change or add something to our product. Use MCP servers to access our wiki, taskboards, and portfolio to understand what is already available and planned. If the requested work already exists in the portfolio, enhance it. Otherwise, create a new portfolio item.</pre><h4>Knowledge</h4><p>Here our sources of knowledge are communication artifacts like emails, chat messages, meeting notes, requests in service management software, etc., as well as the wiki and other documentation portals describing the current product and its domain.</p><h3>2. Portfolio management</h3><h4>Task</h4><p>The task of portfolio management is usually triggered by new items entering the portfolio and needing high-level value and effort estimates. The value of a portfolio item can also change due to changing market circumstances, the customer base, or the delivery of other portfolio items, so existing items also need to be reevaluated cyclically. Low-value items should be archived.</p><h4>Role</h4><p>Our role is to make sure the portfolio is up to date and reflects the current state of our product and market. This often requires data insights, market research, etc.</p><p>AI augmentation</p><p>AI is getting increasingly better at market research, but we do have access to the customers and AI doesn’t, so it’s best to let AI help us prepare the right interview questions, analyze the answers, etc., so we can enter a discussion with customers well-prepared. AI can also help us prepare online surveys/polls to help us collect data.</p><p>If our product collects data insights, giving AI access to them would be a huge boost for AI facilitation in portfolio management. Without it, AI can suggest SQL queries to extract necessary information from the operational database.</p><p>Prompt</p><p>I can’t share a prompt as we’re not adopting AI here yet, although I see a lot of value and I’ll be working on it.</p><h4>Knowledge</h4><p>Data insights (analytics), databases, polls/surveys</p><h3>3. Backlog sourcing</h3><p>Backlog sourcing is about deciding which items from the portfolio we want to implement in the upcoming iterations. Typically, the portfolio should be the main source for the backlog, but in practice, we also have bugs, incidents, and ad-hoc ideas that bypass the portfolio process. Backlog sourcing is about creating work items on the taskboard and describing them with sufficient detail to be picked up by the team. The workflow here differs between bugs and feature requests.</p><h4>Task</h4><p>The task emerges either as a result of a bug report or incident, or as a result of a decision to implement a feature from the portfolio. Some task sources are automatable, like the promotion of a portfolio item to a backlog item, bug reports from service management software, or errors collected from observability tools. Others are manual, like a bug noticed by the team itself or a phone call from a stakeholder.</p><h4>Role</h4><p>Whatever the task is, our role is to describe it well so the team can pick it up from here. I like to distinguish between bugs and features here.</p><p>Bugs</p><p>Our role is to make sure the bug work item contains enough information on the behavior experienced, the behavior expected, the steps to reproduce the bug, and any condition that might influence the expression of the bug.</p><p>AI augmentation</p><p>The role of AI augmentation is to listen to the task sources like observability tools, service management software, etc., and create bug work items with sufficient information to be picked up by the team. We can also use a special status in the backlog for incomplete bug reports, from where the AI can pick them up, describe them well, and promote them to a status indicating that it’s ready to be worked on. Collecting the required knowledge requires access to the application code, wiki, observability tools (e.g., system logs), and other work items.</p><p>Prompt</p><pre>Your name is Aide Incredible. You are a part of Team [Name], a team of software engineers at [Company].<br>You are helpful, friendly, direct, and to the point.<br>You have expertise in software engineering, code review, and best practices.<br>The codebase is in your workspace in project-specific folders. Enter the project folder, check out the main branch and pull the latest changes before analyzing the code.<br>You have access to the repository via git cli and to [ADO, Jira, Confluence, GitHub, ...] via MCP tools and you can read code diffs and files as needed.<br>Investigate the bug described in {{input.url}} and post your analysis as a comment.<br>1. Identify which repository the bug likely concerns. <br>- If it is related to [concern] - it is likely [repository name]<br>- ... <br>2. Check if there are enough details to understand and reproduce the bug. <br>- If not, investigate the codebase and search the wiki [wiki url] in an attempt to gather more context.<br>- Keep in mind that extra information can be available in attached files or images. You can access them via ADO MCP.<br>3. Based on the wiki and the codebase:<br>- Describe the observed behavior<br>- Describe the steps to reproduce the bug<br>- Describe the problem in a clear way<br>- If possible, describe the expected behavior<br>- Describe how the observed behavior differs from the expected behavior<br>- Analyze the possible root causes of the bug<br>- Describe any conditions that might influence the expression of the bug (settings, data, permissions, etc.)<br>- Look for related work items in [the taskboard], you can access it via MCP<br>- Look for related work in [service management] tickets, you can access it via MCP<br>- Analyze the impact of the bug on the users of the system and propose a communication plan<br>- If you have enough details, use [the internet browser] via MCP to reproduce the problem.<br>- If available, link related work items from [the taskboard] and [service management] tickets.<br>- List any frontend and backend classes and sql files that are likely relevant.<br>- Suggest a solution approach. Provide architectural options and trade-offs if applicable.<br>4. Unassign yourself and assign the ticket to the previous assignee if available or to nobody if not available.</pre><pre>Use MCP to access the taskboard, service management, logs, browser, wiki.</pre><p>(content of the initial bug report / stack trace / etc.) is available as input.url</p><p>Features</p><p>Our role is to describe the feature on a high level, so the team can fully understand the intent and the value it brings. This requires thorough analysis of the existing functionality and any other functionalities, settings, and conditions that influence it.</p><p>AI augmentation</p><p>The role of AI augmentation is to read the source ticket from the portfolio system or any other provided source and turn the product idea into a clearly described set of business requirements. This requires business analysis based on knowledge sources, code, as well as an interview with a product owner or a stakeholder. This is a workflow which requires a couple of rounds of questions and answers. For now, I do it via Cursor, but it can perfectly be done using the comments section in the portfolio system or the taskboard. I usually supplement it with transcripts of my discussion with stakeholders and key experts.</p><p>Prompt</p><p>Round 1 — interactive</p><pre>Analyze the portfolio item [link], search the wiki for related articles [wiki] (you can access it via MCP), and consider the attached transcripts. <br>1. Explain which product and product area will be changed<br>2. Analyze existing functionality related to the new or adjusted one and summarize it <br>3. Suggest possible business and technical knowledge holders<br>4. Explain the functional changes expected<br>5. Describe timelines, impact and business value<br>6. Analyze edge cases and conditions affecting the functionality<br>7. Describe acceptance criteria<br>8. Describe areas requiring further analysis and suggest experts<br>9. Suggest which other portfolio [portfolio] and taskboard items relate to this feature<br>10. Add your findings as a comment in the portfolio item</pre><p>Analyze the outcome, involve mentioned stakeholders, enhance the portfolio item with your findings, and review the comment of the AI.</p><p>Then ask the AI:</p><pre>Analyze the portfolio item [link]. Consider the content and all the comments. <br>Comment on what still needs to be analyzed before we know enough to start development.</pre><p>Repeat until it’s clear.</p><p>After the last round:</p><pre>Create a work item on my [taskboard] taskboard based on portfolio item [link]. Consider the content and the comments.<br>1. Note which product and product area will be changed.<br>2. Summarize any existing functionality related to the new or adjusted one.<br>3. Note possible business and technical knowledge holders.<br>4. Explain the functional changes expected.<br>5. Describe timelines, impact, and business value.<br>6. Analyze edge cases and conditions affecting the functionality.<br>7. Describe acceptance criteria.<br>8. Add any existing knowledge which can be useful during business analysis or development.<br>9. Add links to existing articles, work items, and portfolio items where they can be helpful.<br>10. Outline test scenarios.</pre><h4>Knowledge</h4><p>Wiki, portfolio, taskboard, conversation transcripts, meeting notes, code</p><h3>4. Idea refinement</h3><p>Refinement is about making sure that the requested change is clear enough to be implemented.</p><h4>Task</h4><p>The task to refine a feature emerges as soon as the work item makes it to the refinement column on the taskboard.</p><h4>Role</h4><p>Our role is to enhance the work item with enough details to build it. The idea needs to be functionally clear, including the edge cases, failure scenarios, impact on and from other features, and configurations like feature enablement and authorization.</p><h4>AI Augmentation</h4><p>In the past, we used to take a lot of notes and manually write documentation, which was incomplete and outdated by the time it was ready. This is one of the areas where AI can add most value.</p><p>AI can be applied before and after refinement meetings. Before the meeting, the AI can analyze the portfolio item, the related work items, wiki articles, and code, and suggest a set of questions to ask the product owner or stakeholder.</p><p>It’s important to make it a habit to record a transcript of all potentially relevant meetings.</p><p>Prompt</p><pre>Analyze the refinement meeting transcript and create a wiki page in the section [link] with refinement notes. Search existing wiki pages to gather more context. Link the related pages. Don&#39;t lose any information. Add sections with open questions and with actions. Look for contradictions and inconsistencies in the concept and summarize them.</pre><h4>Knowledge</h4><p>Wikis, taskboard items, meeting transcripts</p><h3>5. Technical design</h3><p>AI-augmented technical design is an iterative, conversational process. In larger projects, consistency is way more important than finding the most optimal solution to a single problem. The best technical designs arise from first understanding the existing system, then the problem, and then having a discussion where risks are discovered and the “least evil” is chosen.</p><h4>Task</h4><p>In technical design, the task is to come up with a high-level architecture and implementation approach which addresses the non-functional requirements, considers constraints, and prioritizes trade-offs. This is also the moment to discover technical bottlenecks and idea inconsistencies, often leading to changes in the functional requirements.</p><h4>Role</h4><p>Our role is to enhance the feature taskboard item or wiki with enough details to estimate the work and to make implementing the solution as straightforward as possible.</p><p>AI Augmentation</p><p>AI is amazing at discovering existing patterns, investigating currently used frameworks and libraries, and proposing implementation directions, but it needs engineers as discussion partners to make decisions.</p><p>Prompt</p><pre>Analyze the wiki work item [link], the related work items, and the refinement notes [wiki] and propose some technical design options for the feature. Scan the existing codebase and inventory existing patterns, frameworks, and libraries. In your design, be as consistent with the existing codebase as possible. If it would result in a significantly better solution, you can propose changes to the existing patterns or frameworks, but explain your reasoning in detail. Propose a couple of alternatives, describe their pros and cons and recommend one. If you&#39;re proposing new dependencies, verify their license and project health. Prioritize [-ilities most important for the project]</pre><h4>Knowledge</h4><p>Feature on the taskboard, related taskboard items, refinement transcripts converted by the AI into well-structured wiki pages (later reviewed by a human).</p><h3>6. Implementation</h3><p>In the implementation phase, the software is being built. The better the previous phases were executed, the less time and effort the implementation will take.</p><h4>Task</h4><p>The task here is to produce defect-free software which meets the acceptance criteria.</p><h4>Role</h4><p>Depending on the team setup, the role of an engineer varies from just typing the code to owning the complete process, including rolling out the infrastructure (as code) and delivering automated tests.</p><p>AI Augmentation</p><p>AI often produces verbose and overcomplicated code, which is more difficult to maintain than well-crafted handwritten code, so it’s important to understand the consequences of giving AI the autonomy to build your code. AI builds solutions by writing code, seeing if it’s OK, and if it’s not, solving the problem it has encountered. Often not by simplifying the existing code, but by building bridges over bridges over bridges… If the codebase is large or the execution environment is so complex that the AI can only compile the code, you’re running into a risk that the AI-produced code will compile, but the project won’t build. Or if the AI can build the project but not run tests, you’re running into a risk that the AI-produced code will compile and build but won’t work as expected, or your new solution will cause regression in other places.</p><p>You can give the AI a lot of autonomy on small codebases which can be built and automatically tested by the AI. For non-mission-critical components, you can even let the AI build and test the solution on its own. But who will be responsible for this solution being secure, and who will wake up at night to fix it if the customers are experiencing problems? You really want to leave this step up to the engineers.</p><p>Most engineers are innovative by nature. Most likely your engineers already use AI-enabled IDEs and use AI to some extent when building solutions. This is great and should be encouraged. There is no consensus on how to use these tools best, so it’s important to promote knowledge sharing, discussions, agreements, and exploration of ideas that facilitate it (like <a href="https://agents.md/">agents.md</a>).</p><p>It’s OK to let the AI fully implement smaller fixes and let the engineers review the code and own the issue further. Sometimes it’s the cheapest way to solve the simplest bugs. Even if the AI isn’t right at the first attempt, it saves a lot of searching where the problem is and which code to modify.</p><p>Prompt</p><pre>Your name is Aide Incredible. You are a part of Team [Name], a team of software engineers at [Company].<br>You are helpful, friendly, direct, and to the point.<br>You have expertise in software engineering, code review, and best practices.<br>The codebase is in your workspace in project-specific folders. Enter the project folder, check out the main branch if you&#39;re creating a new PR or switch to the branch of the PR if you&#39;re updating an existing one and pull the latest changes. <br>Consider PR comments.<br>You have access to the repository via git cli and to [ADO, Jira, Confluence, GitHub, ...] via MCP tools and you can read code diffs and files as needed.<br>Investigate the task described in {{input.url}} and read all the comments.<br>1. Identify which repository the bug likely concerns. <br>- If it is related to [concern] - it is likely [repository name]<br>- ... <br>2. Check if there are enough details to understand the problem and produce a solution. Follow suggestions from comments. <br>- If not, investigate the codebase and search the wiki [wiki url] in an attempt to gather more context.<br>- Keep in mind that extra information can be available in attached files or images. You can access them via ADO MCP.<br>3. If you do not have enough information or if you would like to verify anything with me before creating the PR, ask your questions in a comment.<br>4. If you do have enough information, create a PR with the best solution you can come up with or update an existing one if it exists.<br>5. Make sure to update the corresponding tests <br>6. Add new tests to cover the new functionality, if applicable<br>7. Make sure that the build succeeds and that the tests pass.<br>8. Update the work item with a summary of the changes and a link to the PR.<br>9. Unassign yourself and assign the ticket to the previous assignee if available or to nobody if not available.</pre><h3>7. Review</h3><p>Code review is the most important practice aimed at improving the quality of the solution. Especially in remote teams, this is where the discussion on risks and best practices arises. Also, many harmful defects are caught at this phase; this is way cheaper than in any later phase.</p><h4>Task</h4><p>The task of code review is to identify risks related to the implementation done and suggest better ways to do things.</p><h4>Role</h4><p>Our role here is to catch potential defects and maintainability issues.</p><p>AI augmentation</p><p>AI is great at some things where (most) humans are weak, e.g., spotting typos or copy-paste mistakes. It’s also weak at some things where (most) humans are strong, e.g., understanding the big picture or taking tribal knowledge into account.</p><p>Code review is the lowest-hanging fruit and the greatest opportunity for AI augmentation in the software development process.</p><p>Automated code review tools have been already available and widely used for years. I haven’t seen one yet that would take your complete context into account and ask not only if the code is correct, but also if it completely addresses the work item functionally. With the latest advancements in AI and the pattern I’m proposing, you give the AI enough context to review not only for correctness but also for completeness.</p><p>Prompt</p><pre>Your name is Aide Incredible. You are a part of Team [Name], a team of software engineers at [Company].<br>You are helpful, friendly, direct, and to the point.<br>You have expertise in software engineering, code review, and best practices.<br>Review code changes in the PR: {{input.url}}.<br>The codebase is in your workspace in project-specific folders. Enter the project folder, check out the branch of the PR and pull the latest changes. <br>Consider PR comments.<br>You have access to the repository via git cli and to [ADO, Jira, Confluence, GitHub, ...] via MCP tools and you can read code diffs and files as needed.<br>If there is a work item attached, read it, including comments, and verify that the PR addresses it completely.<br>Provide a thorough code review for the given pull request, focusing on code quality, correctness, performance, security, adherence to best practices and consistency with existing codebase.<br>If there are SQL files changed, make sure there is a matching migration.<br>Check if corresponding tests were added.<br>Post your analysis as comments on the PR and submit your vote (approval/rejection). Focus on high and medium impact issues.</pre><h3>Knowledge</h3><p>Refinement notes in wiki, work items, PR (pull request), code</p><h3>8. Quality assurance</h3><p>Quality assurance covers the broad question of identifying defects in the software. It includes test scenario management and execution, test data management, test automation, and in some companies, also monitoring the solution in the production environment.</p><p>Test scenarios should have been prepared during the backlog sourcing and adjusted during the refinement phase as they’re needed for the implementation phase, so that the engineers (and AI) can test their own code. Test scenarios also help engineers understand the requirements better.</p><h4>Task</h4><p>The task of quality assurance is to find defects before the software gets rolled out to the users.</p><h4>Role</h4><p>The role of QA is to functionally test the individual solution as well as the complete product for regression.</p><p>AI augmentation</p><p>AI is great at writing up test scenarios and discovering edge cases based on the code and documentation. It’s also becoming increasingly better at executing tests where things have to be observed and a judgment has to be made ad-hoc, like layout issues on a website. AI can perfectly use MCP to access a headless internet browser, produce screenshots, and analyze them for visual anomalies.</p><p>Prompt</p><p>I can’t share a prompt yet as we haven’t adopted AI for this stage yet, but I see a huge opportunity here and I’ll be working on it.</p><h4>Knowledge</h4><p>Test scenarios should be available as part of the work item or in wiki pages.</p><h3>9. Documentation</h3><p>Documentation is very important as it helps new people understand the system and the product.</p><h4>Task</h4><p>Our task here is to document the product enhancement. We also need to make sure to update any existing documents where our changes affect them.</p><h4>Role</h4><p>Our role is to document the system architecture and the functionality for various audiences like software engineers, other roles in the company (e.g., customer support), and the customers. AI has become a new audience, and documenting things for AI is becoming increasingly important.</p><p>AI augmentation</p><p>AI is great at creating documentation based on meeting transcripts and already existing knowledge. It’s important to make a habit of recording meetings company-wide and creating high-quality documentation.</p><p>I can imagine automating this part with the use of an MCP server giving your AI Aide access to your meeting recordings, but with our team, we’re not there yet.</p><p>Prompt</p><ol><li>Based on a meeting with a subject matter expert:</li></ol><pre>Analyze the meeting transcript and create a wiki page in the section [link] describing the topic. Search existing wiki pages to gather more context and to avoid duplicating content. Link the related pages. Don&#39;t lose any information. Add sections with open questions and with actions. Look for contradictions and inconsistencies in the concept and summarize them.</pre><ol><li>Based on the codebase:</li></ol><pre>Create a wiki page documenting the feature [feature]. Read the codebase, the refinement notes [wiki] and the system design [wiki]. Document where to find the feature, how to use it, what conditions have to be met, what are the required authorizations and feature toggles. Explain functionally how the feature works. If it takes any input, explain the conditions for the input files and data.</pre><p>—</p><h3>System architecture</h3><p>As many of these tasks repeat often and are carried out by many people in the organization, I have automated the execution by building a framework, following the architecture below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*BQIN-r63onfM92BRF-GyWQ.png" /></figure><h3>Lessons learned</h3><ol><li><strong>Keep your knowledge sources clean.</strong> You might remember that some articles in your wiki are no longer valid and concepts have changed, but the AI doesn’t know that. New decisions will be made and new documentation will be created based on your invalid and outdated wikis, which will make the new AI-generated documentation invalid from the start. And, if you don’t catch it early, you might even get new software built based on these outdated concepts.</li><li><strong>Digitalize your knowledge.</strong> It’s as easy as recording a transcript of every meeting and asking the AI to document the knowledge in the wiki. This way, it becomes available for your organization and for the AI when working on new concepts or troubleshooting.</li><li><strong>Always review AI work.</strong> We always hold some context in our heads. When we enter the refinement meeting, each of us has some understanding of the problem, or at least the existing environment. AI doesn’t. It will get the background information by reading wikis and work items. When we talk, we assume certain knowledge which the AI will not have at the moment. It will likely fill those gaps by making assumptions. When documenting the meeting based on a transcript, the AI will make assumptions to fill in the knowledge gaps. It’s very important to review the AI work at this point because this newly created documentation becomes the basis for human and AI understanding from now on and will be further used as base knowledge. So an error in this stage will be amplified over time in all future human and AI work.</li><li><strong>Don’t go cheap on the model.</strong> Tokens cost money. Tokens for more powerful models cost more money. Still, it’s just a fraction of the value you get, and choosing the right model makes a world of difference. So far my default is Opus 4.5, but I’m planning to experiment with other models and find the best one for each task.</li></ol><h3>FAQ</h3><ol><li><strong>So, when can I fire my software engineers?</strong></li></ol><p>In AI-augmented teams, software engineers play as important a role as ever. We use AI for the activities that humans are not the best in (like spotting typos, copy-pastas, and other mistakes when reviewing someone else’s code) or nobody ever had the time for (documenting ideas properly before development and documenting the products after). Most engineers have innovation in their blood and they already use the AI in the coding process by using smart IDEs like Cursor or Antigravity. Don’t force anything upon them. Give them the room and the support to use these tools and help them organize it by facilitating discussions on where and how we want to use AI and help them discover initiatives that aim at improving the way they do it, like <a href="https://agents.md/">agents.md</a>. Support those who want to use AI and let the results of their work convince the rest.</p><p>So don’t fire your engineers. Instead, invest in them and help them become AI-augmented engineers. And in the meantime work on your business strategy, because with AI-augmented teams, soon you’ll have the capacity to realize your dreams.</p><p>That said, with AI playing such a huge role, the role of the engineer is changing. You need those who own the outcome and use the best tools available to achieve it. The passive “code monkey” role is becoming obsolete.</p><p><strong>2. I got lost, what product are you selling?</strong></p><p>I’m not selling anything. I’m happy and proud of how my team pioneers the new ways of working and I’m sharing my experience with you, so you can take what you like and leave the rest. I would also love to hear about your experience, so we can learn from each other.</p><p><strong>3. Will you share your code?</strong></p><p>I would like to open-source it, but to be frank, I have vibe-coded the whole thing in one weekend. It does the job perfectly, but the code is what you can expect from a weekend project. But if you still want it, give me a sign, and I’ll share it with you.</p><p><strong>4. Could we have a talk?</strong></p><p>We can always have a talk. Just message me via <a href="https://www.linkedin.com/in/radek-kowalski">LinkedIn</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=46c2b4365b9f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Would you like to do better at technical job interviews?]]></title>
            <link>https://medium.com/tech-kitchen-kramp-hub/would-you-like-to-do-better-at-technical-job-interviews-88f8d98a29f4?source=rss-4bdaf6fafd6f------2</link>
            <guid isPermaLink="false">https://medium.com/p/88f8d98a29f4</guid>
            <category><![CDATA[resume]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[recruitment]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[jobs]]></category>
            <dc:creator><![CDATA[Radek Kowalski]]></dc:creator>
            <pubDate>Thu, 28 Jan 2021 06:44:52 GMT</pubDate>
            <atom:updated>2021-01-28T09:59:11.483Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dduV-rH3k2CkAaop" /><figcaption>Photo by <a href="https://unsplash.com/@kazuo513?utm_source=medium&amp;utm_medium=referral">Kazuo ota</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>It’s been 8 years since I first sat on the more comfortable side of the recruitment table. I was a developer and my team needed more of my kind. I might have been more stressed than some of the candidates. I took a long time to prepare, reading over and over through the CVs and crafting the interview questions for each candidate.</p><p>Now, hundreds of interviews later, I’m a lot more comfortable and efficient at talking to potential colleagues. What hasn’t changed is that I only have an hour to learn about the candidate and only their resume and LinkedIn profile to prepare upfront. That’s why small things matter. Whatever I notice during that hour or on the A4, are my only clues on the person I would be working with the coming years. Unfortunately, there are lots of great candidates that simply suck at interviews and often I can’t tell them from the poor candidates.</p><p>To draw the stage, I am a solutions architect at a corporate startup. We’re backed by a large, successful company. We’re located at the heart of one of the busiest cities of The Netherlands and we make use of cutting edge technology. We have an awesome, inclusive culture. And we’re always looking for software developers. This makes my task of getting the candidates enthusiastic about the company very easy, but it also means that we’re setting the bar pretty high. Would you like to know how I perceive you when you sit there on the other side of the table? Read on.</p><h3>The resume</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-EplW_rgk347N1oE" /><figcaption>Photo by <a href="https://unsplash.com/@markuswinkler?utm_source=medium&amp;utm_medium=referral">Markus Winkler</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The goal of the resume is to convince me and my colleagues that it’s worth spending the time and effort on getting to know you better. I’ll be looking for what’s relevant for me and my employer. First I’ll give it a quick scan, identify the relevant points and focus on those. If the document is long and detailed on the irrelevant parts, I might miss the relevant ones. Don’t write essays. No more than one A4, please. I don’t need to know which elementary school you attended or what you worked on 15 years ago (unless it’s very relevant). Mention only your highest level of education. Highlight your focus and achievements from your last couple of roles. Explain your motivation. The best resume is one that attracts my attention and leaves me craving for more details.</p><h3>Code samples and publications</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jfxxsGP7E3bA-HL6" /><figcaption>Photo by <a href="https://unsplash.com/@pankajpatel?utm_source=medium&amp;utm_medium=referral">Pankaj Patel</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Do you have a code repository with your hobby projects? Did you write a technical article on Medium? Add a link to your repo and articles feed to the resume. This will encourage me to invest more effort in learning about you. And you can be pretty sure we will talk about your article and code once we meet. We will be discussing your work, which will create an opportunity for you to impress me. Of course, it can also have an adverse effect. Don’t shoot yourself in the foot by sharing poor quality code or one you can’t explain.</p><h3>Get ready for the interview</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eENO1Bg5YLzETzSQ" /><figcaption>Photo by <a href="https://unsplash.com/@markuswinkler?utm_source=medium&amp;utm_medium=referral">Markus Winkler</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Were you invited for an interview? That’s awesome! Now it’s time to prepare.<br>Do you know what we do? Sure, we’ll explain it in the interview, but the first time you hear it, you will need time to digest. This way you miss a chance to ask relevant questions and to show us that you come prepared. Look at our website, check the company profile on LinkedIn. Look at the names in the interview invite. Can you find the interviewers on LinkedIn? Check their background so you know what to focus on. Is your story going to sound the same if you tell it to an HR manager, a product owner or a developer? Do the profiles of the interviewers reveal their preferred tech stack? Did they publish any articles recently? Look for common interests so you can bring it up during the interview and demonstrate your knowledge on the shared topics during the interview.</p><p>What questions would you ask if you were interviewing for the position? Don’t let the obvious questions take you by surprise. Why would you like to work for us? Why are you leaving your last job? What do you expect from your next employer? What gives you energy? Where are you heading with your career? How can you help us? These are short but powerful questions that you’ll surely hear in one or other form.</p><h3>The interview</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XexTqKFoyCYyTTj9" /><figcaption>Photo by <a href="https://unsplash.com/@steve3p_0?utm_source=medium&amp;utm_medium=referral">Steve Halama</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I remember hiring some great guys who delivered mediocre assignment code. I can’t remember hiring a single person, who delivered excellent code but came across as a poor match in the interview.</p><p>The interview mostly starts with a round of introductions. Memorize the name of the person you’re talking to and use it. It helps make the conversation more personal and it’s a sign of your outgoingness.</p><p>Yes, we really want to get to know you. Tell us a bit about yourself. Don’t start with your working history. First of all, you’re a person and this is our chance to get to know each other a bit before we commit to seeing each other in the office every day. What are you like? What do you like?</p><p>Yes, of course, we want to hear about your working history, but it doesn’t have to be complete. Don’t start with your first job and go all the way to the current one. I don’t need to know in detail what did you do ten years ago unless it’s relevant for the role.</p><p>Did you do your homework? Do you know what we do and why? Do you know what technologies we use? Do you know what is the role of the person you’re talking to? Ask if you don’t. Craft your message to the audience. Don’t explain the details of your favourite logging library to the HR manager. Talk about code to a developer. Explain your decisions to an architect. Tell the manager how you work in a team. Pick the details from your past that explain why you’re a match for the role. I don’t need to know that you were delivering pizza during your studies. And I don’t need the full list of technologies you used in the past. Pick one or two, that are the most relevant and explain why you used those and what would you do differently if you were doing it again.</p><p>You’ll be asked some technical questions. Their obvious goal is to verify your knowledge. One other thing they do is reveal your attitude. Don’t you know the answer? The best thing to do is admit it and ask what the answer was. This way we’ll see you as a curious and honest person, who likes to learn. Don’t start throwing buzzwords around. Don’t evade the question by telling us everything else you know or ridiculing the question and the interviewer. We’re not risking hiring a person who would cheat on us.</p><p>Don’t force yourself in someone else’s shoes since they’re not comfortable in the long run. Don’t try to be a match at any cost. Share your opinions and preferences. This is the moment to make sure you can pursue your personal and professional goals at the company.</p><p>A job interview is a conversation where my goal is to learn about you and yours is to get to know your potential future employer. Don’t be shy. Ask questions about anything that might impact your decision. The people you’re talking to might soon be your colleagues. Ask them about their experience with the company, their motivations, their current challenges. Be aware that the questions you ask are often better hints about you than the answers you give.</p><h3>Development task</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9r4OIkTJsI4tIQji" /><figcaption>Photo by <a href="https://unsplash.com/@ffstop?utm_source=medium&amp;utm_medium=referral">Fotis Fotopoulos</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>If you’re applying for a developer role, most likely you’ll be asked to show your skills. Many people see it as a coding assignment. Lots of candidates focus only on this part, forgetting that this is a taste of how you work. How do you deal with poor requirements? Do you ask questions? Are your questions relevant? Do you only ask questions or do you propose solutions?</p><p>Why are you doing this assignment in the first place? We don’t need the software you’re building. We want to see how you deal with challenges. Were you asked to spend no more than 4 hours? Do you need 10 hours to do it right? Can it be deliberate? Will you spend those 10 hours? Will you tell us you did? Or will you only use the time given? How will you use it? Will you deliver a functionally complete, dirty piece of code without documentation and reasoning behind your choices? Will you focus on the functionals and ignore the non-functional requirements?</p><p>Have you ever asked yourself who will assess your deliverable and what will they expect from it? Most likely your potential colleagues from the dev team would like to see maintainable, readable code. They won’t be impressed by fancy frameworks unless they see the value. They don’t want to waste time dealing with stability issues in the future so they’ll appreciate the usage of stability patterns and good observability. They’ll spend just a couple of minutes assessing your code. If they can’t immediately follow your solution, you lose points. They won’t read tomes of documentation. A small test suite will come handy both to prove your focus on quality and to make it easier to understand your code structure.</p><p>Good luck with your interviews! I hope you’re feeling a bit better armed. And if we ever meet at the recruitment table, please mention this article. Then I will know you did your homework.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88f8d98a29f4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tech-kitchen-kramp-hub/would-you-like-to-do-better-at-technical-job-interviews-88f8d98a29f4">Would you like to do better at technical job interviews?</a> was originally published in <a href="https://medium.com/tech-kitchen-kramp-hub">Tech Kitchen @Kramp Hub</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Down the DDD rabbit hole I go]]></title>
            <link>https://medium.com/tech-kitchen-kramp-hub/down-the-ddd-rabbit-hole-i-go-1ae3c63ad236?source=rss-4bdaf6fafd6f------2</link>
            <guid isPermaLink="false">https://medium.com/p/1ae3c63ad236</guid>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[bounded-context]]></category>
            <category><![CDATA[domain-driven-design]]></category>
            <category><![CDATA[ddd]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Radek Kowalski]]></dc:creator>
            <pubDate>Tue, 15 Dec 2020 11:14:18 GMT</pubDate>
            <atom:updated>2020-12-15T11:14:18.409Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Vincent Le Moign, CC BY 4.0 &lt;https://creativecommons.org/licenses/by/4.0&gt;, via Wikimedia Commons" src="https://cdn-images-1.medium.com/max/600/1*mglXymyqV1AC0iaCZy170A.png" /></figure><p>“Down the DDD rabbit hole I go”¹ wrote a colleague of mine in a PR². This made me wonder how a technique that was invented to make things easy, makes an experienced software developer feel lost. Let’s explore the <strong>D</strong>omain <strong>D</strong>riven <strong>D</strong>esign together and see if we can make you feel a bit at home in the rabbit hole.</p><p>Imagine you’re part of a development team, working on an application that solves a particular business problem. The code is nicely structured and you can easily find the piece of code you have to change once you know what is asked of you. You can picture the complete scope of a transaction in your head when a colleague of yours mentions an upsert of that object. You’d be an excellent performing team if only the requirements were clear, there were no scope creeps, last minute changes and that annoying business guy would finally understand that you can’t have the same item twice in a set.</p><p>Have you ever experienced anything like that? Does the story above reflect your own thoughts? Should we try to “tackle the complexity in the heart of software³” in 10 simple steps?<br>The solution to your problem is the completeness and shared understanding of the requirements by the developers as well as the stakeholders.</p><p><strong>1. Understand the problem (and don’t jump to solutions).</strong></p><figure><img alt="Khaydock, CC BY-SA 3.0 &lt;https://creativecommons.org/licenses/by-sa/3.0&gt;, via Wikimedia Commons" src="https://cdn-images-1.medium.com/max/256/1*-fuBvtsssrgZI31NN1aRvg.gif" /></figure><p>The primary goal of your software is to solve a business problem. Business problems can be solved in many ways. If you ask the problem owners for the solution, they will suggest ones they had seen in the past, which is not necessarily the best. In a traditional IT organization there might be a chain of people passing the information between the business and the developers. The worst scenarios I’ve seen involved a business person describing the past solution, the analyst noting it down as the requirements and the developers blindly rebuilding the solution described by the business person, including misunderstandings emerging on the line. This disables the teams from understanding the problem their software is supposed to solve.</p><p>As a developer, let the product owner, the project manager or whoever with a good network in the organization connect you to the problem owners. Ask the problem owners to describe the problem in their own words. Listen actively and don’t try to correct them. You want to know how they perceive the problem. Make sure you understand the context.</p><p><strong>Tip</strong>: some business people will try to bridge the gap between them and you by making an effort to talk in technical terms. They will use vocabulary specific to the systems they’re used to. Encourage them to use their natural business language.</p><p><strong>2. Build a glossary</strong></p><figure><img alt="Image by &lt;a href=”https://pixabay.com/users/pdpics-44804/?utm_source=link-attribution&amp;amp;utm_medium=referral&amp;amp;utm_campaig" src="https://cdn-images-1.medium.com/max/320/1*QYK-gJx0CM7eJei6yjB6WQ.jpeg" /></figure><p>You just heard a fascinating story in a language you don’t fully understand. Don’t panic. If you’re in a room with business people from different teams then most likely you’re not the only one confused. Get yourself some coffee and a large sheet of paper. Some good quality stickies might help as well. Now it’s the time to describe the problem together.</p><p>Start from building a glossary. Some terms will be new to you, but all the business people will feel comfortable about them. Learn them. Some other terms will trigger discussions between the business people. You definitely want to note that down. Most likely they’re all correct. This might mean that you have just identified a concept that plays a different role for these different teams. Don’t ask them to decide how we’re going to call it (yet). Note down both terms in your glossary, along with the definitions given by both teams. Note down that there is a relation between the terms you yet need to explore.<br>Don’t focus only on objects. Keep in mind that every action also deserves a good name. What you’re building now is referred to by the DDD as the ubiquitous language.</p><p><strong>3. Describe the problem</strong></p><figure><img alt="Henning Schwentner, CC BY-SA 4.0 &lt;https://creativecommons.org/licenses/by-sa/4.0&gt;, via Wikimedia Commons" src="https://cdn-images-1.medium.com/max/512/1*1PTI0ucDhPQ-HPS7aZhj6A.jpeg" /></figure><p>Using the glossary you have defined together with the problem owners, capture their story in diagrams. Make sure that all the terms you use (including actions) are explained in the glossary.</p><p>This is the moment you want to give some structure to the conversation. Guide the problem owners to think in terms of actors, intents, actions and events. There are many methodologies that help you structure this part. <a href="https://www.eventstorming.com/">Event storming</a> is my personal favorite. <a href="https://domainstorytelling.org/">Domain storytelling</a> is another good choice.</p><p><strong>4. Let the problem owner define your test cases</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/240/1*pA3QHCUBAPiOByJCX83Kww.png" /></figure><p>Who knows the edge cases of the business process you’ll be implementing? Who would come to you with “last minute changes” after they had seen your work in progress for the first time? Who will identify some new edge cases after golive, causing the scope creep? Yes, that’s the problem owner. Let them work for you.</p><p>Now that you share the language and the understanding of the problem, let them define the acceptance criteria and the tests. Of course you can’t just ask them to do it, since they wouldn’t know where to start. You have to guide them by asking the right questions.</p><p>Very likely the flow you have drafted together is the happy flow⁴. Make them think what should happen if things do not go as planned. Ask what should happen if a particular step in the process fails or (even worse) if it’s taking ages and might never finish. What if the value of a variable is extremely high, negative or a fraction? What if it’s absent? Is the flow the same for all the customers? For all the products? Do you need to be able to adjust the process seasonally or toggle some parts on and off? Capture the answers in the ubiquitous language and note them down in Behavior Driven Development⁵ style. BDD is not strictly part of DDD, but it naturally combines the advantages of the Test Driven Development⁶ with those of the DDD. You want your tests to sound like:<br><em>“Given the total shopping cart value of €50 or above, when the buyer finalizes the payment, then a promotional code with 10% discount is issued and sent to the buyer.”</em></p><p><strong>5. Identify the actions and the events</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/891/1*hqBRU9ltNhG4Kp_QOET-KQ.png" /></figure><p>Actions are what you do. Events are things that happen. Things happen for a cause. And you take actions due to things happening. One’s actions are others’ events. What I do as an action, you observe as an event. Behaviour is the way you react to events, the actions you take.</p><p>Programmers often focus on objects and their properties when they design software. A DDD practitioner focuses on behaviour. He describes the events happening and the actions that are supposed to be taken in reaction to the events. In object oriented programming behaviour is part of an object. In DDD behaviour isn’t owned by any object in particular (although it’s usually related to one or more of them).</p><p><strong>6. Identify the entities and the value objects</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/121/1*GAPnBJJmUhLdETjE1Yrfdw.png" /></figure><p>Events always happen in a context. There could be a person or a system involved. The event takes place at a certain moment in a particular place.<br>Most of that context is irrelevant. You don’t want to know it. You want to capture the relevant information about the context of the event in entities. Was an item added to a cart? Which item? To which cart? This is an example of an action (as perceived by the eyes of the actor) or an event (as perceived by the others) along with the entities and the value objects that are part of the context of the event.</p><p>Value objects are just pieces of information. Two value objects with identical properties are indistinguishable. They are deprived of identity. They can be as simple as a textual value or contain tens of properties. Still if they’re identical, there is no need to tell one from the other. They never change. They‘re immutable by nature. They can only be replaced. In your domain model they’ll always belong to an entity (directly or indirectly). Universal Modelling Language⁷ would describe the relation between the entity and its value objects as composition.</p><p>What differentiates the entities from the value objects is their identity. You can have two identical entities, that preserve their own identity. They can be mutated independently. Each of them can be referenced without any impact on the other. This gives them their very own lifecycle. And lifecycle is expensive. That’s why you want to avoid entities as long as you can do with just value objects.</p><p>Don’t confuse logical domain entities with data entities. It’s perfectly normal to represent DDD value objects as data entities in a relational data model. And it’s perfectly normal for value objects in a relational database to have an identifier column, that’s purely technical and should never leak into the domain model.</p><p><strong>7. Identify the aggregates and the bounded contexts</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*Xh4wiimlrIhleucWw0IbHg.png" /></figure><p>Bounded context is the single most important concept in DDD. It’s a logical area where certain language applies and where the entities are allowed to know about each other. It constitutes the boundary of a logical model, that should later be followed by boundaries in the implementation and in the ownership by the development teams. A single team can work on multiple bounded contexts but you don’t want multiple teams to work on the same bounded context.</p><p>If you identify an entity that you can’t properly describe without referring to another entity, yet it has its own identity, you have just discovered an aggregation relationship (as in UML) between the two entities. Go over all your entities and discover the dependencies. If you need to mention entity A in order to explain what entity B is, make sure you define what B is without referring to A. Entity B will be your aggregate root. The aggregate root together with the aggregated entities together form an aggregate. Every entity, that doesn’t belong to any aggregate is also an independent aggregate root.</p><p>Start from considering every aggregate an independent bounded context. Keep in mind that only the aggregate root may be referenced from outside of the bounded context. If you need to refer to an entity from outside of a bounded context, you need to make it a root of its own aggregate.</p><p>Atomic modifications may only happen within an aggregate. If you identify an action that has to happen atomicly across multiple aggregates, you should either consider making them part of the same aggregate or redefining the process in such a way that eventual consistency can be applied.</p><p>You want to minimize the size of your bounded contexts to minimize the interdependencies between your entities. If you see a lot of relations between two bounded contexts, perhaps they belong together after all. If you notice islands of entities with just single relations within your bounded context, they make great candidates for separate bounded contexts.</p><p>If you notice single entities with lots of events or entities related to them (especially if different people refer to them with a different name), you might be looking at an entity that has to be modelled as part of multiple bounded contexts. It might have a different name and will have a different set of behaviours in each of them. What you call a product in your product information bounded context, might be called “an article” in the pricing context. That’s perfectly fine. Don’t try to convince two departments that they’re talking about the same thing. Most likely they’re not.</p><p><strong>8. Define the relationships between the bounded contexts</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/1*5HDZbo9OEjKOffZv6zKBHw.png" /></figure><p>What impact does the structure of your bounded contexts have on your landscape? Earlier I stated that the boundary of the bounded context is also the boundary of your language. From your holiday experience you might have noticed that two people speaking different languages might find it hard to communicate. Do two bounded contexts encounter the same challenge? How did you manage to ask your French host where the coffee was? Did you use a dictionary? An online translator? What tools does a bounded context have to talk to another bounded context?</p><p>In his <a href="https://www.oreilly.com/library/view/implementing-domain-driven-design/9780133039900/">book</a> Vernon Vaughn describes a number of possible relationships between bounded contexts. They mostly boil down to:</p><ul><li>some bounded contexts being directly aware of the language of the other bounded contexts when referring to the concepts owned by those other bounded contexts</li><li>multiple bounded contexts sharing a language, while preserving the isolation of entities</li><li>existence of an “anticorruption layer”, being the translator, aware of the languages spoken by each bounded context</li></ul><p>The type of relationship you define will largely depend on the organization structure of the business and the development organizations. Bounded contexts owned by the same business and development teams will mostly share big a part of the language. Bounded contexts meant to work together but having different owners will mostly be merely aware of each other. You will likely use an anticorruption layer to talk to third party bounded contexts.</p><p><strong>Tip: </strong>While it’s important to minimize the entity interdependencies by minimizing the bounded contexts, very fragmented bounded contexts will lead to fragmented ubiquitous languages. You want to avoid it by defining a clear relationship between multiple bounded contexts, that will allow you presrve a consistent language across multiple bounded contexts.</p><p><strong>9. Map your model to the code</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*lV9FJH-Mp9ypHIUHn3AH4g.png" /></figure><p>How you map your logical model to the application code largely depends on your own development practices. The most important thing is that your code follows your design.</p><p>Starting from the isolation, a model with 10 bounded contexts could be deployed as 10 (or more) microservices as well as in a form of a nicely modularized monolith. What’s important is that your bounded contexts remain isolated (e.g. in form of packages) and that you use well-defined interfaces that expose only the aggregate roots to the other bounded contexts. You don’t want to directly reference entities of one bounded context from another bounded context. If you do it, you end up with a single bounded context, which should be reflected back in the logical model with all the consequences (like using the same language).</p><p>Pay attention to the actions you expose on your bounded context. They should be identical with those you have identified together with the problem owner. Use the same names as in the logical model. Accept only those parameters you have described together with the business as relevant parts of the context. Derive as much as you can from other parameters to avoid redundancy or (what’s worse) inconsistency.</p><p>A common mistake I observed is building CRUD⁸-based interfaces while trying to follow DDD methodology. CRUD approach, being the foundation of REST inherently conflicts with DDD by being resource-centric and putting an entity in the center of attention. This is a straight path to the anemic model⁹ antipattern. In DDD you want to focus on behaviour, which should exactly reflect the actions described by the problem owners. You don’t want to supply complete entities as the context of your actions. You only want to pass the details that are strictly necessary to perform the action and reference the aggregate root by its public identifier. You can still use all the tools intended for RESTful APIs, but you wouldn’t follow the resource-based URL structure and the HTTP verbs.</p><p><strong>10. Don’t try to make everyone happy</strong></p><figure><img alt="Image by &lt;a href=”https://pixabay.com/users/geralt-9301/?utm_source=link-attribution&amp;amp;utm_medium=referral&amp;amp;utm_campaign" src="https://cdn-images-1.medium.com/max/320/1*t1ALAHSz2q_k2yqg6ByaYw.jpeg" /></figure><blockquote><em>“All models are wrong, but some are useful”¹⁰</em></blockquote><p>You will most likely hear that your model is incomplete. You should see it as an advantage. Each model has a goal. Your model should be sufficient to achieve that goal, while remaining as minimal as possible. It’s important to be aware of the greater picture, but it’s crucial to focus on what’s needed now. You’ll need to iterate. And add only the things you need. What about the rest? YAGNI¹¹.</p><ol><li>I’m pretty sure that this particular fan of Alice in wonderland meant something like “there’s weird stuff about to happen”</li><li><strong>P</strong>ull <strong>R</strong>equest — a mechanism to discuss the code changes between developers</li><li><a href="https://www.oreilly.com/library/view/domain-driven-design-tackling/0321125215/">Domain-Driven Design: Tackling Complexity in the Heart of Software </a>— the name of the famous DDD book by Eric Evans. Highly recommended (but beware, you won’t finish it in a couple of evenings!)</li><li><a href="https://en.wikipedia.org/wiki/Happy_path">Happy Flow</a> — a default scenario that focuses on what we want to happen and ingnores any exceptional situations</li><li><a href="https://medium.com/r?url=https%3A%2F%2Fcucumber.io%2Fdocs%2Fbdd%2F"><strong>B</strong>ehaviour <strong>D</strong>riven <strong>D</strong>evelopment</a> — a practice of business people collaborating with the developers on building the tests upfront</li><li><a href="https://www.guru99.com/test-driven-development.html"><strong>T</strong>est <strong>D</strong>riven <strong>D</strong>evelopment </a>— a practice of having the tests written before writing the actual application code.</li><li><a href="https://medium.com/r?url=https%3A%2F%2Fwww.uml.org%2Fwhat-is-uml.htm"><strong>U</strong>niversal <strong>M</strong>odelling <strong>L</strong>anguage</a> — a modelling language aiming at having a standard way to represent software systems and processes.</li><li><strong>C</strong>reate <strong>R</strong>ead <strong>U</strong>pdate <strong>D</strong>elete — the four basic operations performed on resources. A very useful concept for abstracting the persistence layer from the application logic.</li><li><a href="https://www.martinfowler.com/bliki/AnemicDomainModel.html">Anemic model</a> expresses itself with entities that just contain data and lack logic. Since you need the logic in the end, it ends up either being built outside of the bounded context of the related entity or being written in procedural style and not exposed as an action on the interface of the bounded context.</li><li>A famous quote from the British statistician George E. P. Box</li><li><a href="https://martinfowler.com/bliki/Yagni.html"><strong>Y</strong>ou <strong>A</strong>in’t <strong>G</strong>onna <strong>N</strong>eed <strong>I</strong>t </a>— a practice coming from Extreme Programming methodology. It helps you keep the software simple by discouraging building overly generic features that try to anticipate the future requirements.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1ae3c63ad236" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tech-kitchen-kramp-hub/down-the-ddd-rabbit-hole-i-go-1ae3c63ad236">Down the DDD rabbit hole I go</a> was originally published in <a href="https://medium.com/tech-kitchen-kramp-hub">Tech Kitchen @Kramp Hub</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>