<?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 Remco Rakers on Medium]]></title>
        <description><![CDATA[Stories by Remco Rakers on Medium]]></description>
        <link>https://medium.com/@remcorakers?source=rss-8456bbd1c61a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*GnJUhvTB7lOplW-oFJ6uRQ.png</url>
            <title>Stories by Remco Rakers on Medium</title>
            <link>https://medium.com/@remcorakers?source=rss-8456bbd1c61a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 21:56:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@remcorakers/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[3 Git Workflows to Showcase Unfinished Work]]></title>
            <link>https://medium.com/better-programming/3-git-workflows-to-showcase-unfinished-work-a651e5116819?source=rss-8456bbd1c61a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a651e5116819</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[continuous-integration]]></category>
            <dc:creator><![CDATA[Remco Rakers]]></dc:creator>
            <pubDate>Tue, 10 Nov 2020 16:57:44 GMT</pubDate>
            <atom:updated>2020-11-10T16:57:44.890Z</atom:updated>
            <content:encoded><![CDATA[<h4>Using branching to your advantage to run a successful demo</h4><figure><img alt="A canopy of trees from the ground level" src="https://cdn-images-1.medium.com/max/1024/1*HJ8lIL7vIDYiYoG3A_xsaw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@rocinante_11">Mick Haupt</a> on <a href="https://unsplash.com/">Unsplash</a>.</figcaption></figure><p>When developing software, you eventually need to show your work to the world. But before that happens, there’s usually a review process in which someone (e.g. a tester, product owner, or stakeholder) wants to review what you built. Based on their feedback, you can improve your work until you reach a point where everyone is pleased and accepts the changes.</p><p>But how do you get to that point where people can view your work and deliver feedback? Let’s look at three different approaches that help you to showcase unfinished work.</p><h3>The Solo Workflow</h3><p>Working by yourself on a software product makes things easy. You have a good overview of your work, you can pick up user stories one by one, and when the time comes to have your work reviewed, you can release the changes to a central development environment. Ideally, you make use of a CI/CD setup that helps you build, test, and release a new version without manual intervention.</p><figure><img alt="Diagram of Git workflow" src="https://cdn-images-1.medium.com/max/1024/1*183qNjocAUG1TKg90kxfDQ.png" /><figcaption>Git workflow that implements a serial deployment and review process. Photo by the author.</figcaption></figure><p>After you have deployed the new version, you can verify the functionality and ask for feedback. In the meantime, you can start working on another user story, from a new feature branch, while the review is pending.</p><p>When the review is done and there’s feedback to resolve, you can implement the requested changes, initiate a new release from your feature branch, and deploy a new version to the development environment. After a final verification by you and the reviewer indicating that everything is working fine, you can finalize the changes by merging the feature branch to your main branch.</p><p>But what happens when feedback on the first feature that you implemented hasn’t come and the next user story you picked up is ready to be tested and shown to the product owner and stakeholders? You can, of course, deploy from your new feature branch, but that will overwrite the changes that are currently deployed on the central development environment from the other branch.</p><p>One solution is to create separate environments for every individual change. This is what the Multi-Environment Review Workflow is about, and I will describe it in a moment. But there’s also a simpler solution called the Integration Branch Workflow.</p><h3>The Integration Branch Workflow</h3><p>When a team has multiple developers, it is often the case that multiple user stories are being worked on simultaneously. Also, the review processes of individual user stories can take more time due to external delays. Therefore, there is a need to have multiple pending changes deployed to the development environment at the same time so reviews can be performed simultaneously.</p><p>The concept of an integration branch can help with this. The idea is that all your pending work that is ready to be reviewed is merged into an integration branch. This branch is then automatically deployed to a central development environment based on a trigger configured in your CI/CD pipeline.</p><figure><img alt="Diagram of Git workflow" src="https://cdn-images-1.medium.com/max/999/1*wffLsqHp0Nl1hFAfP7C-AQ.png" /><figcaption>Git workflow that supports simultaneous reviews of changes. Photo by the author.</figcaption></figure><p>This integration branch will never be merged into another branch. Only content from feature branches or your main branch should be merged into the integration branch. Sometimes there will be content merged into the integration branch that will not be accepted, is outdated, or is not relevant anymore. Therefore, a good approach is to delete the integration branch regularly (e.g. at the start of every sprint) and create a new integration branch based on the main branch. Any work that’s still pending can then manually be merged into the integration branch so the team can start the sprint with a clean slate.</p><h3>The Multi-Environment Review Workflow</h3><p>When there is a requirement to test individual user stories in isolation, independent of any other pending work, you can use the Multi-Environment Review Workflow. This workflow is very similar to the Solo Workflow. The main difference is that it uses automation to create temporary environments and deploy changes from individual branches to those environments. Changes can then be reviewed in isolation. After a change is accepted and merged to the main branch, the temporary environment for that particular change can be destroyed.</p><figure><img alt="Diagram of Git workflow" src="https://cdn-images-1.medium.com/max/996/1*mhbd-QJqvFVN8QCGhWBVUA.png" /><figcaption>Git workflow that uses dedicated environments for reviews. Photo by the author.</figcaption></figure><p>When you have a relatively simple setup, such as a static website, there are off-the-shelf solutions that facilitate this workflow. <a href="https://www.netlify.com/">Netlify</a>, for instance, has a feature to automatically build and deploy branches to a temporary preview domain using a uniquely generated URL. To make sure that search engine crawlers don’t index this preview site, Netlify adds a custom header to every response: x-robots-tag: noindex.</p><p>When you have a more complex setup, the approach Netlify offers is not sufficient. You might need to deploy more than one application, initialize dependent services, and provision your data store with test data. Tools such as Docker, CI/CD, and APIs of cloud hosting platforms such as AWS and Azure can assist with spinning up on-demand environments for your application. As this approach can quickly become very complex, it is not suited for every team and organization.</p><p>Before going down this path, you should clearly define bottlenecks and challenges within your architecture and decide if the advantages outweigh the investment to implement and maintain such a multi-environment solution.</p><h3>Conclusion</h3><p>Based on my experience, the Integration Branch Workflow will be a safe bet for most teams, as it combines the advantages of simultaneous reviews without the complexity of deploying and maintaining multiple environments.</p><p>Regardless of the workflow that you implement, you should strive for a review workflow that aligns with your processes and organization. This will improve your team’s effectiveness and help with delivering quality software.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a651e5116819" width="1" height="1" alt=""><hr><p><a href="https://medium.com/better-programming/3-git-workflows-to-showcase-unfinished-work-a651e5116819">3 Git Workflows to Showcase Unfinished Work</a> was originally published in <a href="https://betterprogramming.pub/">Better Programming</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Road to CI/CD]]></title>
            <link>https://medium.com/better-programming/the-road-to-ci-cd-a6939addd42d?source=rss-8456bbd1c61a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a6939addd42d</guid>
            <category><![CDATA[continuous-delivery]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[continuous-integration]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Remco Rakers]]></dc:creator>
            <pubDate>Fri, 09 Oct 2020 15:53:59 GMT</pubDate>
            <atom:updated>2020-10-09T15:53:59.058Z</atom:updated>
            <content:encoded><![CDATA[<h4>Continuous integration is a necessity now. Here’s how to get there</h4><figure><img alt="Code" src="https://cdn-images-1.medium.com/max/1024/0*XgssjkO_Oegv4Gfo" /><figcaption>Photo by <a href="https://unsplash.com/@rezanamdari?utm_source=medium&amp;utm_medium=referral">Reza Namdari</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a>.</figcaption></figure><p>Remember those days when CI/CD was something developers did because they hated manual, repetitive work? Fast-forward to now and CI/CD is an industry-wide best practice that’s on top of every IT manager’s agenda.</p><p>Not without reason, as CI/CD is a powerful concept that helps teams deliver value faster and increase the quality of their output. But what exactly is CI/CD and what do you need to start using it?</p><p>First of all, let’s look at the definition: CI stands for continuous integration, and CD refers to continuous delivery or continuous deployment.</p><ul><li>Continuous integration is the process of validating software code and its interdependencies in an automated way. This process involves building, testing, and merging code to a central repository without any manual interference.</li><li>Continuous delivery is the process of delivering the output of the continuous integration process to the next stage (e.g. a package repository or a release platform). This process is triggered automatically, but manual approval steps are still in place to perform verification checks or accumulate a batch of changes for a release window.</li><li>Continuous deployment takes this one step further by removing manual approvals and automating the release process to a production environment.</li></ul><figure><img alt="Overview of a CI/CD workflow" src="https://cdn-images-1.medium.com/max/695/1*HhCpi9CxUIHuEKceiFQmUg.png" /><figcaption>Different stages of a CI/CD workflow. Photo by the author.</figcaption></figure><p>Although the goal might seem to achieve the state of continuous deployment, this is not suited for all organizations, products, and environments. The application’s complexity, dependency on external integrations, or the maturity of an organization’s processes might dictate otherwise.</p><p>Let’s take a closer look at the required steps for implementing a CI/CD workflow and the prerequisites to make this a success, starting with the configuration of a pipeline.</p><h3><strong>Creating a Build Pipeline</strong></h3><p>Having a build pipeline is the first step to take when implementing CI/CD. A best practice is to write this build pipeline in code and store this in your repository. Stay away from configuration via a user interface, as this is error-prone and prevents rolling out changes in your build pipeline in an isolated and controlled way.</p><p>The build pipeline should automatically build every pull request of a feature branch to the main branch. The <a href="https://trunkbaseddevelopment.com/">trunk-based development workflow</a> is one of my favorite workflows that suits this process very well without adding a lot of complexity.</p><p>Depending on your software application, the pipeline often starts with a checkout of your code, followed by installing dependencies, building, testing, and publishing the build artifact. Depending on your situation, you can add different steps, such as code formatting checks, static code analysis, or code coverage analysis. The key is that all steps in this process must be fully automated, as these steps will be executed many times per day.</p><p>The duration of each step also needs to be optimized, as no one likes waiting on a pipeline to finish before a pull request can be merged. To keep pipeline execution time-limited, some teams decide to perform long-running integration tests on a nightly basis and only perform the most relevant integration tests in the pipeline.</p><p>The output of a build pipeline is a build artifact. This artifact should be used in subsequent steps in your CI/CD setup, as this artifact is tested and verified. Build only once and promote the result through the pipeline.</p><h3><strong>Merge to Main</strong></h3><p>A pull request is one of the most common methods in software development workflows to assure code quality and validate the implemented changes. When you work on a feature and you’re ready to have it reviewed, you create a pull request. This triggers the build pipeline and runs all necessary automated checks.</p><p>Next, one or more fellow developers should manually review your code, validate that the change is as intended, and provide feedback when needed. This creates a common understanding of the changes and also facilitates knowledge sharing within the team. After all automated and manual checks are performed, the pull request can be merged with the main branch.</p><p>To prevent your work from deviating too much from the main branch, it is advised to limit the time you’re working on a separate branch and to keep up to date with the main branch as much as possible.</p><p>When using trunk-based development, the main branch should always be ready to be deployed to production. This can, however, be a problem when you’re working on a feature that is technically ready, but not from a business perspective. Or it might be that parts of the feature are ready, but they should be released simultaneously. To solve this, you can use <a href="https://en.wikipedia.org/wiki/Feature_toggle">feature toggles</a> (also known as feature flags), a technique to hide, disable, or enable functionality by encapsulating its code within a conditional statement.</p><h3><strong>Build and Deliver</strong></h3><p>After merging your pull request, the build pipeline will trigger once again but now also include the steps to package the software and store the artifact (e.g. in a package feed, Docker registry, or within the pipeline, ready to be used for the next stage).</p><p>The version number of your code should automatically be increased and registered within your code so that when your application runs in production, the monitoring software knows exactly what build version is used.</p><h3><strong>Deploy</strong></h3><p>The deployment step distinguishes between continuous delivery and continuous deployment. With continuous delivery, the release of the software is gated, as a manual approval step is necessary. This might be because manual verification is necessary due to limitations with using automated tests. Having sufficient code coverage using automated tests sometimes involves large investments, while a person to perform manual tests might be readily available. This can seem like an easy choice, but my advice is to always strive for automation when possible. In the long run, this pays off, as risks are minimized (scripts are much better at performing repeatable tasks than humans), it creates opportunities to increase release frequency, and it decreases lead time in the release process.</p><p>When you have sufficient code coverage using automated tests, you can think of implementing continuous deployment. Your software will then be automatically released to production without manual interference. <a href="https://martinfowler.com/bliki/CanaryRelease.html">Canary releases</a> (referring to the canaries that miners used to take into mines to warn them of toxic gasses) can help you detect issues with the release. You can direct a limited amount of traffic (e.g. 5%) to the new version, monitor the logs, and when exception rates don’t increase, gradually direct all other traffic to the new version until all users have been reached. At this point, the old version can be taken offline.</p><p>As mentioned before, <a href="https://en.wikipedia.org/wiki/Feature_toggle">feature toggles</a> are essential when using continuous deployment. Another good addition to your CI/CD toolset is dark launching, a process of releasing functionality to a subset of your users. This gives you real user feedback, lets you test for bugs, and monitor performance before the functionality is released to all of your users. Tools such as <a href="https://launchdarkly.com/">LaunchDarkly</a>, <a href="https://configcat.com/">ConfigCat</a>, and <a href="https://bullet-train.io/">Bullet Train</a> can help you manage and integrate this pattern.</p><h3><strong>Prerequisites to Make CI/CD a Success</strong></h3><p>Having a CI/CD workflow doesn’t guarantee success, but it does help to increase quality and efficiency and to decrease lead time to generate business value. As a summary to help you get started on your journey to CI/CD, you can use the following checklist:</p><ul><li>Use build pipelines created in code.</li><li>Use a git model that fits CI/CD (e.g. <a href="https://trunkbaseddevelopment.com/">trunk-based development</a>). Use short-lived branches and often update with the main branch.</li><li>Enforce quality with a strict pull request and release workflow. Have at least one external reviewer. Automate code quality checks, such as test coverage, complexity, reliability, technical debt, etc. Automate code formatting checks and automate security checks on dependencies, <a href="https://en.wikipedia.org/wiki/OWASP">OWASP vulnerabilities</a>, etc.</li><li>Optimize build pipeline time. Pick the right test for the job, such as unit tests, integration tests, visual regression tests, or performance tests. When integration tests take too long, investigate options to run them nightly. Also, use parallel execution whenever possible.</li><li>Use feature toggles and optionally dark launching.</li><li>Focus on monitoring and logging.</li></ul><p>Some examples of CI/CD tools to get you started are <a href="https://azure.microsoft.com/en-us/services/devops">Azure DevOps</a>, <a href="https://www.jenkins.io/">Jenkins</a>, <a href="https://travis-ci.org/">Travis CI</a>, <a href="https://circleci.com/">CircleCI</a>, <a href="https://www.appveyor.com/">AppVeyor</a>, and <a href="https://github.com/features/actions">GitHub Actions</a>.</p><p>And remember:</p><ul><li>Automate everything (but only as far as reasonably possible).</li><li>Continuous deployment is not for all teams. Continuous delivery can be the next best thing, depending on your team, product, organization, and environment.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6939addd42d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/better-programming/the-road-to-ci-cd-a6939addd42d">The Road to CI/CD</a> was originally published in <a href="https://betterprogramming.pub/">Better Programming</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>