<?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 Florian Schönherr on Medium]]></title>
        <description><![CDATA[Stories by Florian Schönherr on Medium]]></description>
        <link>https://medium.com/@florian.schoenherr?source=rss-a882bcbc4435------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*O2BIAftNslJNr985</url>
            <title>Stories by Florian Schönherr on Medium</title>
            <link>https://medium.com/@florian.schoenherr?source=rss-a882bcbc4435------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 02:05:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@florian.schoenherr/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[It’s all about testing — using software agents for testing legacy software]]></title>
            <link>https://medium.com/comsystoreply/its-all-about-testing-using-software-agents-for-testing-legacy-software-b549a6a3487b?source=rss-a882bcbc4435------2</link>
            <guid isPermaLink="false">https://medium.com/p/b549a6a3487b</guid>
            <category><![CDATA[specifications]]></category>
            <category><![CDATA[legacy-code]]></category>
            <category><![CDATA[brownfield]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Florian Schönherr]]></dc:creator>
            <pubDate>Thu, 29 Oct 2026 10:03:36 GMT</pubDate>
            <atom:updated>2026-10-29T10:03:36.446Z</atom:updated>
            <content:encoded><![CDATA[<p><em>by Florian Schönherr</em></p><p>Building a comprehensive test suite from scratch is weeks of work. In this post, we document how we tackled that challenge for Shopware using Claude Code as a coding partner: setting up a Serenity BDD + Testcontainers framework, writing the first functional tests for the shopping cart, and developing an AI-driven<br> discovery pipeline that crawls the live storefront and proposes new test scenarios automatically.</p><figure><img alt="A phoenix emerging from an old, rusty server rack." src="https://cdn-images-1.medium.com/max/1024/1*GAmVBaptcAHeCsmeZusQDg.png" /></figure><h3>Introduction</h3><p>In our <a href="https://medium.com/comsystoreply/how-llms-support-product-renovation-a-case-study-b96a069dd26b?sharedUserId=florian.schoenherr">previous post</a>, we explored how coding agents (at that point in time, the very first iterations of Claude and Codex) could help us map and understand the Shopware platform’s architecture without any prior experience with it or its underlying PHP tech stack. We documented modules, extracted requirements, and validated architectural decisions — all critical first steps in a Product Renovation effort. We were both impressed with the agents’ abilities and a little disappointed in the overall results, because they were still far from game-changing.</p><p>Despite that, we wanted to go forward and decided that a sound understanding of the underlying functional requirements would be a worthy next goal. Since it is long-standing wisdom in software development that comprehensive test suites are the truest and most profound source of functional requirements, we decided to start building one for Shopware.</p><p>Creating such a test suite from scratch is an extremely time-consuming effort. Even with containerization technologies making environment setup dramatically easier — we’ll be using the ready-made <a href="https://hub.docker.com/r/dockware/dev">Dockware</a> containers that provide complete Shopware instances out of the box — the task of building a comprehensive test framework is considerable. Upfront, architectural decisions need to be made, e.g. which testing framework fits best, how test code is structured for maintainability, what patterns should be followed for page objects and test data management. Then comes the actual implementation work. For each feature you want to test, you need to:</p><ul><li>Identify and locate the relevant UI elements or API endpoints</li><li>Understand the expected workflows and edge cases</li><li>Write page object classes that encapsulate element selectors and interactions</li><li>Create step definitions that translate business language into code</li><li>Implement test scenarios with proper setup and teardown</li><li>Handle asynchronous behaviors, loading states, and timing issues</li><li>Configure reporting and debugging capabilities</li></ul><p>Multiply this by the dozens or hundreds of features in an e-commerce platform, and you’re looking at weeks or months of work — even for experienced test automation engineers. For developers less familiar with testing frameworks, the learning curve adds even more time.</p><p>We assume, however, that LLM-powered coding agents can help us to dramatically decrease the time required, since today they are already good enough to target the existing software and auto-discover tests and derived sets of requirements.</p><p>In this article, we’re going to document how we built a test framework and automated test discovery with the assistance of a coding agent. Our goal is pragmatic: by the end of this post, we’ll have a working test framework using Serenity BDD and Testcontainers, integrated with Dockware containers for instant Shopware environments, plus a small functional test suite validating capabilities of a core piece of any e-commerce platform, the shopping cart.</p><p>This isn’t about creating perfect coverage. Instead, we’re establishing the foundation: project structure, configuration, patterns, and the first working tests. We’ll show what worked well with LLM assistance, where we encountered problems, and how much manual intervention was required to get everything functioning correctly.</p><p>More importantly, we’re creating the behavioral documentation that will guide our rewrite. Every test we write isn’t just validation — it’s a specification that says, “This is exactly how Shopware behaves, and our JVM implementation must match this.”</p><p>Let’s get started and see realistically what AI-assisted development brings to the test automation workflow — both its benefits and its limitations.</p><p>As a highly professional piece of open source software, Shopware <em>has</em> a test suite, of course. You can find it at <a href="https://github.com/shopware/acceptance-test-suite">shopware/acceptance-test-suite</a>.<br>However, in this post, we deliberately ignore its existence. We want to prove that coding agents are now at a level of capability that permits us to write tests for <em>any</em> software, facilitating a rewrite using modern technology with the safety net of high test coverage even if there are no tests in the beginning.</p><p>We’ll be using Claude Code for this effort. Other coding agents would certainly work too, but our experience has shown that for our way of working, it’s currently the tooling with the best effort-to-results ratio. That said, it’s important to set realistic expectations from the outset.</p><p>LLMs can assist with many of the traditionally time-consuming tasks: generating Maven or Gradle configurations with the necessary dependencies, providing templated examples for Serenity configuration files, suggesting CSS selectors for page elements. They excel particularly at generating boilerplate code — the kind of repetitive work that dominates test suite development:</p><ul><li>Page object classes with element locators and interaction methods</li><li>Step definition files with Cucumber annotations and parameter handling</li><li>Test data builders and fixture classes</li></ul><p>Once you establish the conventions you want to follow, a coding agent can generate variations of these patterns relatively quickly. When a test fails due to an incorrect selector, the LLM can suggest alternatives. When you need to refactor existing code to follow a different pattern, it can help with the mechanical transformation.</p><h3>The Tech Stack</h3><p>Upfront, we decided on the techstack to be used for testing. Besides Java and JUnit 5, we chose the following two frameworks:</p><ul><li>Serenity BDD</li><li>Testcontainers</li></ul><h3>Serenity BDD</h3><p><a href="https://serenity-bdd.github.io/"><strong>Serenity BDD</strong></a> is a powerful open-source test automation framework that implements BDD principles while providing comprehensive test reporting and living documentation capabilities. Built on top of popular tools like JUnit and Selenium WebDriver, Serenity extends standard BDD frameworks by automatically generating detailed, illustrated test reports that document not just whether tests passed or failed, but the entire story of how the application behaves. Its screenplay pattern promotes writing maintainable, scalable test code by modeling tests around actors, tasks, and abilities rather than page objects, making test scenarios more readable and aligned with user journeys while reducing code duplication and maintenance overhead.</p><h4>Behavior-Driven Development (BDD)</h4><p>BDD is a software development methodology that bridges the gap between technical and non-technical stakeholders by expressing system behavior through examples written in natural language. BDD encourages collaboration between developers, testers, and business analysts by defining application features using shared vocabulary, typically structured in “Given-When-Then” format that describes preconditions, actions, and expected outcomes.</p><h3>Testcontainers</h3><p><a href="https://testcontainers.com/"><strong>Testcontainers</strong></a> is a Java library that provides lightweight, throwaway instances of databases, message brokers, web browsers, and virtually any other service that can run in a Docker container, specifically designed for integration testing. By leveraging Docker containerization, Testcontainers eliminate the notorious “works on my machine” problem by ensuring that tests run against the exact same environment — whether on a developer’s laptop, CI/CD pipeline, or production-like staging system. Instead of relying on mocked dependencies or shared test databases that can cause flaky tests and conflicting state, Testcontainers spins up real, isolated instances of services like PostgreSQL, MongoDB, Kafka, or Redis for each test suite, automatically managing their lifecycle and cleanup.</p><p>This approach solves critical environment issues such as version mismatches between development and production databases, configuration drift across testing environments, and the complexity of maintaining long-running test infrastructure. The only prerequisite is having Docker installed and running on the test environment, after which Testcontainers handles container provisioning, port mapping, network configuration, and teardown automatically, enabling developers to write integration tests that are both reliable and representative of real-world behavior without the overhead of manual infrastructure management.</p><h3>Our implementation process</h3><p>For us, this project serves not only as a proof that coding agents can speed up product renovation but also permits us to refine our process for AI-driven Quality Engineering. We use it to share our previous learnings on working with coding agents and also to explore new possibilities.</p><p>Coding agents, especially Claude Code, can produce impressing results when given zero-shot prompts. In doing so, however, a human working with it will typically:</p><ul><li>Not quite remember what they asked the agent to do, thereby forgetting the conversational process that was used to produce the code.</li><li>Never read a line of code that was generated by the agent, relying on its capabilities and the observable behavior of the software.</li><li>Not know exactly what the quality of the code is or how it exactly works.</li></ul><p>As professional software developers who are held responsible for the products they deliver, we absolutely cannot have this. Therefore, we already established a set of good practices that we apply when working with agents:</p><ol><li>Plan</li><li>Use a sandbox</li><li>Use skills</li><li>Review and verify</li></ol><h4>Plan</h4><p>At a minimum, we use the agent’s built-in planning mode to make sure every requirement leading to the code implemented by the agent is documented somewhere, thus making the process reproducible and the code understandable.</p><p>However, Claude’s /plan mode and its equivalents in other agents are limited. They often rely on a single document (e.g.CLAUDE.md, AGENTS.md) that serves as a working base but not as documentation for actual requirements.</p><p>Because of this, we will use <a href="https://openspec.dev/">OpenSpec</a> in this post. OpenSpec is a set of skills and commands for the most commonly used agent platforms and provides what we consider a /plan mode on steroids:</p><ol><li>Start with a <em>proposal</em>: This is basically a user story or some other (e.g. technical) change to the existing system. Let the agent help in exploring the different possibilities and come up with a set of requirement specifications and tasks to be executed in the implementation phase. Everthing (proposal, specification, and tasks) is persisted in Markdown documents under ./openspec.</li><li>Review and rework the requirements and tasks (or ask the agent to rework them) until you are satisfied with them.</li><li>Let the agent implement the tasks in order.</li><li>Verify the implementation and let OpenSpec <em>archive</em> the proposal, thereby merging the new spec with the existing one to keep it up to date.</li></ol><p>For more details on SDD (Specification-Driven Development) in general and OpenSpec in particular, please see our <a href="https://medium.com/comsystoreply/from-prompts-to-specs-41a283a3bad6">related blog post</a>.</p><h4>Use a sandbox</h4><p>Agents are dangerous. Depending on the harness and model used, they can misinterpret a user request, take a simple but dangerous path, or simply make errors that pop up from their training data as a good way to solve the presented problem. Because of this, an agent should never (I repeat: <em>never</em>) be given free access to a development environment. Serious agent harnesses like Claude CLI prevent this by auto-sandboxing. The agent is permitted to read everything, but can access the web or do any kind of operations only with explicit permissions. This default model has two downsides:</p><ol><li>Being able to read everything on the system permits the agent to scrape important files that may contain secret company documents or credentials. While a professional agent like Claude may guarantee that the data isn’t misused, permitting this may still violate regulations and customers’ trust.</li><li>After being asked the tenth time if it’s OK to run gradle or curl, most human beings will start to simply click on &#39;allow&#39; without really reading what they give permission for, so dangerous actions may still happen with unintended consent.</li></ol><p>To avoid these problems, Anthropic has invented a <a href="https://code.claude.com/docs/en/sandboxing">sandbox</a> for its agents. For the OpenCode agent harness, Comsysto has created its own <a href="https://github.com/comsysto/opencode-sandbox">tooling</a> based on Docker.</p><p>Using a sandbox, you can pre-configure what an agent may do (and especially what not) and then allow it free rein in the project directory, thereby dramatically reducing the need to ask for permissions and thus increasing the speed of implementing its tasks.</p><h4>Use skills</h4><p>Skills were originally invented by Anthropic for Claude Caude but have become an <a href="https://agentskills.io/specification">open standard</a> for all agents.</p><p>A skill is an ability and/or set of rules the agent knows to load when (and only when) it is required for a specific task, e.g:</p><ul><li>Where to find important framework documentation.</li><li>How to format Java Code.</li><li>How to execute a specific tool required for the project.</li></ul><p>Skills we used extensively in this project:</p><p><strong>openspec-xxx: </strong>The OpenSpec skills, used for the workflow described in the previous section.</p><p><strong>java-coding-guidelines</strong>: Instructs the agent how to format code so that it reads exactly like code we would have written ourselves. Some sample rules are:</p><ul><li>Never use ‘*’-imports (considered a code smell in Java).</li><li>Use <a href="https://jspecify.dev/">JSpecify</a> annotations for expressing nullability.</li><li>Use @DisplayName for clear-text description of generated tests.</li></ul><p><strong>discover-tests</strong>:This skill is used to discover new tests for the Shopware test suite. It will be discussed later in this post because it is one of its main products.</p><h4>Review and verify</h4><p>Since we still consider ourselves fully responsible for the code we deliver, all code generated by an agent should be treated like code we wrote ourselves or generated using conventional tooling. Due to that, it is mandatory that every line of code generated is thoroughly reviewed.</p><p>In this experimental project, we instructed the agent using OpenSpec rules (similar to agent skills, but not quite the same because the specifically hook into the OpenSpec lifecycle) to follow this process:</p><ol><li>Using Git, create a long-term feature branch for any proposal it is working on.</li><li>Create a short-term Git branch from this feature branch for every task. Create a Pull Request on GitHub when finished and let the user review the usually small number of changes. The big advantage of this method is that you can use GitHub’s decent review UI and can give feedback in the form of review comments that are understood by the agent, without polluting the code with annotations or tediously formulating verbal references to specific pieces of code.</li><li>Merge the PR and start on the next task until everything is implemented. Then create another PR for merging the feature branch to the <strong>master</strong> branch.</li><li>This consolidated PR should be reviewed by another team member, the way we have done it for years. Never forget the agent is a tool and you as a developer are finally responsible for its output!</li></ol><h3>The actual project</h3><h4>Implementing the test harness</h4><p>We started simply and old-school: by opening IntelliJ IDEA and let it generate a skeleton project for testing with Serenity BDD. Why spend precious tokens letting Claude do the work when everything is already in place?</p><p>This is part of an important lesson we learned: If you can do something using traditional automation scripts or tools, use them! They are faster, cheaper and much more reliable than any coding agent — and they <em>always</em> produce the exact same results.</p><p>After generating the skeleton, we created an <a href="https://github.com/comsysto/aiqe-shopware-tests/blob/be8cf73b62646402963983dce976b770603a97d2/openspec/changes/archive/2026-06-24-shopware-storefront-smoke-test/proposal.md">OpenSpec proposal</a> describing what we wanted. Using the OpenSpec skillset, Claude directly generated a <a href="https://github.com/comsysto/aiqe-shopware-tests/blob/be8cf73b62646402963983dce976b770603a97d2/openspec/changes/archive/2026-06-24-shopware-storefront-smoke-test/design.md">Design Document</a> and a list of <a href="https://github.com/comsysto/aiqe-shopware-tests/blob/be8cf73b62646402963983dce976b770603a97d2/openspec/changes/archive/2026-06-24-shopware-storefront-smoke-test/tasks.md">implementation tasks</a>.</p><p>Applying this change, we soon had a working test framework that could:</p><ul><li>Start Dockware</li><li>Start Selenium and a Chromium Browser</li><li>Look over the storefront page and implement some tests we told it to write</li></ul><p>So, are we done already? Did we fulfill our hope the AI is a game changer for implementing UI tests?</p><p>You may guess; the answer is NO. The reason is that implementing a test is only part of the game. Tests are only valuable when they cover all code paths, and therefore, to facilitate an actual <em>rewrite</em> of a large legacy software, it must be <em>complete</em>. To achieve that completeness, you must actually try the software out, crawl through every functionality and record its behavior in a test case. For a software like Shopware, that used to be work for a whole Quality Assurance team for several months — repetitive, sometimes tedious work.</p><p>What better work could there be for a software agent?</p><p>So, we let an agent crawl the UI and discover new test cases. The main difficulty here is that the agent needs to start somewhere and should not cover the same workflow multiple times.</p><h4>Automated test discovery</h4><p>The idea behind automated discovery is simple: instead of a human deciding what to test next, the agent looks at the running software, figures out which user journeys it offers, compares them to what our specifications already cover, and suggests the missing pieces. This way, test coverage becomes a repeatable process with clear results and tracking.</p><p>We had three requirements from the start:</p><ul><li><strong>Separate facts from interpretation.</strong> Gathering information about the storefront is a deterministic action and should be implemented as a normal program. Again, we are avoiding the mistake here to put everything in the hands of an LLM. A completely different thing is the <em>interpretation</em> of these results: that is what QA people do, and what we hope to replace using an LLM. The two should not be mixed.</li><li><strong>We don’t want to follow HTML structure, but user journeys.</strong> For example many URLs in shopware are parameterized paths that are merely variations of the same flow (/clothing and /electronics are both &quot;product listing&quot;). One proposal per URL would bury us in duplicate test cases, so we need to make sure the agent is able to cluster pages into user journeys.</li><li><strong>Discover gaps and avoid repetition.</strong> Every run must take the existing specifications into account and propose only gaps or updates, never the same workflow twice.</li></ul><p>We are not experiences test people, so we formulated our wishes in OpenSpec’s <em>explore</em> mode and let Claude help us to get started.</p><p><strong>First iteration: a hard-coded crawler</strong></p><p>In the <a href="https://github.com/comsysto/aiqe-shopware-tests/blob/c93c8d7cd9151f8c55c6f750ff558a0821c875f6/openspec/changes/archive/2026-06-25-auto-discover-tests/proposal.md">first iteration</a>, it came up with a proposal to split the work into two parts:</p><ul><li>A DiscoveryRunner class that can be executed as an isolated Gradle task (./gradlew discover). The runner reused the existing Testcontainers and Selenide setup. It starts a Dockware container, visits the homepage, collects the navigation links, follows each of them one level deep, and finally logs in with the Dockware default customer to visit the account pages. For every page it writes a JSON snapshot (URL, title, navigation links, buttons, form fields, headings) and a full-page screenshot to build/discovery/.</li><li>To enable interpretation of results, the agent created a skill, /discover-tests, that runs the crawler, reads the snapshots, compares them with the existing specifications, and writes one OpenSpec proposal per uncovered journey.</li></ul><p>The pipeline worked, but it quickly revealed its blind spot: the crawler could only <em>follow links</em>. It never clicked a button, filled in a form or triggered an AJAX request. The shopping cart, the checkout, anything hidden behind a modal dialog or created by client-side state was structurally invisible to it. And every attempt to fix this would have meant adding yet another hard-coded crawl strategy in Java — the runner was trying to be a clever, general-purpose explorer, and it was clearly the wrong place for that intelligence.</p><p>When we tried to employ the agent to create a test suite for the Shopping Cart, it actually discovered this gap itself and asked us if we wanted to change the login. And of course, yes, we did.</p><p><strong>Second iteration: a scriptable crawler</strong></p><p>The <a href="https://github.com/comsysto/aiqe-shopware-tests/blob/a0331c0eeaba93252ebc81a7c7c1f24670534a62/openspec/changes/archive/2026-06-26-scriptable-crawler/proposal.md">second proposal</a> changed the flow of control for the crawler: the runner became a dumb executor that doesn’t try to ‘discover’ anything. All crawling logic was removed and replaced by a small interpreter for YAML that the executing agent can use to steer what happens:</p><pre>steps:<br>  - open: /account/login<br>  - fill:<br>      selector: &quot;input[name=&#39;email&#39;]&quot;<br>      value: &quot;customer@example.com&quot;<br>  - click: &quot;button.btn-primary[type=&#39;submit&#39;]&quot;<br>  - wait: 1000<br>  - snapshot:<br>      name: account-overview<br>      auth_required: true</pre><p>There are no loops and no conditionals. If a flow branches, the agent can simply write another script. A flat list of steps is easy for a human to review, safe to execute and trivial to parse — and writing explicit sequences like this is exactly what LLMs are good at. Scripts are committed to a discovery-scripts/ directory, so the repository also records <em>what</em> has been explored and how. The previous hard-coded crawl survives as bootstrap.yml, the starting point for a fresh discovery.</p><p>The second important change was the <em>round model</em>. Instead of running the whole pipeline in one go, each invocation of the skill does exactly one round and then hands back to the developer. This avoids runaway sessions, makes failures easy to debug, and — most importantly — keeps a human in charge of the direction in which the exploration goes.</p><h4>How it works</h4><p>The following diagram shows one round of the current discovery process:</p><figure><img alt="The test discovery process: Invoke, Script, Crawl, Snapshot, Analyze, Propose" src="https://cdn-images-1.medium.com/max/1024/1*gPoUOPMDcR2xQJeFwlW2ug.png" /><figcaption>Automated, AI-controlled discovery process</figcaption></figure><ol><li><strong>Invoke</strong> — The developer runs /discover-tests in Claude Code, optionally naming a journey they want explored.</li><li><strong>Script</strong> — The skill reads the snapshots and specifications that already exist and decides what to explore next. On a fresh start, it uses bootstrap.yml; otherwise, it writes a new, focused script for an uncovered flow, such as adding a product to the cart.</li><li><strong>Crawl</strong> — ./gradlew discover boots a fresh Shopware instance in a Dockware container via Testcontainers, and DiscoveryRunner executes the script step by step with Selenide.</li><li><strong>Snapshot</strong> — At every snapshot step, the runner writes the page’s relevant DOM elements as JSON and a full-page screenshot as PNG to build/discovery/.</li><li><strong>Analyze</strong> — Back in Claude Code, the skill reads the new snapshots, clusters the pages into user journeys and compares them against the existing specifications.</li><li><strong>Propose</strong> — The developer gets a summary of what was explored, what was found, where the gaps are, and suggestions for the next round. The skill does not create OpenSpec proposals by itself: the developer decides which findings become a new or updated proposal, which then goes through the usual OpenSpec workflow and pull-request review.</li></ol><p>The developer then either starts the next round or turns the findings into a proposal — which is exactly how the <a href="https://github.com/comsysto/aiqe-shopware-tests/blob/442a89d7571f2f6c47ac2928d8b3feef3929e9f3/openspec/changes/archive/2026-06-26-cart-management/proposal.md">cart management tests</a> came into being.</p><h4>Proving the basics: the storefront smoke test</h4><p>Before any of this discovery machinery existed, we already had two small, hand-written proposals sitting in the repository. Neither one needed a crawler to find — we knew what they should check before we ever opened the browser. They are worth a proper look before we get to checkout, because everything that follows builds directly on them.</p><p>The first thing any test suite needs is proof that the environment itself works: a container that starts, a browser that connects to it, a page that renders. We asked the agent for exactly three checks, no more, on top of the <a href="https://github.com/comsysto/aiqe-shopware-tests/blob/442a89d7571f2f6c47ac2928d8b3feef3929e9f3/openspec/changes/archive/2026-06-26-cart-management/proposal.md">skeleton proposal</a> mentioned earlier:</p><ul><li><strong>The homepage loads.</strong> The page title isn’t blank, and the main navigation is visible.</li><li><strong>Category navigation works.</strong> Clicking the first navigation link leaves the homepage and shows at least one product.</li><li><strong>Search returns results.</strong> Searching for “Shirt” shows at least one matching product.</li></ul><figure><img alt="Storefront search results page" src="https://cdn-images-1.medium.com/max/1024/1*IkB0KQK3uf8Y-ooBFzJWDg.png" /><figcaption>The Storefront search results</figcaption></figure><p>Three assertions, one page object — StorefrontPage, holding just the navigation, the search input and the search button — and nothing more. It isn’t an exciting test. That’s the point: if this one ever goes red, nothing else in the suite is worth trusting anyway.</p><h4>Cart management</h4><p>The shopping cart was the first <em>real</em> user journey, and the first proposal to come out of a discovery round rather than out of our own heads. Thew CartManagementTest covers three scenarios:</p><ul><li><strong>Adding a product.</strong> A product added from its detail page appears as a line item on the cart page.</li><li><strong>Updating the quantity.</strong> Clicking the stepper increases the quantity, and Shopware’s AJAX update is reflected without a page reload.</li><li><strong>Removing the line item.</strong> Removing the only item in the cart leaves it empty.</li></ul><figure><img alt="Cart page" src="https://cdn-images-1.medium.com/max/1024/1*m0fQPvpjLBJyr2i6d2TlTQ.png" /><figcaption>The cart page</figcaption></figure><p>CartPage grew alongside these three tests: lineItems, QuantityInput(index), quantityUpButton(index), removeButton(index), and proceedToCheckout — the one element that would matter a lot more once we got to checkout.</p><h4>Checkout</h4><p>Cart management gets a shopping customer as far as /checkout/cart. Nothing beyond that point (e.g. checkout, order and order confirmation) that are actually showing up afterwards — was tested. For an e-commerce platform, these are actually the most important parts of the user journey. If a rewrite gets this one wrong, nothing else matters. The full <a href="https://github.com/comsysto/aiqe-shopware-tests/blob/b814369334c1e2e4707aaa4a6f645017baca02e3/openspec/changes/archive/2026-09-29-create-single-checkout-test/proposal.md">proposal</a>, its <a href="https://github.com/comsysto/aiqe-shopware-tests/blob/b814369334c1e2e4707aaa4a6f645017baca02e3/openspec/changes/archive/2026-09-29-create-single-checkout-test/design.md">design decisions</a> and the resulting <a href="https://github.com/comsysto/aiqe-shopware-tests/blob/b814369334c1e2e4707aaa4a6f645017baca02e3/openspec/changes/archive/2026-09-29-create-single-checkout-test/tasks.md">task list</a> are, as always, in the repository.</p><p>We asked the agent to keep the first checkout test to a single, thorough happy path rather than spending effort on edge cases:</p><ol><li><strong>Log in</strong> — as the seeded demo customer.</li><li><strong>Empty the cart</strong> — Shopware restores a logged-in customer’s saved cart, so a leftover item from a previous run must not leak in.</li><li><strong>Add a product</strong> — from its detail page.</li><li><strong>Check the confirm page</strong> — /checkout/confirm must show the exact product we added: same name, same number, quantity one.</li><li><strong>Accept and submit</strong> — tick the terms and conditions, place the order.</li><li><strong>Check the finish page</strong> — /checkout/finish must match the confirm page in every detail — line items, totals, addresses, payment and shipping method — and show an order number.</li><li><strong>Check the order history</strong> — that exact order number must be listed under /account/order.</li></ol><figure><img alt="Order confirmation page" src="https://cdn-images-1.medium.com/max/1024/1*yxU66XIlyBY5Dv0I4KR61Q.png" /><figcaption>The order confirmation page</figcaption></figure><p>We did not (yet) add tests for use cases like guest checkout, multiple items or coupons. Here, the same reasoning applies as to cart management: we want to prove the core path is solid before spending effort on branches. Guest checkout in particular means a multi-field address form (which from experience is the single biggest source of flakiness in checkout end-to-end tests), so modeled this flow to use the checked-in demo customer’s saved address.</p><h3>Conclusion</h3><p>The creation of a comprehensive test suite with an ideally full coverage of functional requirements is often the first and most important step when preparing to rework or rewrite legacy software, especially if it is untested or under-tested as is so often the case. We set out to see realistically how AI-assisted development can help lessen the immense effort required to achieve this goal. In our previous post, the agents impressed us but fell short of being game-changing. This time, the answer is different: we are convinced that coding agents are a huge step forward for writing end-to-end tests.</p><p>Starting from an empty repository and with no prior knowledge of Shopware or its tests, we managed to create a working Serenity BDD and Testcontainers framework, a storefront smoke test, cart management tests and a complete checkout scenario that places an order and finds it in the order history. Almost everything that makes up the weeks of work listed in the introduction — project setup, page objects, selectors, test boilerplate and even the exploration of the running application — was done by the agent. What remained for us was the part that actually requires a human: deciding what to test, steering the exploration and reviewing the results.</p><p>Of course, this is not yet the comprehensive suite we are aiming for. But the automated discovery makes the path there clear: every round finds the next gap, and every gap becomes a reviewed proposal. We believe that reaching full coverage of a large legacy system is no longer a matter of months of repetitive QA work, but of a repeatable process that needs significantly less effort than ever before.</p><p>That said, the agent was a tool, not a replacement. What made its output trustworthy was the process we built around it: specifications instead of throwaway prompts, a sandbox, skills that make the code read like our own, and a review of every single change. And whatever could be done by a conventional script, we deliberately did not hand to the LLM. We are still responsible for what we deliver.</p><p>The tests we have now are, as promised in the introduction, more than validation: they are the specification of how Shopware behaves. With this growing safety net, we could start a serious effort to rewrite the software, for example using Spring and Kotlin.</p><h3>References</h3><h4>Articles and documentation</h4><ul><li>Comsysto Reply: <a href="https://medium.com/comsystoreply/how-llms-support-product-renovation-a-case-study-b96a069dd26b?sharedUserId=florian.schoenherr">How LLMs support product renovation: a case study</a></li><li>Comsysto Reply: <a href="https://medium.com/comsystoreply/from-prompts-to-specs-41a283a3bad6">From prompts to specs</a> (Spec-Driven Development)</li><li>Anthropic: <a href="https://code.claude.com/docs/en/sandboxing">Claude Code sandboxing</a></li><li>Anthropic and community contributors: <a href="https://agentskills.io/specification">Agent Skills specification</a></li></ul><h4>Tools and projects</h4><ul><li><a href="https://hub.docker.com/r/dockware/dev">Dockware dev images</a></li><li><a href="https://github.com/shopware/acceptance-test-suite">shopware/acceptance-test-suite</a></li><li><a href="https://serenity-bdd.github.io/">Serenity BDD</a></li><li><a href="https://testcontainers.com/">Testcontainers</a></li><li>Fission AI: <a href="https://openspec.dev/">OpenSpec</a></li><li>Comsysto Reply: <a href="https://github.com/comsysto/opencode-sandbox">comsysto/opencode-sandbox</a></li><li>JSpecify working group: <a href="https://jspecify.dev/">JSpecify</a></li></ul><h4>OpenSpec changes in the repository</h4><ul><li><a href="https://github.com/comsysto/aiqe-shopware-tests/blob/be8cf73b62646402963983dce976b770603a97d2/openspec/changes/archive/2026-06-24-shopware-storefront-smoke-test">Storefront smoke test</a></li><li><a href="https://github.com/comsysto/aiqe-shopware-tests/blob/c93c8d7cd9151f8c55c6f750ff558a0821c875f6/openspec/changes/archive/2026-06-25-auto-discover-tests">Auto-discover tests</a></li><li><a href="https://github.com/comsysto/aiqe-shopware-tests/blob/a0331c0eeaba93252ebc81a7c7c1f24670534a62/openspec/changes/archive/2026-06-26-scriptable-crawler">Scriptable crawler</a></li><li><a href="https://github.com/comsysto/aiqe-shopware-tests/blob/442a89d7571f2f6c47ac2928d8b3feef3929e9f3/openspec/changes/archive/2026-06-26-cart-management">Cart management</a></li><li><a href="https://github.com/comsysto/aiqe-shopware-tests/blob/b814369334c1e2e4707aaa4a6f645017baca02e3/openspec/changes/archive/2026-09-29-create-single-checkout-test">Single checkout test</a></li></ul><p>This Blog Post is presented to you by <a href="https://www.comsystoreply.de/">Comsysto Reply</a>.</p><p>Do you want to use AI in your Engineering and Quality Assurance team, but you don’t know where to start? <a href="https://www.comsystoreply.de/services">Contact us</a> for innovative, custom solutions tailored to your needs. Let’s collaborate — your tech breakthrough starts here!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b549a6a3487b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/comsystoreply/its-all-about-testing-using-software-agents-for-testing-legacy-software-b549a6a3487b">It’s all about testing — using software agents for testing legacy software</a> was originally published in <a href="https://medium.com/comsystoreply">comsystoreply</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Prompts to Specs]]></title>
            <link>https://medium.com/comsystoreply/from-prompts-to-specs-41a283a3bad6?source=rss-a882bcbc4435------2</link>
            <guid isPermaLink="false">https://medium.com/p/41a283a3bad6</guid>
            <category><![CDATA[specifications]]></category>
            <category><![CDATA[agentic-sdlc]]></category>
            <category><![CDATA[sdd]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Florian Schönherr]]></dc:creator>
            <pubDate>Wed, 19 Aug 2026 12:09:56 GMT</pubDate>
            <atom:updated>2026-08-19T12:09:56.792Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Why specification-driven development makes sense again in the age of coding agents</strong></p><p>“This feels like going back to the ’90s” is something you might hear when you mention the word “specification.” Some people might roll their eyes, mutter “waterfall,” and go back to their vibe-coding sessions.</p><p>In truth, specifications have a bad reputation among software developers (especially the older ones), and there is a good reason for it. They are slow to write, hard to maintain, and disconnected from the code they were supposed to guide. As we’ve learned through long, painful experience, the idea of specifications as the source from which all code should flow simply doesn’t work in most development teams. Since the Agile Manifesto, software development teams have proven repeatedly that lightweight communication and working software is far more useful than large documents that age badly.</p><figure><img alt="A terrified guy in a hoody looking at an inscribed slab of stone." src="https://cdn-images-1.medium.com/max/1024/1*vvi8BqFsHerTUtqlyUg-xw.png" /></figure><p>So, why are we talking about it again?</p><p>The reason is that with AI coding agents, this all changes.</p><p>When software is increasingly explored, designed, and implemented through interactions with agents, prompts alone start to show their limits. Context gets lost. Assumptions remain implicit. Handoffs become fragile. What works for a short exchange often breaks down as soon as the task becomes broader, more iterative, or more collaborative.</p><p>This is where specifications become interesting again: not as a heavy process or as a piece of bureaucratic documentation, but as a practical way to make your intent clear to the agent implementing it — and to preserve that intent for later review by yourself and by your teammates.</p><h3><strong>Why specs are worth reconsidering</strong></h3><p>The basic problem with specs is not that they are always wrong. <em>The problem is that they are a model of the intent and not the necessarily the truth</em>. Keeping them in sync with the actual code poses a maintenance burden that simply cannot be carried by a development team whose ultimate responsibility is to deliver working software, not perfectly maintained documentation.</p><figure><img alt="A little robot ape looking happily at an inscribed slab of stone." src="https://cdn-images-1.medium.com/max/1024/1*JrAx_YXlSmgGwbjh8gBGLQ.png" /></figure><p>However, AI agents can help to bridge this gap: they cab draft a proposal, help to refine it and implement it. Developers can revisit it later, review and modify it and let the agent re-apply the changes. This way, the specification stops being a static artifact and becomes part of the working loop. It is no longer just something written before implementation starts — on the contrary, it becomes the shared reference that supports decisions throughout the process. Here is the key shift: the specification becomes an <em>interface </em>between human intent and its execution through a software agent.</p><h3><strong>The difference between prompts, /plan and SDD</strong></h3><p>Prompts are powerful, but they are also ephemeral.</p><p>For small tasks, that is perfectly fine. If you need a quick transformation, a small code snippet, or a focused answer, a prompt may be all you need. But the moment the work spans multiple iterations, people, or sessions, the limits become visible very quickly.</p><p>Let’s be honest: who remembers the exact wording of a conversation? The same way, who remember exactly the words of the prompts used when presenting results to their colleagues and, finally, to their customers? It all gets buried somewhere in the chat history and digging it up is work you usually want to avoid!</p><p>Also, a prompt does not naturally preserve rationale. It does not reliably expose assumptions. It does not create a stable object that someone else can review, refine, or reuse later.</p><p>Then, there is /plan: A mode that let’s you, together with the agent, create an implementation plan upfront — a specification, so to say. When the plan is finished, the agent puts it <em>somewhere</em> — depending on the harness.. After implementation, it usually gets lost in session history like a long prompt. There’s not much benefit in that.</p><p>SDD is different, because it relies on additional skills that extend the harness. It stores the generated artifacts as first-class assets, in a place that is easily accessible: as a set of files in your repository. At any point in time, you can review them, adjust them (or tell the agent to do so) and <em>persist</em> them for later reference.</p><p>Once complexity rises, having a durable artifact changes the quality of collaboration. Instead of repeatedly reconstructing context, the team and the agent can work from a shared and evolving point of reference.</p><p>SDD can be seen as a practical form of context engineering: it turns volatile conversational input into stable artifacts that improve alignment, traceability, and quality of execution across the development workflow.</p><h3><strong>A practical workflow by example</strong></h3><p>In practice, the workflow is straightforward. We’ll be using <a href="https://openspec.dev/">OpenSpec</a> as an example framework, but most of the described patterns will be applicable to other SDD frameworks such as <a href="https://kiro.dev/">Kiro</a> or <a href="https://github.com/github/spec-kit">Spek-kit</a>.</p><figure><img alt="The OpenSpec workflow consists of the following steps: Explore -&gt; Propose -&gt; Specify -&gt; Design -&gt; Tasks -&gt; Archive" src="https://cdn-images-1.medium.com/max/1024/1*kqX6TfIp1RXrr-SKZHsqaQ.png" /></figure><p>Starting with the ‘Explore’ phase, you tell the agent what you want to achieve, for example ‘I want to generate a UI that lets me roll a set of dice’. It then proposes a high-level design and implementation approach and asks clarifying questions. When this is done, you let it generate a proposed change, e.g. ‘add-3d-dice-roller’. With that title and the context of the previous exploration phase, the agent walks off and generates several artifacts in <strong>/openspec/changes/add-3d-dice-roller</strong>:</p><p><strong>proposal.md - </strong>The why: motivation, what’s changing, which capabilities are new/modified, and impact. Written first — everything else builds on it.</p><p><strong>design.md -</strong> The how: context, goals/non-goals, key technical decisions with rationale and alternatives considered, risks/trade-offs, open questions.</p><p><strong>specs/dice-roller/spec.md - </strong>The what: testable requirements (SHALL/MUST) with WHEN/THEN scenarios. One file per capability listed in the proposal.</p><p><strong>tasks.md - </strong>The checklist: numbered, checkbox-based implementation steps, grouped and ordered by dependency. Drives /opsx:apply progress tracking.</p><p>As a responsible developer, your next step is to review the generated artifacts carefully. Make sure that proposal and specification fit your requirements and that the design and later implementation are likely to meet your approval once the agent has done its work.</p><p>Don’t skip this step — if you do, you are back to vibe coding with a somewhat better track record.</p><p>When satisfied, you can <em>apply</em> the spec and let the agent work. In our example, it quickly ticks off the tasks and produces a very small, working Javascript application (you can find it and the OpenSpec artifacts in our <a href="https://github.com/comsysto/openspec-sample-dice-roller">GitHub repository</a>):</p><figure><img alt="The UI of the generated web app showing a dice and a ‘roll’ button." src="https://cdn-images-1.medium.com/max/858/1*yDZEknhTg1Zy4-ku-jdz6g.png" /></figure><p>Note: If the change is complex, you may want to instruct it to execute only a subset of the tasks and review them separately.</p><p>The final step is to <em>archive</em> the change. With OpenSpec, this is the command that merges the change just made back into the main specification, overriding any outdated requirements. This way, what lives under /openspec/specs is always up-to–date provided you apply all changes through the framework.</p><p>This is a simple process, but with important consequences. The value lies less in the sequence itself and more in the continuity it creates. The specification is not only the starting point. It also becomes the anchor for review, revision, implementation, and reuse.</p><p><em>This matters because one of the biggest weaknesses in agent-based work is not generation, but misalignment.</em></p><h3><strong>The real benefits</strong></h3><p>Specifications reduce ambiguity. They support enhanced autonomy and parallelism in agent execution. They preserve context across sessions. They make handovers easier. And they provide a clearer record of what was actually requested.</p><p>In day-to-day work, this translates into familiar benefits:</p><ul><li>fewer hidden assumptions;</li><li>less need to restate the same context;</li><li>easier collaboration across people or agents;</li><li>more reliable continuity over time.</li></ul><p>In other words, they improve alignment. And in agent-assisted delivery, alignment is often the real bottleneck.</p><figure><img alt="A guy in a hoodie and a little robot ape shaking hands before an inscribed slab of stone." src="https://cdn-images-1.medium.com/max/1024/1*KU1QK4sU5GDtEP-xOkUnlQ.png" /></figure><h3><strong>Final thoughts</strong></h3><p>The value of this approach is not bringing specifications back for their own sake. It lies in recognizing that, as agents become part of how software is built, prompts alone are often too fragile to carry intent across iterations, sessions, and handovers. A lightweight specification offers something more durable: a shared, reviewable expression of intent that stays close to delivery while giving both human developers and coding agents a clearer frame to work from. Used this way, specification-driven development is not a return to heavyweight design, but a practical way to keep implementation aligned with human intent.</p><p>This Blog Post is presented to you by <a href="https://www.comsystoreply.de/">Comsysto Reply</a>.</p><p>Do you want to use Spec Driven Development within your Engineering team but you don’t know where to start? <a href="https://www.comsystoreply.de/services">Contact us</a> for innovative, custom solutions tailored to your needs. Let’s collaborate — your tech breakthrough starts here!</p><h3><strong>References</strong></h3><ul><li>The Sample Dice roller application: <a href="https://github.com/comsysto/openspec-sample-dice-roller">https://github.com/comsysto/openspec-sample-dice-roller</a></li><li>OpenSpec documentation: <a href="https://openspec.dev/docs">https://openspec.dev/docs</a></li><li>Understanding Spec-Driven Development: <a href="https://www.birgitta.io/blog/understanding-spec-driven-development/">https://www.birgitta.io/blog/understanding-spec-driven-development/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41a283a3bad6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/comsystoreply/from-prompts-to-specs-41a283a3bad6">From Prompts to Specs</a> was originally published in <a href="https://medium.com/comsystoreply">comsystoreply</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How LLMs Support Product Renovation: A Case Study]]></title>
            <link>https://medium.com/comsystoreply/how-llms-support-product-renovation-a-case-study-b96a069dd26b?source=rss-a882bcbc4435------2</link>
            <guid isPermaLink="false">https://medium.com/p/b96a069dd26b</guid>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[legacy-modernization]]></category>
            <category><![CDATA[replatforming]]></category>
            <dc:creator><![CDATA[Florian Schönherr]]></dc:creator>
            <pubDate>Tue, 21 Oct 2025 07:19:24 GMT</pubDate>
            <atom:updated>2025-10-21T07:19:24.375Z</atom:updated>
            <content:encoded><![CDATA[<p><em>by Stefan Pernpaintner, Marcel Hinderlich, Tobias Irl and Florian Schönherr</em></p><p><em>Product renovation, whether you call it legacy modernization, replatforming, or just ‘rewriting that big e-commerce monolith’, is rarely a greenfield exercise. Knowing what exists, and documenting it in human and machine-readable formats, is half the battle.</em></p><figure><img alt="A phoenix rising from an old, rusty server rack." src="https://cdn-images-1.medium.com/max/1024/1*gSzui5q5u75X3e0yaBWZjQ.png" /></figure><p>For non-IT enterprises, software is — rather than a goal in itself — an investment. Once that investment has been made, they tend to stick with their existing software stack and continue developing it gradually, preferring maintenance and the incremental addition of new features over complete rewrites. This often means that the software ends up running on outdated hardware and frameworks, but it still delivers business value. Companies are only willing to rewrite the entire stack, or parts of it, when the underlying software has become so outdated that maintenance is no longer feasible or has become too expensive. Many of these Product Renovation efforts fail.</p><p>Why is this the case? The answer is simple: rewriting existing software is both highly expensive and difficult to advocate, because at least in the beginning, no visible value is generated. The new software must catch up to a huge set of existing (and working) features very fast.</p><p>However, before anything else, the development team must not only understand what the requirements are, but also how they were implemented in the past. They need to analyze existing code that is often poorly documented or lacks up-to-date documentation. Missing tests, degraded architecture, and cumbersome workarounds make it even harder to understand. If the old software stack is foreign to the developers who are intending to write the new system (e.g., COBOL on a mainframe), it becomes nigh on impossible.</p><p>With the advent of Large Language Models, or LLMs for short, there is a light on the horizon for Product Renovation efforts. Frameworks like GitHub Copilot are already well-established and can help explain how individual pieces of software work — even if the tech stack is completely unfamiliar to the developers using them. They can generate tests to fill gaps in test suites and can even fix bugs — provided the underlying issue isn’t too complex.</p><p>Now, LLMs have reached the next stage in their evolution: with frameworks like Claude Code and OpenAI Codex, it is now possible to work this magic on entire codebases at once, helping users understand not only individual modules but also their often-complex relationships.</p><p>In our latest architectural deep dive, we used these two leading LLM-based assistants to analyze and document the open-source Shopware platform — without any prior knowledge of its codebase, which is written mostly in PHP. That’s not exactly a native tech stack for us Java and JavaScript developers!</p><p>Here is a first-person, practical look at how these tools perform with a focus on system mapping, requirement extraction, and architectural validation.</p><h3>The Tools</h3><p>In the rapidly market of coding agents, two offerings have emerged:</p><ul><li><strong>Claude Code</strong> by Anthropic, recognized as one of the pioneers of this new generation of coding agents.</li><li><strong>Codex</strong> from OpenAI, which leverages the advanced capabilities of the GPT model family.</li></ul><p>While additional coding agents are available — such as Google’s Gemini — for the purpose of this discussion, we will focus on these two leading solutions in this article.</p><h4>Claude</h4><p>Claude Code provides a simple CLI interface, which requires its users to familiarize themselves with the terminal:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W4pr5jyDeIDYbYQ8x-QX4g.png" /><figcaption>Claude’s interface</figcaption></figure><p>With only the source code repository and zero prior context loaded, we started Claude with ‘<strong>claude /init</strong>’ and put it to work analyzing the sample codebase. The generated <strong>CLAUDE.md</strong> contains specific commands for building, testing, and running the project and is useful for human developers, too. Its stepwise progress tracking was surprisingly effective (“TODOs” surfaced, not noisy, just right). Documentation and TODO states were displayed, providing an unexpectedly helpful “paper trail” for humans and bots alike.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yddY2INj5A6n7xNnpz8XIA.png" /><figcaption>Claude’s ‘paper trail’</figcaption></figure><p>During our work, the CLI got stuck once trying to copy the whole history to the clipboard and the session had to be closed, but we were able to continue seemlessly with ‘<strong>claude –continue</strong>’ and learned that ‘<strong>/log</strong>’ is a better way to export the chat history. Although it occasionally asks to proceed, in its current version there is no way to obtain the raw commands that were executed in the terminal by Claude.</p><p>A rather inconvenient fact is that with Claude’s standard subscription, there is a hard limit at what you can do within a certain period of time. After running the tool for some time, we suddenly got this message:</p><pre>&#39;warning !!! Approaching usage limit - resets 1pm !!!&#39;</pre><p>Luckily, it was already 11:30 AM, so we let Claude send us into the lunch break and continued afterwards.</p><h4>Codex</h4><p>Codex is an offering by OpenAI that’s quite similar to Claude Code. It comes as a CLI tool, IDE plugin or a Cloud variant that works on GitHub repositories. For our experiments, we used Codex CLI which can also be used with existing OpenAI API keys instead of a ChatGPT subscription. Additionally, it is possible to use arbitrary LLMs with the CLI (even local ones running e.g. in <a href="https://ollama.com/">Ollama</a>) as long as they support the general request/response mechanisms expected by the tool.</p><p>As a CLI tool, codex interface is quite simple and consists of two panes: one in which the user enters a command and one that displays the systems’ responses — alternating between the LLMs thought train (its ‘reasoning’) and approval requests for the commands it wants to execute.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x_cmTq8FR_NgQCJx0O_EWA.png" /><figcaption>Codex’ CLI interface</figcaption></figure><p>Obviously OpenAI wants to ‘play it safe’ and puts a lot of effort into making sure the LLM cannot do anything without the user’s explicit permission. If you start Codex with the default configuration, the following restrictions apply:</p><ul><li>The system cannot write anything to disk. With the CLI, this mode is not very useful because as far as we were able to determine, at least on a Linux system it is not possible to get the chat window’s output into the clipboard.</li><li>The system will ask for permission for every command it executes (even read-only ones), which can become quite cumbersome.</li><li>Codex has no network access, so automatic download of required libraries or other files is not possible.</li></ul><p>To make our work easier, we ran codex using the following command:</p><pre>codex -c network_access=true -c sandbox_mode=workspace-write</pre><p>This permits network access and grants Codex write access to the tool’s execution directory and its subdirectories. The latter one is a restriction we appreciate, as LLMs are, in our eyes, still far too unreliable to be given unfettered write access to the file system!</p><p>Also different from Claude, Codex did absolutely nothing when it started, but simply waited for the first prompt.</p><p>What is nice about Codex is that it keeps a complete log of all activities in the form of a log file, which is per default located in the user’s home directory under the path .codex/sessions. Every session is stored a separate log file in <a href="https://jsonlines.org/">Jsonlines</a> format:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rFMdUlJmkrGvM3h8tFo0FA.png" /><figcaption>Codex’ session log</figcaption></figure><p>This way, it is possible to track everything that the LLM did — even if we dangerously allow it to execute commands without our explicit consent.</p><h3>The Sample Codebase</h3><p>To evaluate the two LLMs’ capabilities, we wanted to do something that is close to a real-world application and had a look at several Open-Source projects that are available on GitHub. We finally chose <a href="https://github.com/comsysto/prno-shopware/tree/trunk/src">Shopware</a>, an ecommerce platform that is written in PHP and used on many internet platforms. For our experiment, it fulfills the following requirements:</p><ul><li>It is comparable to many enterprise systems in size.</li><li>Its complete code is available.</li><li>It is written on a tech stack that is foreign to us, but still easy to understand if we invest some effort.</li></ul><h3>Mapping the Terrain Quickly: C4 Models at Multiple Levels</h3><p>Our initial goal was to get an overview of the system’s architecture, starting with a very high-level view and then continue drilling down into the individual parts. For us humans, the best way towards quick comprehension of a system’s setup are architecture diagrams, so we asked the LLMs to generate them for us.</p><p>As a diagramming language, we chose <a href="https://c4model.com/">C4</a>. This lightweight framework for visualizing software architecture sits between informal “boxes and lines” sketches and comprehensive UML diagrams. While UML offers a wide range of standardized symbols and detail, C4 focuses on clarity and simplicity, using just four hierarchical diagram types — Context, Container, Component, and Code — to depict various levels of a system’s structure. This approach makes C4 diagrams easier to create and understand than UML, but more structured and meaningful than ad-hoc diagrams, helping teams effectively communicate the architecture of their software systems.</p><h4>The high-level perspective: System Context</h4><p>The most top-level diagram type C4 has to offer is the ‘System Context’, providing a high-level overview of a software system and how it interacts with external actors such as users, systems, and services. It shows the system’s boundaries, its primary users, and neighboring systems, helping stakeholders quickly understand what the system does and how it fits into its broader environment.</p><p><strong>Prompt</strong>: <em>“In a first step I want to understand shopware’s domain and architecture more in detail. My goal later is to rewrite parts of the software in another programming language. Please don’t change anything in the code now, only focus on analysis. Your first task now is to generate a C4 Context diagram of shopware’s domain.”</em></p><p><strong>Claude</strong></p><p>As a result, Claude initially generated a <a href="https://mermaid.js.org/syntax/c4.html">Mermaid</a> diagram which has some downsides in layout and positioning, especially on relationships. So, we asked Claude to render the diagram as <a href="https://plantuml.com/">PlantUML</a>, which it promptly did:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qJsPgLqf9OJ5PoHgxsfkWQ.png" /><figcaption>C4 System Context, generated by Claude</figcaption></figure><p>The resulting C4 System Context diagram was quite detailed, identifying Customer, Guest, Merchant/Store Manager, Admin, Editor, and Support as users and showing how external actors (payments, shipping, ERP, search, marketplace, etc.) integrate with Shopware Core. The relationships show not only who uses the API, but also how (Store API, Admin API, webhooks, SMTP, REST, etc.).</p><p>Since PlantUML does not natively support C4 — you need an external Styles library to realize it — we were surprised and quite impressed that Claude automatically included the <a href="https://github.com/plantuml-stdlib/C4-PlantUML">required library</a> without further prompting.</p><p><strong>Codex</strong></p><p>Codex immediately started to generate a PlantUML diagram. Like Claude, it included the required extension <a href="https://github.com/plantuml-stdlib/C4-PlantUML">C4-PlantUML</a> automatically. Sadly, our first try produced a diagram that was both syntactically wrong and (after manual correction) quite disappointing, containing far less useful detail than the one produced by Claude. To our judgement, this context diagram skips too many details to be useful in understanding the system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4k1CTRtNi7ZjPIuPwAknpg.png" /><figcaption>Codex’ initial effort to produce a C4 context diagram</figcaption></figure><p>Interestingly, after we cleared the context and started a second run, Codex produced a far better result that is comparable to Claude’s product in detail and comprehensiveness.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BFKiv7UlCX8A7xaSxzxfmg.png" /><figcaption>Final C4 System Context, generated by Codex</figcaption></figure><p>It seems that the general variance in quality that marks the responses of today’s LLMs holds also for this new generation of coding assistants. That means that at least at the current time, developers should not rely blindly on the validity or comprehensiveness of the results but rather give it several tries to tease out the best results. We also must apply our own good judgement to find if anything important has been left out and add it if necessary.</p><h4>Understanding the system’s internal setup: Container Diagrams</h4><p>A C4 container diagram builds on the context diagram by zooming in to show the main internal structures — known as containers — within the system, such as applications, services, databases, or other key components. While the context diagram shows how the system fits into its environment, the container diagram reveals how the system is divided into separate deployable/run-time units and how these units interact with each other and external actors.</p><p><strong>Prompt:</strong> <em>Next in our analysis we want you to create the C4 Container diagramm in plantuml. Put the output to the folder “ prno-analysis”.</em></p><p><strong>Claude</strong></p><p>Claude produced a logical, high-level overview that is helpful because the system boundaries, the external actors and the used infrastructure are well represented. For example, the diagram makes it immediately obvious that the core makes use of message queues and file storage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uyHdD7r5lAsrerT6VfnixA.png" /><figcaption>C4 Container Diagram, generated by Claude</figcaption></figure><p>One limitation is that the meaning of the arrows between components is ambiguous; it is unclear whether they indicate dependencies, direct calls, or data flow directions.</p><p>Also, we identified a notable misinterpretation: Claude treats ‘Storefront’ and ‘Admin’ as pure UI components while they really include both UI and corresponding ‘Backend’ APIs (reference: <a href="https://developer.shopware.com/docs/concepts/framework/architecture/storefront-concept.html">Shopware Storefront Concept</a>). It seems that Claude’s output favors a traditional layered architecture, organizing modules by technical concerns like UI, controller/business logic, and infrastructure/persistence. While this is a common and valid approach, it misses the vertical separation by main domains (Storefront and Administration). Had we drawn the diagram ourselves, it would have looked more like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xAENEHJvKuhpx34dQWttnA.png" /><figcaption>Human-modified C4 Container Diagram including verticals</figcaption></figure><p>The green boxes show off the ‘verticals’ named ‘Storefront’ and ‘Administration’. They each consist of two distinct containers — one pure frontend technology, one a PHP API that serves as a business logic facade.</p><p><strong>Codex</strong></p><p>Codex produced a container diagram that is a little less detailed than Claude’s product — it seems to have skipped some of the external dependencies Claude included. What it did right from the beginning, however, is the separation of Frontend and API components:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nG8hqECBRYufCyM_Gp69PQ.png" /><figcaption>C4 Container Diagram, generated by Codex</figcaption></figure><p>Note, however, that this diagram now does not mention the ‘Core API’ that is used in both Store API and Admin API and is very prominently visible in the source code. Since we wanted to know if this was for a good reason or an oversight by the assistant, we asked it for its reasoning behind it:</p><p><strong>Prompt</strong><em>: Have a look at the diagram in c4-container-shopware.puml you generated and explain why you didn’t depict the ‘Core API’ in the container diagram. Is there a specific reason?</em></p><p>Codex took some time and initially stated that the Core API component was an integral part of the Admin API component. Since we knew that Core API is also used inside Storefront, we asked again. Finally, Codex produced an answer that we considered plausible:</p><pre>- At the container level, you only show public‐facing containers <br>  (Storefront, Store API, Admin API, etc.), not every internal API component. <br>- The &quot;Core API&quot; lives inside the Admin API (and has its own component <br>  diagram), and the Storefront → Store API relationship is already correctly <br>  depicted. <br>- If you did want to show Storefront talking directly to a standalone <br>  &quot;Core API&quot; container, you&#39;d first need to promote that Core Backend API <br>  boundary to a top‑level container (and remove or merge it from Admin API); <br>  but that would be a different architectural partitioning than the one <br>  currently chosen.</pre><h4>Drilling down: Component Diagrams</h4><p>A C4 component diagram provides a deeper look inside a single container identified in the container diagram, detailing the major components (such as modules, classes, or services) that make up that container and how they interact. In relation to the context diagram, which shows the system’s external relationships, the component diagram helps stakeholders understand the internal structure and responsibilities of a specific part of the system.</p><p>We found it challenging to identify and validate certain components within the diagrams, so we explicitly asked for a mapping between logical components and their corresponding locations in the repository. This step bridges the gap between “what the system does” and “where in the codebase to make changes”. The underlying reason is that C4 diagrams typically group components by business capability and having a clear mapping between them is crucial for effective navigation and maintenance.</p><p><strong>Claude</strong></p><p>Since Claude identified the ‘Core API’ as the main container, we asked it for a component diagram of this container.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1nElw6WZIZO73d7g43Yijw.png" /><figcaption>C4 Component Diagram, generated by Claude</figcaption></figure><p>In terms of relationships, the component diagram depicts a connection between the Cart Service and the Shipping Calculator. However, this direct link is not present in the actual code diagram. On closer inspection, the connection exists only indirectly through the DeliveryProcessor, which is reflected in the code structure. So, at the component level, it’s accurate to show an interaction between cart and shipping; at the implementation level, the real linkage is between the cart and the DeliveryProcessor, which internally handles shipping calculations.</p><p><strong>Codex</strong></p><p>Interestingly, Codex put two containers in the diagram — one for the ‘Storefront’ and one for ‘Core API’. When creating the container diagram, it stated quite fervently that the Core API was <em>not</em> a standalone container.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zwzk7xGX5v0dSqaF6D6wkQ.png" /><figcaption>C4 Component Diagram, generated by Codex</figcaption></figure><p>Let’s be fair to the LLM — human developers often have difficulty differentiating between runtime containers and library components, too — so why should automatically generated output be different? However, this reinforces our view that while LLMs can help with analyzing architecture, they should not be relied upon as the final source of truth.</p><h4>Deep down: Depicting the Code</h4><p>Every developer knows that the final, ultimately reliable source of truth is not the documentation, but the code itself. Diving down to the source code level is thus essential for truly understanding a piece of software. As a pedestrian’s map for walking the codebase, we often employ class diagrams that depict the various units of code.</p><p><strong>Prompt</strong>: <em>Next in our analysis we want you to create the C4 code diagramm in plantuml for the Cart Server of the Core Backend API container. Put the output to the folder prno-analysis.</em></p><p><strong>Claude</strong></p><p>At the code level, the diagram was generally more intuitive and aligned well with our understanding of the implementation. However, some important elements were missing or depicted inconsistently. For example, the PaymentProcessor functions as an external dependency, but this is not reflected in the diagram. Similarly, major boundaries such as StoreApi and AdminApi are absent, even though they are critical for distinguishing between runtime entry points and organizing request handling.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PiCS4-6Jq5BBmiASE2Wsuw.png" /><figcaption>C4 ‘Code’ Diagram, generated by claude</figcaption></figure><p>Additionally, the diagram correctly shows links to CustomerService at the implementation layer, but this connection does not appear in the higher-level component diagram, which highlights a difference between logical and concrete representations.</p><p><strong>Codex</strong></p><p>For Codex, the prompt turned out too imprecise, because it generated yet another component diagram with very few components. That is forgivable, since the C4 ‘code’ diagram is rather flexibly defined like this:</p><p><em>Finally, you can zoom in to a component to show how it is implemented as code, using UML class diagrams, entity relationship diagrams, or similar.</em></p><p><strong>Prompt</strong><em>: In C4, a ‘code’ diagram is usually a class diagram. Please create one for the Cart Service container.</em></p><p>After we helped Codex along with this prompt, Codex produced a PlantUML class diagram. Unlike Claude, it used the original PlantUML style instead of the C4 component styling, which is actually correct (!) since it follows the recommendations at <a href="https://c4model.com/diagrams/code">https://c4model.com/diagrams/code</a>.</p><p>Equally unlike Claude, Codex included only a subset of the classes in <strong>src/Core/Checkout/Cart </strong>— especially, it left out the various ‘Line Item Factories’. We wondered about this and asked Codex to explain:</p><p><strong>Prompt</strong><em>: Why did you not include the various line item factories?</em></p><pre>I left the Line‑Item‑factory classes out of the code‑level diagram because <br>they&#39;re not directly injected into or invoked by CartService itself - they&#39;re <br>an implementation detail of how line items get instantiated (typically down <br>in the CartFactory or in the individual route handlers). The goal of this <br>diagram was to spotlight only the classes that CartService actually depends on (and to give each of those a succinct &quot;purpose&quot; plus the nature of the association). Including the various LineItem factories would dilute that focus, since CartService never calls them directly. <br>If you&#39;d rather have those factories shown (for completeness or documentation <br>purposes), we can certainly tuck them in with a brief description and a &quot;uses&quot; <br>arrow from CartService (or more accurately from CartFactory/route components). <br>Just let me know!</pre><p>While the LLM has a point here, we wanted to see how its results compare to Claude’s:</p><p><strong>Prompt</strong>: <em>Please include everything relevant that resides in src/Core/Checkout/Cart</em></p><p>Following this prompt, Codex finally produced a diagram that’s comparable in complexity to Claude’s product.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gPVeW0N5vGbrNA4vxeXp8w.png" /><figcaption>C4 Code diagram, generated by Codex</figcaption></figure><p>Still, some classes Claude included are missing. We soon found out that many of these reside in subdirectories of ‘Cart’. Asking about it, Codex explained:</p><pre>Including sub‑folders like Address, Delivery, Event, Error, LineItem/Group, <br>Order, Price, RuleLoader, Validator, etc., would balloon the class diagram <br>to hundreds of boxes, and most of those types aren&#39;t directly injected into <br>or invoked by CartService itself - they live deeper in the processing <br>pipeline. In UML terms, they&#39;re second‑order implementation details that <br>CartService (or its immediate collaborators) orchestrates but doesn&#39;t couple <br>to directly.</pre><p>Since that’s exactly how we ourselves might have argued, we left it at that — quite confident that Codex would help us drill down further into the code base if required.</p><h3>Requirements Extraction: What Can LLMs Capture?</h3><p>After mapping the architecture, the next logical step was extracting actual requirements, not the hand-wavy “should be able to add a product to cart” kind, but precise specifications to outsource implementation.</p><p><strong>Prompt</strong>: <em>Next in our analysis we want you to extract the requirements of the Cart Service. Akt as a requirement engineer who knows the current Cart Service and its features and functionalities very well. It is important that you only take the current Shopware software into consideration. Do not add any features or requirements that don’t exist currently.</em></p><p><strong>Claude</strong></p><p>Claude produced:</p><ul><li>A markdown <a href="https://github.com/comsysto/prno-shopware/blob/trunk/prno-analysis-claude/cart-service-requirements.md">requirements sheet</a> from combing the cart code, with functional breakdowns (cart lifecycle, line items, price calc, API, events).</li><li>A detailed <a href="https://github.com/comsysto/prno-shopware/blob/trunk/prno-analysis-claude/cart-service-detailed-specification.md">specification sheet </a>(~900 lines) for outsourcing a Cart Service rewrite entity definitions, workflows, API shapes, payloads, and points of code integration.</li></ul><p>On closer inspection, for outsourcing a rewrite, the requirements generated were a starting point but not detailed enough. Extraction by an LLM captures what is in the code, but needs human support to document edge cases, business rules, or things that “shouldn’t be there but are used in practice.”</p><p><strong>Codex</strong></p><p>Codex also produced a <a href="https://github.com/comsysto/prno-shopware/blob/trunk/prno-analysis-codex/prno-analysis-codex.md">document</a> that outlined the requested requirements. However, it was kept quite short and far less extensive than Claude’s product.</p><p>It covers the core functions but is not exhaustive. For example, detailed business rules, database requirements, integration details, concrete error handling, performance, and scalability requirements are missing.</p><p>Where Claude’s output was found to require improvement, Codex’ is blatantly lacking the depth and detail that would be needed, so it can only be used as a starting point.</p><h3>Validation of Artefacts — Did It Get the Architecture Right?</h3><p>We compared the generated models and docs against:</p><ul><li>Official <a href="https://developer.shopware.com/docs/">Shopware documentation</a></li><li>Annotated <a href="https://github.com/comsysto/prno-shopware/tree/trunk/src">code</a> (direct references, usage of actual service containers and repositories)</li><li>Our own domain understanding</li></ul><p>Both LLMs’ artefacts are remarkably precise, much more than what is typically available in a handover or even in official documentation. The generated material provided system context, accurate dependency relationships, and real-world event integration points.</p><p>However, some buzzword droppings, like labeling or layering for “hexagonal architecture” or some cross-domain boundaries, require domain expert validation. In one case, diagrams depict a strict horizontal layering, while historically Shopware prefers vertical slice/domain boundaries (Storefront vs. Admin) enclosing UI, service, and data access. This is why the final analysis result must always be double-checked with domain experts as well as technical experts.</p><h3>Discussion: Strengths, Gaps, and Real-World Utility</h3><p>We tested two LLM based coding agents that are supposed to be game changers in how Software is produced today.</p><p>In our efforts, we focused on one of the most complex and unrewarding tasks a developer can face: analyzing a foreign language system for maintenance, or even a rewrite. So, did the LLM agents actually help us?</p><p><strong>Pros:</strong></p><ul><li>The generated visuals were impressive — easy to read with the right level of abstraction. Both PlantUML and Mermaid diagrams rendered well.</li><li>The overall architectural analysis was valid: Nothing egregious was missing or flat-out wrong, modulo a few presentation choices we might do differently. The produced documentation is far more accurate than many of the neglected, outdated Wiki spaces you often find at customers. Logical diagrams were mapped to physical code folders, connecting “how it works” to “where it lives.”</li><li>Speed: System understanding and onboarding were drastically accelerated. Perfect for project handover, initial event storming, or syncing new team members.</li></ul><p><strong>Cons:</strong></p><ul><li>Some hallucination on architectural principles: E.g., auto-inventing or overapplying hexagonal layering. These must be manually validated to avoid ‘buzzword bingo’.</li><li>Requirements<strong> </strong>were “good enough for review” but not turnkey for a full rewrite: For a production-level rewrite of a complex domain (like Cart), you still need more fine-grained acceptance criteria, examples, and clarification with domain experts.</li></ul><h4>Differences between LLMs/Agents</h4><p>Both Claude Code and OpenAI codex were helpful in our analysis and produced diagrams and other documentation of sometimes amazing quality and comprehensiveness.</p><p>After working with both tools for some time, it becomes clear that both are powerful and it is possible to reach similar results. However, Claude has a clear edge over Codex since it does a lot more work on its own, with only minmal direction, often producing useful by-products on the way we initially didn’t even ask for. OpenAI’s Codex needs much more supervision and constant redirection to produce the intended results and thus costs the developer more time that could be better invested otherwise.</p><h3>Our Summary &amp; Takeaways</h3><p>After a full validation with both ups and downs, both Claude Code and OpenAI Codex impressed by producing correct, visually appealing architectural outputs with just the right level of abstraction.</p><p>Although we would arrange our own diagrams slightly differently and always recommend expert checks, the agents’ explanations were very helpful. To summarize, the result is a huge acceleration in system understanding, handover, and onboarding even for large codebases like Shopware.</p><h4>TL;DR</h4><ul><li>LLMs can replace days of event storming and manual mapping for analyzing a codebase.</li><li>The integration of LLM crafted artefacts improves understanding of codebase structure and speeds up navigation for newcomers.</li><li>Effective in helping developers transition between unfamiliar tech stacks, bridging gaps in documentation and domain knowledge.</li><li>Diagrams are a great basis for discussion and further breakdown of the codebase</li><li>Best used for project handover, boosting onboarding, and as a first draft for architectural documentation.</li><li>Claude Code does a lot of work by itself while Codex needs constant supervision and re-prompting.</li><li>LLM hallucinations (overstating certain design principles, like “everyone is using hexagonal architecture”) need a human review.</li><li>An actual rewrite or deep requirements analysis still needs experienced engineers.</li></ul><p>This Blog Post is presented to you by <a href="https://www.comsystoreply.de/">Comsysto Reply</a>.</p><p>Are you a developer with a passion for cutting-edge technology, seeking your next adventure? Visit our <a href="https://www.comsystoreply.com/career">Career Opportunities page</a> now, and discover how you can take your next step together with a team that celebrates innovation, growth, and collaboration.</p><p>Are you content where you are, but seek expert Software Engineering and DevOps support? Join forces with our passionate professionals to supercharge your project’s success. <a href="https://www.comsystoreply.de/services">Contact us</a> for innovative, custom solutions tailored to your needs. Let’s collaborate — your tech breakthrough starts here!</p><h3>References</h3><ul><li><a href="https://docs.claude.com/en/docs/claude-code/overview">Claude Code by Anthropic</a></li><li><a href="https://github.com/openai/codex">Codex by OpenAI</a></li><li><a href="https://developer.shopware.com/docs/">Official Shopware Documentation</a> &amp; <a href="https://github.com/shopware/shopware">Shopware Codebase</a></li><li><a href="https://c4model.com/">The C4 model for visualising software architecture</a></li><li><a href="https://plantuml.com/">PlantUML</a> &amp; <a href="https://github.com/plantuml-stdlib/C4-PlantUML/tree/master">C4-PlantUML</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b96a069dd26b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/comsystoreply/how-llms-support-product-renovation-a-case-study-b96a069dd26b">How LLMs Support Product Renovation: A Case Study</a> was originally published in <a href="https://medium.com/comsystoreply">comsystoreply</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How2CKAD]]></title>
            <link>https://medium.com/comsystoreply/how2ckad-51349a9dcacb?source=rss-a882bcbc4435------2</link>
            <guid isPermaLink="false">https://medium.com/p/51349a9dcacb</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[ckad]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[certification]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[Florian Schönherr]]></dc:creator>
            <pubDate>Tue, 06 Feb 2024 09:09:07 GMT</pubDate>
            <atom:updated>2024-02-06T09:09:07.101Z</atom:updated>
            <content:encoded><![CDATA[<h3>How2CKAD — Tips and Tricks for the Certified Kubernetes Application Developer exam</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*YXNUwnBFw03zsOButXnZnQ.png" /></figure><h3>1. Introduction</h3><p>Having recently attained the CKAD (Certified Kubernetes Application Developer), I decided I had to write something about my experience - because I did many things wrong in my preparation, mistakes I think I could have easily avoided with the right advice.</p><p>It seems that many people who did this certification feel the same — there are already quite a few articles out there on the net (see <strong>References </strong>at the end of this post), articles that I found quite helpful. Yet, some details and good practices I had to learn for myself, and I want to share those with you.</p><p><strong>Note</strong>: There is an NDA associated with the exam, so I won’t disclose any details about the actual tasks you’ll have to do to get the certification. What’s more important, however, is that you know how to prepare for the exam and how to manage the actual exam situation.</p><h3>1.1. What is Kubernetes?</h3><p>Kubernetes, short K8s, is a platform for managing clusters of containerized applications on multiple machines, automating their lifecycle, deployment, scaling, and management. K8s was originally developed by Google but today is an open-source project maintained by CNCF (Cloud Native Computing Foundation).</p><p>Kubernetes is not a traditional, all-inclusive Platform as a Service (PaaS) system. Instead, it provides declarative cluster management independently of the actual platform to which the cluster is deployed — be it e.g. Google Cloud Engine, Microsoft Azure, Amazon AWS, or good old on-premises systems.</p><p>Some call it ‘The Operating System of the Cloud’. You could also call it a <em>lingua franca</em> that can be used in any cloud environment.</p><figure><img alt="A Kubernetes cluster consists of a control plane and multiple worker nodes that are configured through YAML files." src="https://cdn-images-1.medium.com/max/518/1*7Zhk7C1NDQvjliEZ-gu_vA.png" /><figcaption>Figure 1: A Kubernetes cluster</figcaption></figure><p><strong>Figure 1</strong> shows a highly simplified K8s cluster. The control plane manages the state of the cluster, including scheduling applications, maintaining the desired state, scaling applications, and rolling out new updates. Key components of the control plane include the kube-apiserver, etcd, kube-scheduler, and kube-controller-manager.</p><p>Worker nodes run the applications and workloads. Each worker node has a kubelet, which is an agent for managing the state of the node and ensuring that containers are running as expected. Nodes also have a container runtime (like Docker, CRI-O, or containerd) to run containers grouped to so-called ‘Pods’, and kube-proxy to maintain network rules on nodes, enabling network communication across the cluster.</p><p>Every object is defined using a declarative configuration that’s usually written as a YAML file. This YAML is interpreted by K8s and any delta between the cluster’s actual and expected configuration is automatically resolved by the platform.</p><h3>1.2. What is CKAD?</h3><p><strong>CKAD</strong> is short for ‘Certified Kubernetes Application Developer’. It is the official certification for people who want to develop applications to be deployed in a K8s cluster in the role of a DevOps engineer. CKAD is <em>not</em> the certification for full administration of large K8s clusters in production. If that’s your focus, CNCF offer also the <strong>CKA</strong> (‘Certified Kubernetes Administrator’) and the more specialized <strong>CKS</strong> (‘Certified Kubernetes Security Specialist’) certifications. See this article for a more thorough comparison: <a href="https://k21academy.com/docker-kubernetes/cka-v-s-ckad-v-s-cks/">CKA vs CKAD vs CKS — Differences &amp; Which Exam is Best For You?</a></p><h3>2. Studying for the CKAD Exam</h3><p>What you learn in official training (for example at Udemy or Linux Foundation) may be misleading concerning the certification. As is typical for such classes, they provide several lectures that contain lots of background information, along with a set of exercises to be executed by the students in a test environment. The intention of these exercises is that you learn to do things with <strong>kubectl</strong>, <strong>docker,</strong> and <strong>helm. </strong>This is very useful when you start learning Kubernetes from scratch, to get an overview of what’s possible. <br>However, these lectures <em>may</em> fail to make the point of what is required to pass the exam: speed.</p><p><strong><em>The main requirement of the CKAD exam is speed. <br>To pass it, you have to exercise. A lot.</em></strong></p><p>Let me press this: to pass the exam, you have to be able to enter the right commands, in the right order, in very little time. On average, you will have between 3 and 8 minutes per task to solve it.</p><p>There are certainly some tips that help you to be faster (I will come to that later), but no amount of time management will be enough if you do not know the right commands or cannot enter them quickly <em>and</em> correctly, without producing error messages.</p><p>You may be in the lucky situation that you have worked with K8s before, especially with the <strong>kubectl</strong> command line client, and know at least some of its ins and outs by heart. <em>If</em> you think you are fast enough already, you can skip the next sections and directly go to section <strong>3.4.</strong> <strong>The training exam </strong>to validate your assumption. Otherwise, as it was with me, best prepare yourself for going to the K8s gym. Daily.</p><h3>2.1. Finding your gym</h3><p>The first and most important thing is to find an environment that you can use to train for the exam, because (of course) you need access to a Kubernetes cluster.</p><figure><img alt="AI-generated illustration of a ‘Kubernetes gym’." src="https://cdn-images-1.medium.com/max/1024/1*N5b1ibW-KETZnTeKEFYDBw.png" /><figcaption>The K8s gym (by Dall-E)</figcaption></figure><p>There are several options to get your hands on one, the most likely being:</p><ul><li>Online playgrounds</li><li>VMs hosted in the cloud</li><li>Local VMs</li><li>K8s playground on your machine</li></ul><h4>2.1.2. Online playgrounds</h4><p>The easiest option alltogether are pre-configured online playgrounds. Searching for ‘kubernetes online playground’ on the net gives you several several options. Some of these providers are free (e.g. Killer Shell, see below), some of them require a paid plan, for example KodeCloud. Access to one of these providers may be included in your course package.</p><p>These playgrounds offer you an online terminal that you may use for hands-on experience with a small K8s cluster. The distinct advantage is that you don’t need to setup anything at all - just start working.</p><p>The disadvantage is that you have to use the terminal and the cluster ‘as is’ without the ability to change anything, at least not permanently. Some of the playgrounds will even log you out after a certain period of time — afterwards, you’ll have to start from scratch.</p><h4>2.1.2. VMs hosted in the cloud</h4><p>A somewhat obvious choice to run your gym cluster is the great cloud providers (AWS, GCP, MS Azure). All of them offer a managed K8s cluster that relieves you from the need to set it up yourself. As usual, you can <em>try</em> this service for free but need to provide payment details when creating the account, for the eventuality that you exceed the free plan’s limits.</p><p>Be warned that there is a real possibility that you get charged, so if that cost is not covered by your company or some other benefactor (and surprise bills are a problem for you), you may want to choose one of the other options to run your exercises.</p><h4>2.1.3. Local VMs</h4><p>Using local VMs (e.g. running in VirtualBox) is also a way to run a true K8s cluster.</p><p>Setting this up requires some prior knowledge about the VM tooling of your choice, Linux, and Linux Networking. You may also learn things about K8s and the <strong>kubeadm</strong> tool that are normally reserved for the <strong>CKA</strong> exam and not strictly needed for <strong>CKAD </strong>(but required for setting up a cluster).</p><p>To make things easier, there are some nice how-tos out there that will take you through the process step by step (see for example <a href="https://medium.com/@mojabi.rafi/create-a-kubernetes-cluster-using-virtualbox-and-without-vagrant-90a14d791617">Create a Kubernetes Cluster using Virtualbox — The Hard Way</a>), but it may take some time and debugging to get it up and running, so if this is a good choice depends on the preciousness of your time.</p><h4>2.1.4. K8s playground on your machine</h4><p>Running a local K8s cluster is possible using <a href="https://minikube.sigs.k8s.io/docs/">Minicube</a> or <a href="https://www.docker.com/products/docker-desktop/">Docker Desktop</a> and is quite easy to set up.</p><p>My class teacher stated that it’s not possible to train effectively with a local playground, but I found that there are only a few things you can’t do with it — mostly relating to worker node selectors and taints (which is kind of obvious). This disadvantage may be negligible, but be aware of it.</p><p>All the other exercises can be run without issue, and the big plus is that you can do it directly on your machine, in your shell, with your tools and shortcuts.</p><h4>2.1.6. Recommended training environment</h4><p>At the time of writing, there is no obvious ‘best’ way to run the exercises, as it depends completely on your background and preferences:</p><ul><li>If you have access to a cloud provider and either know how to avoid being charged or have someone who covers the cost, go for <strong>VMs hosted in the cloud</strong>.</li><li>If you know how to use VMs and know your way around Linux networking, you may want to opt for <strong>Local VMs</strong>.</li><li>If none of this applies to you, I recommend a combination of one of the <strong>online playgrounds</strong> (e.g. Killer Shell) and <strong>K8s playground on your machine</strong>, the first one to run any tasks that require multiple nodes, the second one to do all the rest using your shell and tooling of choice.</li></ul><h3>3. What to learn</h3><p>The first and most obvious source that tells you what you need to learn is the <a href="https://github.com/cncf/curriculum/tree/master">CKAD Curriculum</a>. Check here if you (or the class you are taking) have gaps on any important topics. You should also recheck the curriculum regularly while training because it may get updated anytime, without prior warning (e.g. when a new version of K8s is released).</p><p>Beyond the curriculum, you need exercises to do. The best sources are:</p><ul><li>Killercoda Interactive Environments</li><li>Dimitris-Ilias Gkanatsios’ CKAD Exercises</li><li>Cilium Network policy editor</li><li>The training exam</li></ul><h3>3.1. Killercoda Interactive Environments</h3><p>Killercoda / Killer shell not only provides a ready-to-use K8s cluster but also a very comprehensive set of <a href="https://killercoda.com/killer-shell-ckad">exercises</a> that are quite close to what’s required in the exam. It’s automatically scored and completely free to use, so you should do so repeatedly until you can do all the tasks easily on the first attempt.</p><p><strong>Note</strong>: Killercoda is a great starting point for training, but it’s not exhaustive — you should get your hands on additional sets of exercises.</p><h3>3.2. Dimitris-Ilias Gkanatsios’ CKAD Exercises</h3><p>This <a href="https://github.com/dgkanatsios/CKAD-exercises">GitHub page</a> offers a great many exercises, plus solutions. This page covers most of the topics in the curriculum. Do them in your training environment and do them repeatedly until you feel completely comfortable.</p><h3>3.3. Cilium Network policy editor</h3><p>Network policies are very important for K8s cluster security, and one of the most complex topics present in the <strong>CKAD</strong> curriculum, but they are poorly covered in the sources mentioned so far. For the exam, however, you should make sure that you know how to write policies for a set of common scenarios.</p><p>To get a deeper understanding of network policies, you can use the convenient online <a href="https://editor.networkpolicy.io/">Network Policy Editor</a>, which will help you create the YAML for specific scenarios using a wizard. You can then view or download the generated YAML and use it for your training.</p><h3>3.4. The training exam</h3><p>When you register for certification, it includes limited access to a practice exam. This is your most valuable tool, both for training and for judging your abilities. The tasks presented are the closest to the real exam you’ll get. You should be fine if you pass the practice exam with, say, at least an 80% score in two hours. If you do not reach this goal, you may want to use the remainder of your access time to repeat the tasks multiple times until you can do them within less than two hours.</p><p>At the time of writing this post, the certification fee includes 2 units of:</p><ul><li>2-hour practice exam that you can use to judge your skills.</li><li>34 hours subsequent access to the environment that you can (and should) use to:<br>- get familiar with the certification environment<br>- repeatedly execute the tasks for practice</li></ul><p><strong>Tip</strong>: If you can, start the practice exam at a time when you can use a larger part of the following 36 hours for training.</p><h3>4. Strategies for passing the exam</h3><p>The actual exam is supervised through your camera (laptop or external). Make sure that your environment meets the <a href="https://docs.linuxfoundation.org/tc-docs/certification/tips-cka-and-ckad">requirements</a> and that you are there early (you are allowed to log in 30 minutes ahead of exam time). You will be authenticated by showing your identity and your face, and the proctor will ask you to move the camera around the room and to every nook and corner that might contain some hidden help for you (if you are about to attach your laptop to an external screen or cable-bound keyboard, it’s best to do so afterward).</p><figure><img alt="AI-generated illustration of a developer working under time pressure." src="https://cdn-images-1.medium.com/max/1024/1*-1bx38uDWw49MkRwqMemMw.png" /><figcaption>Exam situation (by Dall-E)</figcaption></figure><p>As mentioned before, time management is important during the exam. When logged in, you will encounter a simulated Linux desktop that provides all the (basic) tools you need. However, the environment may be kind of slow because it is virtualized and completely remote. To work best with it, you should take some important rules to heart:</p><ul><li>Prepare</li><li>Think before you type</li><li>Use shortcuts whenever you can</li><li>Type as little YAML as possible</li></ul><h3>4.1. Prepare</h3><h4>4.1.1. Before starting the exam</h4><p>Use the test exam to make yourself familiar with the virtual environment. Prepare a layout of terminals, editors, and browser windows that works for you <em>and</em> that you can quickly reproduce when starting the exam. It will be worth your time!</p><p>What worked for me:</p><ul><li>Two Terminals:<br>- A terminal for executing commands.<br>- Another terminal to edit files using <strong>vi</strong>/<strong>nano</strong> or to run <strong>kubectl explain.</strong></li><li>A graphical editor (Mousepad) to use as a clipboard for often-needed commands or parts of commands. Some candidates are, for example:<br>--dry-run=client -o yaml<br>k config set-context --current --namespace=</li><li>A web browser with the permitted sites opened in tabs. Make sure you know the websites you are allowed to use and have memorized their URLs since you are not permitted to use any search engines (!).<br>At the time of writing this blog post, these are:<br><a href="https://kubernetes.io/docs">https://kubernetes.io/docs</a><br><a href="https://kubernetes.io/blog">https://kubernetes.io/blog</a> (I never used that one)<br><a href="https://helm.sh/docs">https://helm.sh/docs</a></li></ul><p><strong>Note</strong>: All terminals already have <strong>kubectl</strong> auto-completion enabled and should respond to the common alias ‘<strong>k</strong>’, so you are not required to include that in your preparation. The same holds for the recommended <strong>vim</strong> editor configuration.</p><h4>4.1.2. Before working on a new task</h4><ol><li>Carefully read the task description. It is very easy to miss important details under stress.</li><li>Set the right namespace. This is helpful because if you do, you don’t have to include the respective parameter in every command. It is also very important because if your solution runs in the wrong namespace, it won’t be scored!</li></ol><p><strong>Tip</strong>: You can use this command to modify the currently used namespace:</p><pre>k config set-context --current --namespace=...</pre><p>Also, don’t forget to include the right namespace in any YAML specs required for the task, since kubectl create -f and kubectl apply -f ignore the namespace set using above command and always use the one in the submitted file!</p><h3>4.2. Think before you type</h3><p>Short but important: Don’t make the mistake of typing commands in a quick&amp;dirty manner hoping you can easily correct mistakes. The environment <strong>is</strong> kind of sluggish and the roundtrips you’ll need to analyze errors and fix typos will be much longer than you’re used to.</p><h3>4.3. Use shortcuts whenever you can</h3><ul><li>Use the k alias</li><li>Use the history</li></ul><h4>4.3.1. Use the k alias</h4><p>This one’s simple. Get used to the (predefined) shortcut k instead of typing kubectl to save 6 hits on the keyboard per command entered.</p><h4>4.3.2. Use the history</h4><p>Working with <strong>kubectl</strong>, you’ll have to type the same — or very similar — commands again and again. This is a good time to remember the power of Unix shells to keep a history of all commands you entered. For the exam, it’s extremely valuable to know how to use this history, at least (and most importantly) the reverse search function:</p><ol><li>Press <strong>Ctrl+R</strong></li><li>Type a part of the command you want to search for</li><li>If the right command is displayed, adjust it to your needs and press <strong>Enter</strong>.</li><li>If another command is displayed, type <strong>Ctrl+R</strong> again until you find the one you need.</li></ol><p>For more information on the history and the associated commands and shortcuts, please visit the <a href="https://www.gnu.org/software/bash/manual/html_node/Commands-For-History.html">Bash online documentation</a>.</p><h3>4.4. Type as little YAML as possible</h3><p>Since you won’t be able to solve all the tasks alone with <strong>kubectl</strong>, you will be required to produce YAML specifications to be digested via <strong>kubectl create</strong> or <strong>kubectl apply</strong>. To create this specification — or at least, a baseline to modify — you have three options:</p><ul><li>Dump an existing object as YAML.</li><li>Use kube-ctl’s dry-run capability.</li><li>Copy an example from the docs.</li></ul><p><strong>Warning</strong>: Never, ever, create a YAML specification from scratch during the exam. Typing YAML using the provided editors (e.g. vim, Nano, Mousepad) is cumbersome at best. You will make typos and indentation errors, resulting in debugging rounds that quickly use up your precious time.</p><h4>4.4.1. Dump an existing object as YAML</h4><p>If there is already an object in the environment that is of the same kind as the one you need to create, it might be a good idea to take this object and dump it to a YAML file that you can use as a starting point for your configuration:</p><pre>k get deploy existing_deployment -o yaml &gt; baseline.yaml</pre><h4>4.4.2. Copy an example from the docs</h4><p>The exam is Open Book, so you’re allowed to copy and paste from the official documentation to your heart’s content. Many of the tasks in the exam will ask for YAML code that you can find in the examples in very similar form — if you know where to look for them.</p><p>Especially for the <a href="https://kubernetes.io/docs">official Kubernetes documentation</a>, its a good idea to take mental notes on where in the (huge) tree of documents the relevant examples can be found. <a href="https://github.com/reetasingh/CKAD-Bookmarks">This page</a> created by Reeta Singh provides a curated list of bookmarks for interesting parts of the official docs.</p><p><strong>Warning</strong>: Using the search function to find examples should be considered a last resort. As stated previously, the environment is quite slow. Often, a multitude of documents will pop up, and opening each of them and scrolling through them in search of examples will take forever unless you’re lucky.</p><h4>4.4.3. Use kube-ctl’s dry-run capability</h4><p>While kubectl cannot do everything, it can do a lot, and its dry-run capability will provide you with ready-to-use baselines for tasks that need only a little adjustment.</p><p>One of the most important things you should learn is what kind of objects and configurations can be created by <strong>kubectl</strong> and its countless subcommands and parameters, and what it can’t do for you. You will find that if you use its capabilities correctly, often you have to add or edit only a few lines of YAML to achieve your goals.</p><h4>Example</h4><p><em>Create a Nginx deployment with 3 replicas and a readiness probe checking </em><a href="http://localhost:8080/ready"><em>http://localhost:8080/ready</em></a></p><p>You won’t be able to do this with <strong>kubectl</strong> alone, because probes are only configurable through YAML. Because of that, you may be tempted to write this YAML spec:</p><pre>apiVersion: apps/v1<br>kind: Deployment<br>metadata:<br>  labels:<br>    app: nginx-readiness<br>  name: nginx-readiness<br>spec:<br>  replicas: 3<br>  selector:<br>    matchLabels:<br>      app: nginx-readiness<br>  template:<br>    metadata:<br>      labels:<br>        app: nginx-readiness<br>    spec:<br>      containers:<br>        - image: nginx<br>          name: nginx<br>          readinessProbe:<br>            httpGet:<br>              path: /ready<br>              port: 8080<br>            initialDelaySeconds: 3<br>            periodSeconds: 5</pre><p>You won’t do so, of course, since by now you understand this takes <em>a lot</em> of time. Instead, run this command:</p><pre>&gt; k create deploy nginx-readiness --image=nginx --replicas=3\<br>  --dry-run=client -o yaml &gt; nginx-readiness.yaml</pre><p>Open the file. You will find that <strong>kubectl</strong> has created everything for you except lines 20–25. To get those, it is best to copy them from the documentation examples in <a href="https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/">Kubernetes Documentation / Tasks / Configure Pods and Containers / Configure Liveness, Readiness and Startup Probes</a>. Find the example for an HTTP <em>liveness</em> probe, copy and modify it as needed, and run:</p><pre>&gt; k create -f nginx-readiness.yaml</pre><h3>4.5. When you need help</h3><p>At some point during the exam, you may encounter a situation when you don’t know what to do, can’t remember where a specific object’s configuration should be located, or your solution simply doesn’t work. Thankfully, there are some means you can employ to resolve such problems:</p><ul><li>Use kubectl explain</li><li>Skip tasks or start a task from scratch</li></ul><h4>4.5.1. Use kubectl explain</h4><p>Sometimes, you may not remember the exact YAML to type for a specific task, and while <strong>kubectl </strong>offers outstanding auto-completion, there is no integrated help or code completion for the YAML configuration files in any of the available editors. What <strong>is</strong> there, however, is <strong>kubectl explain</strong>. Behind this simple subcommand, you find a complete reference for everything in K8s YAML config files. It works in two different modes:</p><ul><li>Recursive Overview</li><li>Field Details</li></ul><p><strong>4.5.1.1. Recursive Overview</strong></p><p>This mode, triggered by the parameter --recursive, will show the complete subtree of the field specified. It doesn’t provide much detail for each field but is a great way to get an overview and locate specific fields when you don’t remember their exact location.</p><pre>&gt; k explain --recursive pod.spec.containers<br><br>KIND:       Pod<br>VERSION:    v1<br><br>FIELD: containers &lt;[]Container&gt;<br><br>DESCRIPTION:<br>    List of containers belonging to the pod. Containers cannot currently be<br>    added or removed. There must be at least one container in a Pod. Cannot be<br>    updated.<br>    A single application container that you want to run within a pod.<br><br>FIELDS:<br>  args  &lt;[]string&gt;<br>  command       &lt;[]string&gt;<br>  ...<br>  volumeMounts  &lt;[]VolumeMount&gt;<br>    mountPath   &lt;string&gt; -required-<br>    mountPropagation    &lt;string&gt;<br>    name        &lt;string&gt; -required-<br>    readOnly    &lt;boolean&gt;<br>    subPath     &lt;string&gt;<br>    subPathExpr &lt;string&gt;<br>  workingDir    &lt;string&gt;</pre><p><strong>Tip</strong>: Use k explain --recursive <em>root</em> | grep <em>fieldname</em> if there is too much output.</p><p><strong>4.5.1.2. Field Detail</strong></p><p>This version of the command provides you with a detailed description for a specific field. Of course, you have to know the exact path to specify — use the recursive mode to locate the field if not.</p><pre>&gt; k explain pod.spec.containers.volumeMounts<br><br>KIND:       Pod<br>VERSION:    v1<br><br>FIELD: volumeMounts &lt;[]VolumeMount&gt;<br><br>DESCRIPTION:<br>    Pod volumes to mount into the container&#39;s filesystem. Cannot be updated.<br>    VolumeMount describes a mounting of a Volume within a container.<br><br>FIELDS:<br>  mountPath     &lt;string&gt; -required-<br>    Path within the container at which the volume should be mounted.  Must not<br>    contain &#39;:&#39;.<br><br>  mountPropagation      &lt;string&gt;<br>    mountPropagation determines how mounts are propagated from the host to<br>    container and the other way around. When not set, MountPropagationNone is<br>    used. This field is beta in 1.10.<br><br>    ...</pre><h4>4.5.2. Skip tasks or start a task from scratch</h4><p>Sometimes you don’t remember what the right command is to solve the task presented. Sometimes there is something wrong with a YAML config you created, and you are not able to find the reason for <strong>kubectl’</strong>s cryptic error messages. Sometimes you miss something small and can’t wrap your head around it.</p><p><strong><em>If you get in a situation when things simply don’t work, you should stop wasting your time. It’s fine to skip difficult tasks and do them later.</em></strong></p><p>I recommend doing this on purpose. Collect as much score as you can doing the tasks that you can solve quickly, and save the time-consuming ones for later. The environment helps you in doing this by letting you mark tasks as completed.</p><p>Also, don’t hesitate to restart a task from scratch if you get into an error loop — both with <strong>kubectl</strong> command line and the complex YAML files, it’s easy to get little things wrong that aren’t obvious under stress. Often, such issues simply vanish when you try again with a clean slate.</p><h3>5. What’s next</h3><p>When you are through with the exam, relax and don’t fret about it. Usually, you’ll be informed if you have achieved the required score in a time frame of 24 hours.</p><p>When you’ve earned the certification title, don’t forget to add the <a href="https://training.linuxfoundation.org/badges-2/">digital badge</a> to your CV.</p><figure><img alt="AI-generated illustration of a deveoper who successfully passed the exam." src="https://cdn-images-1.medium.com/max/1024/1*is5Lpc2AUJ5Ongit579-6Q.png" /><figcaption>Success (by Dall-E)</figcaption></figure><p><strong>Note</strong>: As usual with such certifications, you’ll have to retake it after 3 years. Considering the speed at which Kubernetes and the surrounding ecosystem are evolving, that’s certainly a good idea.</p><h3>6. Conclusion</h3><p>After doing a certification like this one, with a lot of learning effort and stress during the exam, it’s kind of mandatory to ask yourself if it has been worth the effort.</p><p>I believe the answer is Yes. While the exam requirements are kind of extreme and unrealistic compared to normal day-to-day business, the necessary training has much more effect than mindlessly learning facts for multiple choice tests (yes, AWS, I mean you). If you start Kubernetes from scratch like I did, it catapults you to a much higher level of expertise than what could be achieved by learning some lectures and playing around with the tools.</p><p>If you take my advice, you will initially put more effort into practical training than in learning the theoretical concepts behind Kubernetes. Don’t forget, however, that these are important and that you may need them - for example, if you run into problems that cannot be solved using ‘standard’ procedures learned in exam preparation. So don’t read lectures, books and blogs about Kubernetes specifically to prepare for the exam, but read them for your daily work with K8s - to become an expert.</p><p>And the most important thing: Have fun learning!</p><p>This Blog Post is presented to you by <a href="https://www.comsystoreply.de/">Comsysto Reply</a>.</p><p>Are you a developer with a passion for cutting-edge technology, seeking your next adventure? Visit our <a href="https://www.comsystoreply.com/career">Career Opportunities page</a> now, and discover how you can take your next step together with a team that celebrates innovation, growth, and collaboration.</p><p>Are you content where you are, but seek expert Software Engineering and DevOps support? Join forces with our passionate professionals to supercharge your project’s success. <a href="https://www.comsystoreply.de/services">Contact us</a> for innovative, custom solutions tailored to your needs. Let’s collaborate — your tech breakthrough starts here!</p><h3>7. References</h3><p><a href="https://kubernetes.io/docs/">Kubernetes Documentation</a></p><p><a href="https://kubernetes.io/blog/">Kubernetes Blog</a></p><p><a href="https://helm.sh/docs/">Helm Documentation</a></p><p>Cloud Native Computing Foundation: <a href="https://www.cncf.io/projects/kubernetes/">Kubernetes</a></p><p>Cloud Native Computing Foundation: <a href="https://github.com/cncf/curriculum">Open Source Curriculum for CNCF Certification Courses</a></p><p>Atul Kumar: <a href="https://k21academy.com/docker-kubernetes/cka-v-s-ckad-v-s-cks/">CKA vs CKAD vs CKS — Differences &amp; Which Exam is Best For You?</a></p><p>Mojabi Rafi: <a href="https://medium.com/@mojabi.rafi/create-a-kubernetes-cluster-using-virtualbox-and-without-vagrant-90a14d791617">Create a Kubernetes Cluster using Virtualbox — The Hard Way</a></p><p>Dimitris-Ilias Gkanatsios: <a href="https://github.com/dgkanatsios/CKAD-exercises">CKAD Exercises</a></p><p>Reeta Singh: <a href="https://github.com/reetasingh/CKAD-Bookmarks/blob/master/kubernetes.io.html">CKAD Bookmarks</a></p><p>Jure Siljeg: <a href="https://medium.com/comsystoreply/acing-ckad-exam-in-a-week-2d6ac0a1245f">Acing CKAD Exam in a week</a></p><p>Nikhil Kumar Agrawal: <a href="https://github.com/nikhilagrawal577/ckad-notes">CKAD Notes</a></p><p>Nikhil Kumar Agrawal: <a href="https://nikhilagrawal577.medium.com/how-to-pass-ckad-exam-in-1st-attempt-tips-tricks-in-k8s-9e14477699ca">How to pass CKAD exam in first attempt ? Tips &amp; Tricks in Kubernetes</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=51349a9dcacb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/comsystoreply/how2ckad-51349a9dcacb">How2CKAD</a> was originally published in <a href="https://medium.com/comsystoreply">comsystoreply</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Living Diagrams with Java Annotations and PlantUML]]></title>
            <link>https://medium.com/comsystoreply/living-diagrams-with-java-annotations-and-plantuml-9d3de355d224?source=rss-a882bcbc4435------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d3de355d224</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[uml]]></category>
            <category><![CDATA[documentation]]></category>
            <dc:creator><![CDATA[Florian Schönherr]]></dc:creator>
            <pubDate>Tue, 04 Feb 2020 11:01:01 GMT</pubDate>
            <atom:updated>2020-02-04T11:01:01.254Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IUSYDU1WbXUHN66dJcKgdg.jpeg" /></figure><h3>Motivation</h3><p>Documentation is hard — every programmer knows this to be a fact. It’s also boring and repetitive, and the result often looks ugly and is hard to read (because not all programmers are poets). The fact that any written documentation is usually outdated before it has been finished doesn’t make it any better.</p><p>Therefore, writing documentation it is usually something programmers try to avoid.</p><blockquote><em>The most accurate documentation is the code itself.</em></blockquote><p>There is a simple truth you will often hear when talking to programmers about documentation: the most accurate documentation is the code itself. It’s the only thing that won’t become outdated, won’t lie to you, and will always be complete.</p><p>Indeed, well written code and tests can be very helpful for documenting the purpose of a system. Specifically, a system following the practices established by <a href="https://de.wikipedia.org/wiki/Clean_Code:">Clean Code</a> and <a href="https://de.wikipedia.org/wiki/Domain-driven_Design">Domain-driven Design</a> is — usually — much easier to understand than one that has been written without those concepts in mind. Some of these practices are:</p><ul><li>well-named types, methods and fields, using a common language between developers and customers</li><li>code structured with readability as a goal</li><li>well-designed modules that each serve a specific concept or set of concepts</li></ul><p>Tests can also help in documenting how a system will behave, especially acceptance tests that are written using natural language or something close to it (e.g. <a href="https://cucumber.io/">Cucumber</a>).</p><p>However, these (good) practices are only a part of the puzzle. Experience shows that sticking to these concepts is difficult — in fact, the notion often becomes purely academical when faced with the hard facts of time pressure and non-functional requirements (e.g. performance or security). Also, customers are often woefully ignorant of these issues and seldom offer the support required to develop a common understanding of the system.</p><p>So, simply skipping documentation is an even worse option than the one of investing lots of effort in hard-to-read, outdated documentation artifacts. From our experience, we consider both to be non-viable.</p><h3>A new concept: Living Documentation</h3><p>‘Living Documentation’ is a term coined by Gojko Adzik in his book <a href="https://gojko.net/books/specification-by-example/?src=/resources.html">Specification by example</a>. His work (that is mostly about BDD — Behavior Driven Development) gave inspiration to the work of Cyrille Martraire, a french software engineer who tries to take the approach to a new level in his book <a href="https://leanpub.com/livingdocumentation">Living Documentation</a>. The core principles of Living Documentation are:</p><ul><li>It is <strong>reliable</strong> — all documentation products are always accurate and in sync with the actual code</li><li>Producing and updating it is <strong>low effort</strong></li><li>It is both a product and a medium of <strong>collaboration</strong> between all involved people</li><li>It is <strong>insightful</strong> for its consumers and sheds light on the important aspects of the system</li></ul><p>One of the crucial insights taken from Cyrille’s book is that it <strong>is</strong> possible to produce a lot of helpful documentation artifacts by traversing the code using automated generators. The key difference to most existing tools that generate documentation (including diagrams) from code is that the tool chain is written in such a way that it permits the development team to adapt and enhance what comes out of it, producing results that both have real value and are still as close to the single source of truth (the code) as possible.</p><h3>Living Diagrams</h3><h4>History</h4><p>The idea to generate UML diagrams from source code isn’t new. Actually, it has a long history in software development, a history that is often quite disappointing. Many tools provide reverse engineering capabilities, for example:</p><ul><li>UML tool suites</li><li>IDEs</li><li>Dedicated generators</li></ul><p><strong>UML tool suites</strong></p><p>There are tools like Together, Rational Rose, Enterprise Architect etc. They often do a decent job generating UML diagrams and sometimes even provide full Roundtrip-Engineering capabilities. However, they are usually extremely expensive, have a high learning curve and force the development team to fully buy into their proprietary way of working. In addition, the resulting diagrams are difficult to integrate into the actual documentation written outside of the tool itself, so often users will find themselves resorting to pasting image files that are — again — difficult to keep up-to-date.</p><p><strong>IDEs</strong></p><p>IDEs like Netbeans, Eclipse or IntelliJ play somewhat in the same league. Their reverse engineering capabilities are usually less thorough, but also come at a cheaper price. Sadly, though, the IDEs’ UML modules share most of the other negative aspects of their expensive brethren. For example, here is a diagram as IntelliJ IDEA would render it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*litjeQidPZu606Y2YrAOxw.png" /><figcaption><em>Figure 1. Test classes hierarchy generated using IntelliJ IDEA</em></figcaption></figure><p>While this is a clean and nicely drawn UML diagram, the developer has not much influence on how it looks. For example, it cannot show field associations, and neither is there a possibility to include notes or comments to explain things. It is also impossible to exclude unwanted parts from the diagram or make references to types outside the package.</p><p><strong>Dedicated generators</strong></p><p>Quite contrary to the previously mentioned reverse engineering tools, dedicated UML diagram generators are usually cheap or even free of charge, for example the <a href="https://www.spinellis.gr/umlgraph/javadoc/index.html">UMLGraph JavaDoc doclet</a>. Since they can usually be made part of automated tool chains, it is often a lot easier to integrate their products into the parts of the documentation that live in close proximity to the code, for example JavaDocs. Despite these positive aspects, it’s usually still very difficult to influence what the diagrams display, and how.</p><h4>The Editorial Perspective: customizing output</h4><p>Let’s revisit the concept of ‘Living Documentation’. The fourth key concept is that any documentation should be <strong>insightful</strong> — in other words, it should provide real value to its consumer. To achieve that, documentation should be written from the <strong>editorial perspective</strong>:</p><blockquote><em>The Editorial Perspective is based on the intent of the considered document. Of course this assumes that each document has a clearly identified purpose, for an identified audience, which should be the case (</em> Cyrille Martraire: Living Documentation)</blockquote><p>So, a diagram that is useful to its consumers should fulfill the following requirements:</p><ul><li>It should show only the parts of the system that is relevant to the intended audience</li><li>It should be possible to annotate the diagram with information that is relevant for the intended audience</li><li>It should always be up to date</li></ul><h3>The PlantUML Class Diagram Generator</h3><p>The PlantUML Class Diagram Generator is a tool that produces PlantUML Class diagrams from annotated Java source code. It produces nice-looking, ready-to use diagrams that are easy to include into existing documentation artifacts. In addition, developers have the possibility to heavily influence the output in order to produce diagrams with real value for its consumers.</p><p><strong>What is PlantUML?</strong></p><p><a href="https://plantuml.com/">PlantUML</a> is a tool that generates various types of UML diagrams from a written specification. It has a simple but powerful language for describing UML diagrams, with further annotation and styling capabilities that allow producing diagrams that are both useful and nice looking. Some of the supported diagram types are:</p><ul><li>Use Case</li><li>Class</li><li>Sequence</li><li>Activity</li><li>Component</li></ul><p>The PlantUML Class Diagram Processor creates only class diagrams and can be used to document class hierarchies that live in a specific package. Due to PlantUML’s ability to import diagrams into other diagrams, it is also possible to display whole package hierarchies in a single diagram. However, thanks to its underlying concepts, these diagrams can be tailored to show only classes that are relevant for specific use cases, so they won’t overwhelm the reader with superfluous or redundant information.</p><h3>Design principles</h3><p>The generator is designed around a limited set of principles derived from the ideas of Living Documentation:</p><p><strong>Relevance: </strong>The programmer decides what elements from the sources should show up in generated diagrams, so they are always relevant to the use case depicted</p><p><strong>Proximity: </strong>Diagram controls are an intrinsic part of the source code, so its unlikely they’ll become outdated</p><p><strong>Configurability: </strong>Diagram Controls give the developer a lot of control over what is generated and may be annotated with additional information, e.g. comments</p><p><strong>Currentness: </strong>Diagrams are re-generated with every build</p><h3>Annotation library</h3><p>At the moment, the annotation library contains following annotations for class diagrams:</p><p><a href="https://github.com/comsysto/livingdoc/blob/master/annotations/src/main/java/com/comsysto/livingdoc/annotation/plantuml/PlantUmlClass.java"><strong>@PlantUmlClass</strong></a><strong>: </strong>This is the main annotation to be used for class diagrams. When added to a Java type (interface, class or enum), a representation of this type is included in one or more diagrams.</p><p><a href="https://github.com/comsysto/livingdoc/blob/master/annotations/src/main/java/com/comsysto/livingdoc/annotation/plantuml/PlantUmlField.java"><strong>@PlantUmlField</strong></a><strong>: </strong>This annotation may be added to a field within a type already annotated with <strong>@PlantUmlClass</strong>. It will render the field as part of the class body and/or add an association to the field’s type, provided that type is also part of the diagram.</p><p><a href="https://github.com/comsysto/livingdoc/blob/master/annotations/src/main/java/com/comsysto/livingdoc/annotation/plantuml/PlantUmlExecutable.java"><strong>@PlantUmlExecutable</strong></a><strong>:</strong> Annotation for methods that should show up within a type already annotated with <strong>@PlantUmlClass</strong>. It will render the method as part of the class body, provided that type is also part of the diagram.</p><p><a href="https://github.com/comsysto/livingdoc/blob/master/annotations/src/main/java/com/comsysto/livingdoc/annotation/plantuml/PlantUmlNote.java"><strong>@PlantUmlNote</strong></a>: This annotation may be used to associate one or more UML notes with a type, providing further textual description.</p><p><a href="https://github.com/comsysto/livingdoc/blob/master/annotations/src/main/java/com/comsysto/livingdoc/annotation/plantuml/PlantUmlDependency.java"><strong>@PlantUmlDependency</strong></a>: Can be used to draw additional dependency relations between types that are not directly connected via an association.</p><h3>Annotation processor</h3><p>The annotation processor is a normal Java annotation processor that can be included easily as a Java compiler argument — either using the programmer’s favorite Java IDE’s project configuration, or as part of the build process. The annotation processor produces a model of the elements to be rendered in the resulting diagrams and then outputs the PlantUML source code. The annotation processor can be configured using the following options (specified using the -A parameter of the Java compiler):</p><p><strong>pumlgen.settings.dir:</strong> The directory where the annotation processor will search for a file ${diagramId}_class.properties for additional diagram settings. Default is . (the current directory).</p><p><strong>pumlgen.out.dir:</strong> The directory where the annotation processor will write diagram files. Default is ./out.</p><p><strong>pumlgen.enabled:</strong> This setting may be used to completely disable the processor at compilation time despite its presence on the class path. Default is true.</p><h3>Examples</h3><p>The <a href="https://github.com/comsysto/livingdoc/tree/master/annotation-processors/src/test/java/com/comsysto/livingdoc/example">test sources</a> contain an artificial class hierarchy that models different types of vehicles and is used as a (quite simple) example. Please have a look at the diagram - it is auto-generated using the annotation processor:</p><h4>Example 1: The whole test classes hierarchy</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/757/1*YU_jnxGWGkpZvRyZivd0lw.png" /><figcaption><strong>Figure 2. Test classes hierarchy generated using the processor</strong></figcaption></figure><p>The first example displays the hierarchy of all annotated classes in the package. We find it notable how clean and expressive this diagram is compared to diagrams rendered using conventional means:</p><ul><li>It shows all the associations between the classes that the annotation processor managed to discern from the Java type model: inheritance (both realization and implementation) as well as field references</li><li>It has a note. In our view, notes are often the single thing that converts a say-nothing diagram into something that helps the reader understand the software fully</li></ul><p><strong>Note</strong>: We did not consider it useful to render the contents of JavaDoc comments in notes. First, comments use HTML markup and PlantUML uses the Creole markup language. Second, a JavaDoc comment that fully describes a complex type can be very large. It makes much more sense to write a brief (and possible redundant) description into the annotation itself.</p><h4>Example 2: Selected classes only</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/398/1*t5gJHghuZFTJR8B6QBNAaA.png" /><figcaption>Figure 3. Grund vehicles</figcaption></figure><p>It is also possible to render multiple different diagrams from the same sources. This is controlled through the diagramIds attribute of the @PlantUmlClass annotation. This is a list of strings that define the diagrams where the type will appear.</p><p><strong>DiagramId</strong>: The diagram ID is the part of the filename that comes before the _class.puml. The default diagram ID is is therefore <strong>package</strong>. The ground vehicles diagram ID is <strong>ground-vehicles</strong>.</p><h3>Annotation processor internals</h3><p>In this section, we will look at the internal structure of the annotation processor. To reach our goal to auto-generate PlantUML class diagrams, we had to solve the following problems:</p><ul><li>Annotation definition</li><li>How to implement an annotation processor</li><li>How to produce the diagram</li></ul><h3>Annotation definition</h3><p>This is actually the easiest part. We begin with the top-most annotation we want to process, the @PlantUmlClass. From there, we consider what diagram elements we want to display and what additional information is required to enrich the resulting diagrams:</p><p><strong>Type elements</strong></p><p>A type in the class diagram is created from a class, interface or enum in Java. All required information about the type itself can be gleaned from the Java source code except for the following:</p><ul><li>We want to know in which diagrams the type will appear, so we introduce an attribute diagramIds</li><li>There should be a possibility to attach a note to the type. For this, an additional annotation is created, the @PlantUmlNote, with an attribute body that defines the text body (optionally with <a href="http://plantuml.com/creole">Creole</a> markup), and an attribute position that permits to position the note in relation to the element it’s attached to.</li></ul><p><strong>Fields and methods</strong></p><p>As with types, we do not want to indiscriminately include all fields and methods in the class diagram. So we need at least one other annotation to mark fields and methods to be displayed. Considering that there may be more (and quite different) information we need to provide depending on the type of element, we decided to actually have two separate annotations PlantUmlField for fields and PlantUmlExecutable for methods and constructors.</p><p><strong>Dependency Relations</strong></p><p>Finally, we want to be able to define relations between classes that are not visible in the source code (through fields). In UML, these are called dependency relations and depicted using a dashed line between elements. So there is another annotation @PlantUmlDependency with an optional description.</p><p><strong>How to create an annotation in Java</strong></p><p>Defining a Java annotation is clearly documented and the knowledge how to do this should be a part of every Java programmer’s toolbox:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2d58d0b950078ba1842cc3d7a1beb574/href">https://medium.com/media/2d58d0b950078ba1842cc3d7a1beb574/href</a></iframe><ol><li>An annotation is a special form of interface, identified by the keyword @interface</li><li>For every annotation, a list of possible <em>targets</em> needs to be specified identifying the elements where the annotation is allowed to appear (e.g. type, field, method, …​)</li><li>Also for every annotation, the programmer should specify the <em>retention policy</em>. This tells the compiler what to do with the annotation after processing it. Most Java programmers choose RetentionPolicy.RUNTIME quite automatically because (1) its the retention policy used in most examples and (2) because a lot of annotations are processed at runtime using reflection. However, the annotations of the PlantUML class diagram processor will be required neither by the compiler nor at runtime, so we discard them after the processing phase (RetentionPolicy.SOURCE)</li></ol><h3>How to implement an annotation processor</h3><p>All Java programmers know how to use annotations, and most of the more senior ones know how to write and process them — at runtime. To process annotations at compile time, however, requires some additional steps:</p><ul><li>Implement the Processor interface</li><li>Make the processor known to the Java compiler</li><li>Implement logic based on the Java (annotation processing) language model</li></ul><h4>Implement the processor interface</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/09982ba6d85868f8ca0f2105bbb53d2d/href">https://medium.com/media/09982ba6d85868f8ca0f2105bbb53d2d/href</a></iframe><ol><li>All annotation processors must implement the interface <a href="https://docs.oracle.com/javase/8/docs/api/javax/annotation/processing/Processor.html">Processor</a> or its descendant <a href="https://docs.oracle.com/javase/8/docs/api/javax/annotation/processing/AbstractProcessor.html">AbstractProcessor</a></li><li>Annotation processors need to define the annotations they process. This list doesn’t have to include <em>all</em> annotations used by the processor, however! Only the top-level annotations that should be delivered by the processing framework when it calls the process(..) method are required here - in our case, that’s only the annotation @PlantUmlType</li><li>Processors need to define the options they process — those put on the javac command line using the -A parameter</li><li>Processors need to define the Java source version they understand</li><li>The current version of the processor has been tested with Java 8</li></ol><h4>Add the required meta information</h4><p>In addition to the implementation processor, we have to add the following file:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/dd87c8bbfdad94547cb25ae28c13682d/href">https://medium.com/media/dd87c8bbfdad94547cb25ae28c13682d/href</a></iframe><p>This file, containing only the fully qualified class name of the processor, causes it to be registered with the annotation processing environment.</p><p>Alternatively, <a href="https://github.com/google/auto/tree/master/service:">Google Autoservice</a> may be used to auto-generate this file.</p><h3>Data Model</h3><p>Our little project would look quite bad if we weren’t ‘eating our own dog food’. So the centerpiece of our documentation for the PlantUML Class Diagram generator is a class diagram, fully auto-generated from annotations:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-RYERy1uAIx7qkteqYKn1w.png" /><figcaption>Annotation processor classes</figcaption></figure><h3>What’s next?</h3><p>The first version of something is seldom perfect. There is a lot more that could be done:</p><ul><li>Support for additional class diagram elements</li><li>Support for other diagram types</li></ul><h3>Support for additional class diagram elements</h3><p>While the feature set supported by the annotation processor is enough to use it in a productive way, the limits of what may be rendered into the resulting class diagrams are still obvious. For example, there is no support yet for:</p><ul><li>Methods</li><li>Relation notes</li><li>Special associations like aggregation and composition</li><li>Floating notes</li><li>Generics</li><li>Stereotypes</li><li>…​</li></ul><h3>Support for other diagram types</h3><p>For us, generating class diagrams is only a first step. Going further, we’d like to investigate rendering other diagram types. The class diagram was the obvious place to start, since its features closely match the information that can be gleaned from the information harvested by the annotation processing environment.</p><h3>Conclusion</h3><p>In this blog post, we have shown that it is well possible to generate useful diagrams from source code by giving the developers a big deal of influence on the outcome using Java annotations, along with a tool set that, while still being in an early stage of development, can already produce very nice and fully accurate class diagrams. We hope that this blog post will be the first in a series in which we will try to extend its capabilities into a complete tool suite that helps developers in writing documentation that is accurate, close to the code, and always up to date.</p><p>Code is available at <a href="https://github.com/comsysto/livingdoc">Github</a>.</p><p>We at Comsysto Reply develop sophisticated and innovative software solutions with great passion. We take care of projects holistically and with full transparency: you get everything from one source.</p><p><a href="https://comsystoreply.de/">Show me more</a></p><p>This blogpost is published by <a href="https://legal.comsysto.com/comsystoreply.de/en/impressum/">Comsysto Reply GmbH</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d3de355d224" width="1" height="1" alt=""><hr><p><a href="https://medium.com/comsystoreply/living-diagrams-with-java-annotations-and-plantuml-9d3de355d224">Living Diagrams with Java Annotations and PlantUML</a> was originally published in <a href="https://medium.com/comsystoreply">comsystoreply</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>