<?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 Alex Wauters on Medium]]></title>
        <description><![CDATA[Stories by Alex Wauters on Medium]]></description>
        <link>https://medium.com/@alex.wauters?source=rss-4f86e9791c89------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*5xQZH7fZWr7_xPIMPl5nNA.jpeg</url>
            <title>Stories by Alex Wauters on Medium</title>
            <link>https://medium.com/@alex.wauters?source=rss-4f86e9791c89------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 10:20:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@alex.wauters/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[Humans missed 1 in 3 threats approving AI agent commands across 40,000 plays]]></title>
            <link>https://medium.com/@alex.wauters/humans-missed-1-in-3-threats-approving-ai-agent-commands-across-40-000-plays-5e7db7e6ec59?source=rss-4f86e9791c89------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e7db7e6ec59</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Alex Wauters]]></dc:creator>
            <pubDate>Wed, 05 Aug 2026 07:00:33 GMT</pubDate>
            <atom:updated>2026-08-06T10:55:05.394Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This is a preview of a blog post originally published on </em><a href="https://scalex.dev/blog/ai-agent-permissions-stats/"><em>https://scalex.dev/blog/ai-agent-permissions-stats/</em></a><em>. My blog has moved there as Medium restricted free views.</em></p><p>A couple of months ago I published <a href="https://llmgame.scalex.dev/">a small browser game</a>: you play the human-in-the-loop for an AI coding agent, approving or denying its commands under time pressure. Some commands are routine ( git status, npm test) and some other commands indicate your agent has been possessed and is sending your secrets to a remote server ( cat ~/.aws/credentials). More on the threats associated with agents running commands and how to mitigate them can be found in the <a href="https://scalex.dev/blog/ai-agent-permissions/">original post</a>.</p><p>The game garnered some interest on <a href="https://news.ycombinator.com/item?id=48308376">hacker news</a>, and after adding in statistics (unfortunately a bit later on) we can take a closer look at the data of over 40,000 runs and 409,000 individual approve/deny decisions. Let’s see how the human-in-the-loop, our last line of defence against rogue agents, fared.</p><h3>The headline numbers</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*n-u4nZwEEEIOuKNo.png" /></figure><ul><li>The average player missed <strong>1 in 3 threats</strong> (mean accuracy 66.3%)</li><li><strong>32.9%</strong> of sessions ended with a negative score: penalties from approved threats and blocked safe commands outweighed everything done right</li><li><strong>35.2%</strong> of players caught every threat, but only <strong>20.8%</strong> managed that while blocking at most 1 in 5 of the safe commands. The rest got there partly by blocking everything (awarding the “Human Bottleneck” title)</li><li><strong>7%</strong> approved every single prompt: big fans of --dangerously-skip-permissions</li></ul><p>Small caveat: this was a game, where approximately 34% of the commands players saw were threats. In our day-to-day work these threats appear rarely. Players knew they were being tested in a time-boxed challenge. But the numbers below might be useful for garnering some insights on comparing threats and the general awareness of them against one another.</p><p><em>(preview ends)</em></p><p>You can play the game yourself at llmgame.scalex.dev</p><p>The breakdown of the different threats and how to mitigate them is elaborated in <a href="https://scalex.dev/blog/ai-agent-permissions/">https://scalex.dev/blog/ai-agent-permissions/</a> and I’ve broken down the stats of 40,000 runs in the full article on <a href="https://scalex.dev/blog/ai-agent-permissions-stats/">https://scalex.dev/blog/ai-agent-permissions-stats/</a></p><p>Give it a try and let me know what you thought.</p><p><em>Originally published at </em><a href="https://scalex.dev/blog/ai-agent-permissions-stats/"><em>https://scalex.dev</em></a><em> on August 5, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e7db7e6ec59" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[2 years with Shape-Up, and why we switched back]]></title>
            <link>https://medium.com/@alex.wauters/2-years-with-shape-up-and-why-we-switched-back-b1a80c5af700?source=rss-4f86e9791c89------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1a80c5af700</guid>
            <category><![CDATA[shape-up]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[agile]]></category>
            <dc:creator><![CDATA[Alex Wauters]]></dc:creator>
            <pubDate>Tue, 09 Dec 2025 07:00:56 GMT</pubDate>
            <atom:updated>2025-12-12T14:20:30.581Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/834/1*Wb8gFE_urZyZjWW24jtE5g.jpeg" /></figure><p><em>This is a preview of a blog post originally published on </em><a href="https://scalex.dev/blog/2-years-with-shape-up/"><em>https://scalex.dev/blog/2-years-with-shape-up/</em></a><em>. My blog has moved there as Medium restricted free views.</em></p><p>After 2 years, we decided to end our journey with the Shape-Up software development methodology. We hoped the longer cycles would help us ship projects faster, but ultimately we found the rigid structure wasn’t the right fit for our evolving needs. Here are my takeaways on why it was no longer a good match and what I learned from the experience.</p><h3>Why we tried Shape-Up</h3><p>At Customaite, we were sometimes struggling with projects that dragged on across multiple sprints and it felt we kept adding on to work-in-progress. Shape-Up’s promise of longer focus periods and value-based prioritization seemed very appealing to tackle these challenges in a different way.</p><p>For those unfamiliar, <a href="https://basecamp.com/shapeup">Shape-Up (developed by Basecamp)</a> uses 6-week development cycles followed by 2-week “cooldown” periods. Projects are shaped into pitches with an ‘appetite’ specified. Unlike typical bottom-up estimates, which are very hard to get remotely right without already jumping into the work, the appetite looks at the problem from the expected business impact. How much is this worth to us, given the expected impact? The projects and appetites then make it to a betting table to decide what the eventual scope will be for the next 6 weeks. Projects must either ship within the cycle or be canceled altogether, to encourage cutting scope rather than cutting corners.</p><p>Focusing on fewer initiatives and prioritizing them in a different way seemed especially appealing to us at the time and worth trying out.</p><h3>Planning perils</h3><p>We particularly liked that project pitches needed to be backed up with a ‘falsifiable hypothesis’ on what the expected usage or impact is shortly after go-live. It forced us to think about value rather than just implementation details.</p><p>However, <em>Appetite</em> proved to be a difficult concept to calibrate for us. In theory, it acts as a maximum budget. In practice it was sometimes interpreted as a target duration (“this is a 3-week project”). We found that when we assigned a 3-week appetite, the work naturally expanded to fill that time which may actually encourage gold-plating. At other points these deadlines worked well to encourage scope adjustments and larger projects would benefit from this approach with less overhead.</p><p>But our biggest struggle was that our projects were often smaller than the standard cycle size. We found ourselves trying to plan several smaller projects into a single 6-week cycle, effectively trying to run a planning two months ahead to fill the bucket which is more difficult and less reliable than in a shorter cadence. We lost the flexibility to reprioritize every two weeks, but we didn’t gain the benefit of deep, singular focus on one large feature. It also meant ‘fast-follows’ on projects to steer impact had to wait until the next cycle.</p><h3>Cooldown: a double-edged sword</h3><p>Shape-up tackles specific software delivery challenges in an unusual way. And while there were benefits (we stuck with it for 2 years and kept iterating after all), the sword often cut both ways. The cooldown period is one such example.</p><p>Six weeks of planned project work is followed by two weeks of ‘cooldown’. It’s some buffer time to finish rolling out the projects, prepare the next cycle, and let devs decide which work to take on.</p><p>It’s an interesting concept to encourage important, non-urgent work to be done that’s often forgotten. It was one of the main avenues for me to plan projects that contribute to the technical roadmap, prioritize tech debt, perform updates, and run migrations. Part of the allure of Shape-Up is to increase the work being done and reduce talking-about-work (in Jira or large planning meetings). There is immense value in engineer-driven work: fixing a bug immediately is far better than throwing it on the backlog and re-discussing it every grooming session.</p><p>The cooldown is sometimes picked up as an infrequent ‘fix it sprint’ for teams doing Kanban or Scrum, but there’s a definite advantage to it being a recurring phenomenon. Because we all know cooldown is coming, work that’s not as important is often delayed for later to focus on shipping projects, knowing it won’t die forever on the backlog.</p><p><strong>However, the sword cut in a different way.</strong></p><p>Because we knew a cooldown was coming, we started treating it as a parking lot for everything that wasn’t a main project. We didn’t always succeed in ‘protecting’ that time once it arrived — urgent bugs, holidays, or spillover from unfinished projects often ate into those two weeks. We also found it counter-productive to cram every meeting (such as knowledge sharing sessions) into cooldown just to keep the 6-week cycle pure, turning what should be “creative time” into “administrative week.”</p><p>Finally, the frequency became a friction point. Waiting up to six weeks to address a small piece of technical debt or a minor annoyance created too much latency. By the time the cooldown arrived, the context was often lost, or it was difficult to coordinate the team to work on shared improvements because everyone had their own solo lists piled up. It also meant initiatives were fragmented across cycles over a large timeframe.</p><p><em>Read the full post </em>on <a href="https://scalex.dev/blog/2-years-with-shape-up/"><em>https://scalex.dev/blog/2-years-with-shape-up/</em></a></p><p><em>Originally published at </em><a href="https://scalex.dev/blog/2-years-with-shape-up/"><em>https://scalex.dev</em></a><em> on December 9, 2025.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1a80c5af700" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simplifying Code: migrating from Reactive to Virtual Threads]]></title>
            <link>https://medium.com/@alex.wauters/simplifying-code-migrating-from-reactive-to-virtual-threads-8112de3e3262?source=rss-4f86e9791c89------2</link>
            <guid isPermaLink="false">https://medium.com/p/8112de3e3262</guid>
            <category><![CDATA[java-virtual-threads]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[concurrency]]></category>
            <dc:creator><![CDATA[Alex Wauters]]></dc:creator>
            <pubDate>Wed, 13 Aug 2025 09:00:37 GMT</pubDate>
            <atom:updated>2025-08-15T11:41:20.241Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This is a preview of a blog post originally published on </em><a href="https://scalex.dev/blog/simplifying-code-journey-from-reactive-to-virtual-threads/"><em>https://scalex.dev/blog/simplifying-code-journey-from-reactive-to-virtual-threads/</em></a><em> . My blog has moved there as Medium restricted free views.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*u_w3ceAVm3HBUTu7.jpg" /></figure><p>Four years into building <a href="https://customaite.ai/">Customaite.ai</a>, we made the decision to migrate away from reactive programming. Here’s why, and how Java’s Virtual Threads made it possible without needing to trade-off performance.</p><p>Recently I gave a talk on how the new Java Virtual Threads feature allowed us to simplify the codebase at Customaite. I spoke about our journey from migrating away from a reactive framework (Quarkus Mutiny) and which additional patterns we needed to address some gaps in the standard library. The discussion afterwards, with Burr Sutter, went into detail on the origin of the reactive web server and why complicated reactive frameworks may not make sense for you.</p><p>You can find the video and code links <a href="https://scalex.dev/blog/simplifying-code-journey-from-reactive-to-virtual-threads/">here</a>, but for those who prefer the written word I’ve included a high level summary.</p><h3>The reactive challenges</h3><p>Customaite.ai began development around 4 years ago, using the Java Quarkus framework. At the time Quarkus promoted a custom reactive framework called Mutiny, as a way to achieve higher concurrency. To understand why this may or may not matter for your use case, we’ll need to talk about threading mechanisms on Java.</p><p>In the standard JVM web server way, a platform thread is tied to one OS thread. As requests come in, they are being served by platform threads in the JVM. If those threads perform blocking I/O such as making a call to an external service, the OS scheduler will schedule a different thread. But as your platform threads get full, additional work needs to wait.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*exomh13fAGqMbhlg.png" /></figure><p>Quarkus is built on the vert.x web-server, which works with an event-loop (such as Node.js). A couple of event loop threads process code that’s written to be reactive, and if it encounters a blocking segment, it will continue to the next event. Code that’s not written to be reactive can be explicitely called to be executed in a ‘worker thread’, which will follow the same principle as the platform threads mentioned earlier.</p><p>This event-driven way allows the event loop to be performant and reduce idle waiting time. The downside, is that reactive code is harder to write and read, and it’s easy to shoot yourself in the foot. If the eventloop does execute blocking code, your performance will suffer because there are just a few eventloop threads.</p><p>There’s a steep learning curve associated with reactive frameworks, and debugging was another nightmare as the stack traces are difficult to debug. We also encountered issues with disappearing logs, where the solution was often to rewrite a piece of reactive code in the synchronous variant.</p><p>To reap the benefits of reactive code, there’s also a need for it to be reactive all the way down, and the entire ecosystem (such as hibernate reactive, for writing reactive code to the database) wasn’t production ready at the time and caused us several headaches.</p><h3>Virtual threads and Quarkus</h3><p>Virtual threads were officially introduced with Java Development Kit version 21, launched in September 2023. Virtual threads follow a similar model as Kotlin coroutines or Go’s Goroutines: lightweight threads that are faster to spin up and which consume fewer memory resources (order of KB vs MB)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7OzwD2ilMkLWKhnI.png" /></figure><p>The basic principle is that it could allow you to create one such lightweight thread for each request or subtask. If one of those lightweight threads is blocked as it waits for I/O, the scheduler will execute a different thread instead until it is unblocked.</p><p>This allows the user to still write simple, familiar, synchronous code that works with existing blocking libraries, while offering another way to be efficient around blocking I/O and increasing throughput.</p><p>In Quarkus it’s as easy as adding an annotation @RunOnVirtualThread to ensure an incoming HTTP request or consumed message is run on a new virtual thread instead of being continued on the eventloop.</p><p>In the talk I show a simple demo of three types of endpoints, one that’s written to be reactive, and that’s written to be ‘blocking’ using the traditional way, and one that uses virtual threads. A script launches requests with increased load. While the reactive endpoint can tackle more http requests before slowing down too much than the synchronous endpoint, the virtual thread approach can match it for this simple scenario.</p><p><em>So similar performance benefits, with much simpler code. What’s the catch?</em></p><ol><li>You will still need additional mechanisms for using virtual threads to distribute work, for tasks that you may want to run in parallel such as making different API calls before returning a response. We’ll cover these in the next section.</li><li>If your work is primarily cpu-intensive rather than I/O bound, using virtual threads may not offer additional benefits. You will not be able to optimize idle time as much. The cost may not be high however.</li><li>And finally, there is a risk of the carrier thread being ‘pinned’. To allow the JVM scheduler to assign a different virtual thread to a carrier thread, the virtual thread should be able to be ‘released’. It can’t do it if it’s running in a mutex such as a synchronized block.</li></ol><p>The ‘pinning risk’ was widely touted when JDK 21 released, but we never encountered this issue. Quarkus offered support for virtual threads as soon as they were able to upgrade their database transaction manager that no longer used synchronized blocks.</p><h3>Additional patterns to make virtual threads work</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*hjsERNK3OF9zG76x.png" /></figure><p><em>Read the full post with code examples, migration gotchas, and practical patterns on my blog: </em><a href="https://scalex.dev/blog/simplifying-code-journey-from-reactive-to-virtual-threads/"><em>https://scalex.dev/blog/simplifying-code-journey-from-reactive-to-virtual-threads/</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8112de3e3262" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond the beep and saving sleep: optimizing the On-Call experience]]></title>
            <link>https://medium.com/@alex.wauters/beyond-the-beep-and-saving-sleep-optimizing-the-on-call-experience-84776f2e513c?source=rss-4f86e9791c89------2</link>
            <guid isPermaLink="false">https://medium.com/p/84776f2e513c</guid>
            <category><![CDATA[service-level-objectives]]></category>
            <category><![CDATA[on-call]]></category>
            <category><![CDATA[availability]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Alex Wauters]]></dc:creator>
            <pubDate>Wed, 28 Feb 2024 21:37:16 GMT</pubDate>
            <atom:updated>2024-02-28T21:37:16.530Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AqS28EyoqM5WMKGyBex8FA.png" /><figcaption>Page! Page! Page! Page!</figcaption></figure><p>Behind the curtains of any application there’s a team of on-call engineers keeping the lights on. A bad on-call experience for any team could become a strong driver for employee unhappiness and churn, and result in longer downtime as it takes longer to notice or diagnose issues.</p><p>Here follow some lessons I’ve learned from the trenches in small start-ups and larger engineering teams, to improve your on-call shift experience and remediation time for production issues and make sure you’re spending on-call efforts on what has the most impact.</p><h4>Identifying the signal and the noise</h4><p>In an effective alerting system, every alert paging your on-call engineer should be</p><ul><li><em>actionable</em>: it’s apparent what action needs to be done, and a manual action is warranted</li><li><em>Not noisy</em>: it has the right notification level and frequency matching the urgency, and it’s not introducing <em>alert fatigue</em>.</li><li>can be <em>muted</em> for a specific issue. When the issue is known and resolution is already in-progress, there’s potentially no added value from notifying again within a certain time window</li></ul><p>The chapter in Google’s free SRE handbook on Monitoring alerts <a href="https://sre.google/sre-book/monitoring-distributed-systems/">https://sre.google/sre-book/monitoring-distributed-systems/</a> is a fantastic resource on these concepts and also introduces the ‘4 golden metrics’ <em>(error rate, latency, traffic, saturation)</em> that you can use as a starting point for creating alerts.</p><p>Ideally your team spots issues before your customers are impacted or the impact increases. On one end of the pendulum, you’re not raising the right alerts to be made aware of issues affecting your customers and you need to track the signal better. Pay close attention in post-mortems to questions such as <em>‘how could we have noticed this issue sooner?’ </em>and which alerts did not work well or were missing.</p><p>If you find yourself on the other side of the alerting pendulum, acting more on many noisy non-actionable events, you probably need to alert more on <strong>impact to business flows</strong> and less on ‘infrastructure events’ instead. Some infrastructure events are great indicators of issues only if you know the system can not recover automatically. Measure closely that you’re not swinging the pendulum back too far when making adjustments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*G2uegXTx_4xlok4CP0QV6A.png" /></figure><h4>Measuring business impact</h4><p>At Customaite, the main source of alerts began as the equivalent of <em>‘a wild error log has appeared in the logs’</em>, which demanded the same urgency for breaking bugs as well as a single service request time-out. This works well for the early-stage of a product, but it fails to scale as too much attention will be spent on noise and introduce alert fatigue. Instead of alerting on any (low-level) error, you will need to track when an operation important to a business flow has failed instead. This might be an API failure rate, or require more custom metrics to be set up. Blackbox monitoring is another useful technique for testing whether a flow still works end-to-end, by end-to-end testing a flow in production that’s hidden from other users.</p><p>To help you define what’s import to alert on, you will need to set and periodically review your Service Level Objectives (SLOs) with the product stakeholders. What’s the allowed availability and performance targets for flows you deem critical? Measure your current state, translate to what it means in minutes of downtime and failing flows, and adjust as necessary.</p><p>Treat any deviation from these SLOs as a high priority bug. Issues that happen within those percentages consume from the ‘error budget’ and allow you to focus on developing your product. Start with those targets for the main flows, and work down from there what that means for the target metrics for APIs that flow depends on. Often flows are set too dependent on other APIs (breaking when the dependency breaks), when it could degrade gracefully instead (such as omitting certain fields or components).</p><p>On my previous team at Uber, the error rates were left mostly at the default setting and were not updated for a couple of years. This sometimes resulted in too much attention going to the error rates of some of these APIs, especially when they were outdated and no longer actively supported. For APIs with low throughput, a single error may ensure you can not achieve previous targets and raise alerts during the night time. Regularly review your SLOs, and ensure the availability targets match what’s expected.</p><h4>Getting out of a bad on-call experience</h4><p>If your team scores low on on-call topics during team health retros, or team members are often woken up during the night for noisy errors, or busy chasing red herrings during the day — you may be suffering from chronic bad on-call-itis. With the critical flows defined in SLOs, and guidelines set in your team on how to tune alerts, you’re ready to start to turn the ship around.</p><p>Your observability process will need constant tuning to keep up with the application that’s being updated, or how the behavior patterns of your users change. The on-call engineer should therefore have dedicated time for fixing the ‘run’ of systems: tuning alert descriptions and thresholds, removing or adding alerts, applying fixes and reliability to the systems ... <br>If they are also given feature work, ensure that continuous improvement work does not disappear in the face of feature work deadlines that did not account for a structural on-call budget.</p><p>Measure regularly on how your on-call experience evolves, such as non-actionable pages during the night-time. On-call shifts are experienced differently (some may find those noisy sleepy hour wake-ups acceptable or have grown used to them), I’ve had mixed results with recording a general mood indicator as part of on-call hand-over. Because of the rotational nature of the job, improvements may also not be visible to the rest of the team. Highlight what’s changed based on the numbers and effort from team mates.</p><p>To gain some traction with the backlog of alerts and set a good example, it may be beneficial to start off with a reduced rotation. It comes at a cost for those engineers however, especially if they are following up on other projects at the same time. On the other hand, it may be the quickest way to gain traction on this important topic and set the right example.</p><p>Don’t give up, and don’t accept a less optimal situation just because it’s always been done that way. Keep iterating, and you should be able to lower alert fatigue, improve incident response times, and foster a healthier work environment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=84776f2e513c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to make software architecture trade-off decisions]]></title>
            <link>https://medium.com/@alex.wauters/how-to-make-architecture-trade-off-decisions-cb23482e1dfe?source=rss-4f86e9791c89------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb23482e1dfe</guid>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[trade-off]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Alex Wauters]]></dc:creator>
            <pubDate>Thu, 24 Feb 2022 04:27:07 GMT</pubDate>
            <atom:updated>2024-03-14T21:19:36.899Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Blog has moved to scalex.dev — this article is also available there on </em><a href="https://scalex.dev/blog/how-to-make-architecture-trade-off-decisions-cb23482e1dfe/"><em>https://scalex.dev/blog/how-to-make-architecture-trade-off-decisions-cb23482e1dfe/</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FvGsEux3Z8tA7O0ePojbOA.jpeg" /></figure><p>How do you come up with <em>the best</em> software solution for a problem and pitch that choice to both your technical and non-technical peers in your organization? And what are some common pitfalls in comparing your options?</p><p>A simple framework that has worked well for me for all kinds of technical decisions is prioritizing a set of criteria and mapping the possible solutions to them in tiers. Here’s how it goes:</p><h3>Mapping the way forward</h3><h4>Who’s right?</h4><p>Say you have already identified a shortlist of potential solutions, and listed out some benefits and disadvantages to each approach as pro and con bullet points.</p><p>Solution A has the most pros attached to it, you circle it in bold, and you proclaim it was the winner in your review session. As you’re describing the options, it becomes more clear not everyone is as convinced.</p><p>Bert makes it clear he favors option B, and cites several additional cons for all the other solutions, including your favored option A. You add these to the list.</p><p>Christine wants to ship the feature yesterday. Which solution gets it out of the door quicker? You indicate Solution C.</p><p>Daniel likes the more long-term focused option D. He disagrees with the relevancy of some cons Bert mentioned for D, and a technical discussion erupts of which you’re not sure whether it’s relevant for the task at hand.</p><p>You reflect back on happier times, when a review session went more smooth and everyone in the room was okay with going with the option with the most positive bullet points. Although, you recall that led to some difficulties down the road and may not have been the best option in hindsight.</p><p>Who was right? It seems everyone was, to some extent. How could you have prepared your design better, and evaluate the importance of a particular characteristic to another? To answer that question, we need to take a step back and evaluate what’s most important for your situation.</p><h4>Context matters (It Depends!)</h4><p>What’s more important for your team or organization for this particular feature or project?</p><p>Is it the users experience in the app (e.g. reduce loading times)? Reduce risk for data loss in a migration? Total Cost? Maximize independence? Minimize maintenance effort for another team? Removal of deprecated flows? Not make the piling tech debt even worse?</p><p>A technical trade-off decision depends on context, and selecting these most important criteria for your solution allows you to capture and describe it. Technical capabilities depend on what’s built or needs to be built, team availability, market context, appetite for risk, budget and so on.</p><p>Capture what’s most important, and highlight the top criteria in bold. Describe how a High, Medium or Low scoring solution would look like. You can discuss these trade-off evaluations with various stakeholders beforehand so that everyone is on the same page and knows what we’ll end up comparing solutions against.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QEDP9vrml4XmflN3X7v8lg.png" /></figure><p>You can follow this approach for choosing vendors, cloud providers, migration strategies, front-end frameworks, service design guidelines, new feature architectures and so on.</p><p>By having alignment on what the most ideal solution would look like, it will make it easier to navigate through possible alternatives and highlight the trade-offs between solutions for non-technical peers. If the importance of a particular criteria would change, it will be straightforward to re-assess the alternatives.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ce-aPiz26WlhP_7lhE-MxA.png" /></figure><p>Work out the technical details for each solution and call in expertise as needed. Make sure everyone is aligned on what we’re trading off and which one fits the project better, to avoid getting into the weeds on matters that may not affect your project.</p><p>There’s a couple more things to watch out for, however …</p><h3>Common pitfalls</h3><h4>Choosing between ‘the hack’ and the ‘right way’</h4><blockquote>“There’s never enough time to do it right, but there’s always enough time to do it over.” — John T. Bergman</blockquote><p>A common trade-off is development time. Should we opt for a quicker ‘hack’, and maybe ‘do it <em>properly </em>later’ — or ‘do it <em>right </em>from the first time’ ? The quicker hack allows us to release and get feedback faster, but may fall short in some areas such as performance, reliability or developer experience. If you find yourselves in the situation where the hack is always preferred and the technical debt your team has taken on shows pains in the systems uptime or developer experience, you should make sure to take this context of a blown ‘debt budget’ into account.</p><p>You can do this by describing the total cost of ‘the hack’, what lies in the ocean beneath the tip of the iceberg. Often we omit the costs it incurs for our team, or especially other systems or teams down the road. Don’t fall into the trap of always building shortcuts because everything always starts off as ‘just an experiment’. That approach works, <em>if </em>these experiments are consistently either changed or removed after they have concluded.</p><p>Secondly, when the hack is chosen and your team as a result chooses to take on the technical debt, make sure to document it. We employ a separate page on our wiki describing the debts, any relevant past architectural decisions and linking the tasks required to fix it properly. This makes it more clear why a piece of code is a certain way and why it’s best not to use it as an example or foundation, and help nudge future projects in the right direction.</p><p>When new features or iterations are planned, make it a habit to identify which of those tech debt pieces would make sense to tackle as part of the project. They may improve developer experience and make it easier to release iterations, resulting in fewer surprises in bugs, performance issues or increased development times.</p><h4>Too few or too many alternatives</h4><p>How do you come up with different solutions that would make good shortlist candidates? Start with your main approach after you’ve described your criteria, and how it maps to them. Which areas does it not perform well in? Search for solutions by calling in help from peers that would tackle those points in a specific other way.</p><p>A pitfall here can be to include too many different options as variants. If you have 3 different options and you’ve identified two variants for a component, don’t describe them as 6 permutations. Tackle those as separate decisions or replace some options if the new options perform better on the criteria that matter and as such are ‘strictly better’ than what you currently had described. It’ll otherwise be very difficult to steer a decision between options when you need to mentally map more than a handful of choices.</p><p>Depending on your project, you may need to align less or more on the criteria with various stakeholders beforehand and quantify what a High, Low or Medium evaluation would look like. A vendor selection is different from a particular API format, or anything that has impact on multiple teams.</p><p>The end approach should be the same: step back to evaluate what criteria matter most, and use that to evaluate the important of a particular pro or con. Get help from others for working out your solutions, and prepare the review session so that the trade-offs are clear and steer the discussion on what matters the most.</p><p>Good luck!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb23482e1dfe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[building bringr: learnings from a corporate start-up]]></title>
            <link>https://medium.com/@alex.wauters/building-bringr-learnings-from-a-corporate-start-up-264b0f0ace55?source=rss-4f86e9791c89------2</link>
            <guid isPermaLink="false">https://medium.com/p/264b0f0ace55</guid>
            <category><![CDATA[startup-lessons]]></category>
            <category><![CDATA[corporate-startup]]></category>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[lean-startup]]></category>
            <dc:creator><![CDATA[Alex Wauters]]></dc:creator>
            <pubDate>Sun, 03 May 2020 12:56:41 GMT</pubDate>
            <atom:updated>2020-05-04T11:41:00.629Z</atom:updated>
            <content:encoded><![CDATA[<p>Four years ago we embarked on an innovation project within bpost, the Belgian post group. You can send parcels through the mail, but what about items which do not easily fit in a small box such as bouquets, ping-pong tables or bicycles for your family trip at the beach? Could we bring these people into contact with drivers who would like to perform these services for a fee? Enter <a href="https://www.vrt.be/vrtnws/en/2016/06/18/have_your_neighbourdeliverapostpackagewithbringer-1-2688087/">bringr,</a> a crowdsourcing platform for deliveries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/1*FVCbtiyWc_6y6aUjJ9nPsg.png" /></figure><p>We started the project in January of 2016 and launched an Android and iOS app less than 6 months later in Antwerp. Here’s our story of that period and three lessons on things we could have done differently.</p><h4>Lesson 1: Get out of the building, embrace it more like a start-up</h4><p>There are many ways in which you could organize innovation projects within a larger organisation. Our motto was to run things independently where we could and use bpost’s services where convenient. Running our own software in the cloud separate from the main systems allowed us to iterate and launch software much faster with a small team. At the same time it was very useful to rely on the tax and legal expertise of ‘the mothership’. The sharing economy law in Belgium was still being written at this stage, and an organisation like bpost was better positioned to achieve compliance faster than a start-up. Launching the service with the bpost brand in the background and backed up by bpost’s parcel insurance may have instilled more trust in the new service than they might have with a new name on the block; I was stumped people started handing out laptops to strangers straight away.</p><p>This may sound like a dream: the speed and agility of start-ups, combined with the process advantages of a big organisation. However, we didn’t entirely embrace the lean innovation mindset as we might have were we a real start-up.</p><p>We went to work in the main building and didn’t leave our office space as much as we could have to interact with potential customers and other start-ups in this space. As a start-up, the entire team should have a product and sales mindset and needs to go out there to get the idea known and gather feedback.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/1*XZW4PhPWr-lFZLcbXcw_ew.png" /><figcaption>In the mvp sprint demo at bpost, we filmed the live delivery of a package. Pieter (head of operations) acting as the courier of a beer gift pack</figcaption></figure><p>The main organisation also has its obligations towards unions and its other services. This impacts how you might do marketing or experiment with pricing. We experienced how it could be done differently with another last-mile delivery start-up, Parcify. On their launch in Amsterdam they released press videos on how their couriers would <a href="https://www.bloovi.be/artikels/innoveren/2017/belgische-start-up-parcify-levert-nu-ook-pakjes-via-kajaks-en-paddle-boards">deliver parcels by kayak</a> in the canals. The start-up mindset ‘to dare more’, may be easier to obtain if you leave the more risk-averse environments. At the launch of the product we settled ourselves near other start-ups in an incubator in Antwerp, which seemed helpful as we were much closer to our early users.</p><h4>Lesson 2: Launch even faster, and get feedback faster</h4><p>Launching a new crowd sharing platform in under 6 months was certainly a challenge. We experienced some setbacks along the way (brand-new container orchestration platforms not behaving as expected, stories taking longer to develop than anticipated), but we learned quickly and adjusted the scope of the application accordingly. Initial designs such as the matching algorithm were adjusted in scope through story mapping, as we kept our eyes on the bigger end-to-end picture for a launch in June.</p><p>That summer we launched in Antwerp, and sent out promo teams to hand out flyers to shops near the busiest shopping streets. It was at that moment that we discovered an important customer segment, the florists — who typically had to temporarily close their shop to perform deliveries on their own. Bringr was a big help for their pains. We adjusted our marketing and sought out florists where they went (Steven en Leander from sales/business development set up booths at flower auctions at 5 am). Perhaps we could have learned this sooner, had we ‘launched’ with prototypes of which we only partly supported the end-to-end process with software.</p><p>An idea that emerged during a retrospective offsite was to start with a Whatsapp group, where customers would ask for their orders through the group and any courier could complete the order (where we could fill in if no one else would be interested). Without having built new software yet we would be able to learn about the end-to-end process and how to tackle challenges such as ensuring a delivery was completed successfully by the driver; and grow a test user base who we could rely on for questions while building the platform. We may have launched the full-software solution later this way, but we would have started gathering feedback much sooner.</p><h4>Lesson 3: One team, keep tabs on health</h4><p>I’ve been thinking about this project quite a bit in the recent months. A short while ago I attended QCon (<a href="https://medium.com/@alex.wauters/on-building-high-performing-teams-resilient-systems-and-micro-frontends-6ead0af889bf">summary here</a>), and one particular talk from Stephen Janaway, ‘<em>My team is high-performing but everybody hates us’</em>, brought back memories and excellent tips. One of them is to measure team health in various categories regularly.</p><p>In an innovation project the team deals with new challenges, a lot of uncertainty and everyone takes on more responsibilities than in a usual corporate project. And just as you’re out of the frying pan from a challenging deadline to release a brand new project in the market, you’re dealing with the challenges which come with a sharing economy platform which allows anyone to become a driver or a customer and the resulting disputes between them. At the same time the team is trying to discover product/market fit, there’s the red tape and pressure from the main organisation who’s deciding whether or not to keep pursuing the endeavor.</p><p>It’s a lot ot handle, but one of our core strengths was that we were in it together as one team. During development the entire team worked closely together in the same room, after launch the operations and technical team were often physically separated. To bring back the feeling of one team collaborating, we had extended Friday breakfasts (every week someone else does the shopping) where we went through our challenges (be it operations, IT, marketing … ) in an open forum.</p><p>We held regular retrospectives as part of our sprint to identify improvements to our way of working, but they were mostly focused on delivery improvements. Something like t<a href="https://labs.spotify.com/2014/09/16/squad-health-check-model/">he spotify squad health model</a> could have been useful. I would add categories to the model such as work-life/balance and sharing challenges together. We may have started rotating the support telephone sooner this way, or prioritize development work to alleviate operational or support problems. Be mindful of the risks associated with the additional pressure and challenges and don’t treat it as just another project. And while you should embrace the start-up experience in your innovation project in order to dare more, not all start-up aspects are worth embracing.</p><p>While we could have some things differently, I believe we did a lot of things right and it was an absolute blast with a great team.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OFUrBM6cETROOJEr" /><figcaption>The team at the Belgian Data News awards Nov 2016, bringr won ICT Project of the Year.</figcaption></figure><p>If you’re interested in the app, you will no longer find it under the name bringr. A year and a half later in December of 2017, Bpost acquired another start-up in the crowd-delivery space: the aforementioned Parcify. The two projects lived on separately for a while but were merged a year later. But that’s a story for perhaps another time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=264b0f0ace55" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[On building high performing teams, resilient systems and micro-frontends]]></title>
            <link>https://medium.com/@alex.wauters/on-building-high-performing-teams-resilient-systems-and-micro-frontends-6ead0af889bf?source=rss-4f86e9791c89------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ead0af889bf</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[resilience]]></category>
            <category><![CDATA[high-performing-team]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[microservices]]></category>
            <dc:creator><![CDATA[Alex Wauters]]></dc:creator>
            <pubDate>Sun, 08 Mar 2020 21:57:46 GMT</pubDate>
            <atom:updated>2020-04-28T13:13:50.612Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building high performing teams, resilient systems and micro-frontends, takeaways from QConLondon ‘20</h3><p>This week I attended the software engineering conference QCon in London. Like <a href="https://medium.com/@alex.wauters/the-main-stories-from-qcon-london-19-6d9b90ce2919">last year</a>, I noticed a further trend in moving away from <em>more shiny tools!</em> towards how to more effectively guide teams to deliver value (using whatever tools). Here are my main take-aways on the themes which resonated with me the most: building resilient systems for humans, building high performing teams and whether or not your frontends are safe from the microservices virus.</p><h3>Creating high performing teams</h3><p>There seemed to be more interest in engineering culture than before, and the topic of creating high performing teams received its own track. We’ve come to better realize that the specific tools don’t matter as much as the team and its focus on delivering real impact to end-users.</p><p>In ‘<a href="https://qconlondon.com/system/files/presentation-slides/patrick_kua_-_secretsofastrongengineeringculture-qcon-2020-03.pdf">Secrets of a strong engineering culture</a>’, Pat Kua elaborates on how to create an engineering culture that will attract engineers and help them grow. The three secrets are: make sure your engineers can see the <strong>impact</strong> of their work, they have a <strong>choice</strong> in coming up with a solution and your company can help them <strong>grow. </strong>Want to have an idea on how your current engineering culture performs? Ask yourself the following questions:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yrhu-Q2lmkzhndUz9EvQYQ.png" /></figure><p>Especially the topic of giving engineers a choice in their technology will prove to be difficult for most organizations. Too much freedom can result in the company having to support too many different tools, but heavyweight rules and change advisory boards (which may look more as risk management theaters) will impact your engineering culture. Cultivate choice by making the right thing easy: automate the basics, prefer principles over rules, define the goal and get out of the way and define clear decision-making boundaries.</p><p>Gather input from everyone on how you can improve these elements, create a tech culture handbook and publish this for the world to know. Prioritize the key improvement areas, and do follow up on your actions.</p><p>To get a better idea of what the key improvements are, Tim Cochran of Thoughtworks shared some developer effectiveness metrics. Which different tasks are developers occupied with on a daily basis, and how long do they take? It could be onboarding a new team member, to launching a new service, validating a component in a dev environment or that it integrates with other services and so on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*xjyq-s6-A8yaz1fZB-EvKQ.png" /></figure><p>For any of these tasks, map the process and come up with a couple of leading indicators. What would a dev day look like in a highly effective environment?</p><p>How long does it take before a new member is productive? How long would it take to get a change approved in the Change Advisory Board? How many tickets are created to complete a process? How long does it take for a low effective team to launch a new ‘hello world’ service, vs. a high effective team?</p><p><em>(If your organization is on the ‘couple of months’ end of the scale vs. ‘a couple of days’, that’s also a leading indicator that your organization is not mature enough yet to handle the increased deployment complexity of microservices.)</em></p><p>This gives you an idea on where you can work on the process to make everyone more effective (and as a result, more motivated and happy).</p><p>Although if you do get there, and become a high performing team — it’s not always roses &amp; peaches. One of my favorite talks which rang painfully true was ‘<a href="https://www.infoq.com/presentations/high-performing-team-lessons">My team is high performing, but everyone hates us</a>’, from Stephen Janaway.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8ZC7NSVMXB7jYpDErlOxZw.png" /></figure><p>High performing teams don’t last forever, they make mistakes. The organization changes, sponsors of your project may leave and once that happens — if you haven’t build up trust with the entire organization, you’re going to have a hard time.</p><p>Resist the temptation to focus inwards and ignore the ‘outside world’ and find a way to open up your team and sell it better. And as your team changes, revisit what works well and doesn’t work well for your team.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hbx_PFyLLxRamxVGBo4GkA.png" /></figure><h3>Build resilient systems because — not despite — of the humans</h3><p>One of the key messages which popped up across several talks was that as our systems grow more complex (<em>thank you microservices, but also the scale at which we operate and turn everything into software with more teams involved</em>), it’s become more difficult or nearly impossible for us humans to completely understand the underlying systems. This creates confusion among the people building, maintaining or monitoring the system — and increases the time needed to resolve issues.</p><p>So how can we design our systems more for the humans and make them more resilient?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*VCSAbviuUf8p1R_DPNta6g.png" /><figcaption>Vikings, my preferred source for insights on how humans build their mental model of technology</figcaption></figure><p>Yes — we should automate and document as much as possible. However, humans will always be there to cover the unexpected ‘weird’ things. <em>‘Things which have never happened before, </em><a href="https://www.infoq.com/presentations/resilience-thinking-paradigm/"><em>happen all the time</em></a><em>’</em>.</p><p>In ‘<a href="https://qconlondon.com/system/files/presentation-slides/samuel_parkinson_-_preparing_for_the_unexpected.pdf">Preparing for the Unexpected</a>’, Samuel Parkinson from ft.com shared their story of when the domain ft.com <em>disappeared</em>, and how they prepare their build teams to support these weird incidents. They run workshops where they replay old incidents with printed hand-outs of graphs and comments made at the time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZRulbBCjLJ0gHACl_0gk9g.png" /></figure><p>They split-up into different teams to approach this problem, and after a few moments ask the teams how they would proceed (<em>what’s the impact? what more info do you need?</em>) and what they would communicate to business. This creates an operations mindset (limit impact, communicate) into engineers, who tend to dive into code straight away. The team also get a better sense of the entire system (‘below the line’), how to use the tools to diagnose incidents and think along on how to improve the system.</p><p>If you’re not running <a href="https://landing.google.com/sre/sre-book/chapters/postmortem-culture/">blameless post-mortems</a> already, it’s a great way to start. However, don’t just focus on creating a timeline of all the events. Denise Yu (<em>Why are distributed systems so hard?</em>) and Randall Koutnik (<em>Better resilience adoption through UX</em>) added more questions you should ask during this process, such as</p><blockquote>What seemed reasonable at the time for the humans involved in the process? And what were the other humans doing at this time?</blockquote><p>While it’s great to have automation and documentation at hand, the team loses sight of everything that’s involved in the automation and engineers don’t read documentation — so keep in mind to design your systems and processes <em>for humans.</em> And when in doubt as to what the humans would do, just ask them and present a mock-up design.</p><h3>The next frontier of microservices: the frontend</h3><p>As microservices have conquered the thought-space of about every company, they start to look at the next frontier: what about our frontends?</p><p>As Ben Sigelman <a href="https://medium.com/@alex.wauters/the-main-stories-from-qcon-london-19-6d9b90ce2919">warned last year</a>, there’s only one good reason to adopt microservices: achieve independence and velocity for your teams.</p><p>This holds especially true for the frontend. Whereas with back-end services you could achieve architectural features by splitting up (scaling differently, running a process in an event flow, shift a process to a managed serverless offering … ) this doesn’t hold true for the frontend, where you have to merge these different components back into a single unit in the browser. So if your pain point is not organizational structure, tackle your real problems first. For those who do suffer on that end, this is what you could do:</p><p>In ‘<a href="https://qconlondon.com/system/files/presentation-slides/luca_mezzalira_-_lessons_from_dazn_scaling_your_project_with_micro-frontends.pdf">Lessons From DAZN: Scaling Your Project with Micro-Frontends</a>’, Luca Mezzalira shared the foundations of how you could split your frontend to scale up your project based on different factors:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JdE2TA4koxF-7lvo-K_LJQ.png" /></figure><ul><li>Application split: horizontally (different frontends in the same view) or vertically (link to different views).</li><li>Where to assemble all the pieces: At the CDN (e.g. Edge Side Includes), the origin server (e,g, server-side rendering) or at the client (via an orchestrating component)</li></ul><p><em>‘There is no right or wrong, but only the right approach based on the context’.</em></p><p>Interestingly enough, they don’t use WebComponents to apply these splits. WebComponents allows you to use different frameworks or framework versions for the different components, but as it’s new the integrations aren’t completely mature yet for all the frameworks.</p><p>One final warning from Luca: don’t go overboard, some duplication can at times be better than the wrong level of abstraction. For example, the simple footer message is duplicated across all the DAZN sites, and only had to change once in two years — which took just a few moments. They could have created a component out of this, which would have increased the complexity to maintain the component, deploy the changes and test / communicate changes.</p><p>That’s it for my main takeaways from the conference, hope you enjoyed the short read. I had a blast and have to especially commend the organization: the hygiene practices ensured only good ideas and discussions went viral.</p><p>If you’re interested in more conference recaps from the past year, I have got a <a href="https://medium.com/@alex.wauters/the-main-stories-from-qcon-london-19-6d9b90ce2919">Qcon London ’19</a> and <a href="https://medium.com/@alex.wauters/lessons-learned-at-craftconf-the-new-face-of-software-architecture-and-making-the-right-decisions-3bb2601d110e">CraftConf ’19</a> for you in stock.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ead0af889bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 learnings from making a chatbot count free parking spots through cameras]]></title>
            <link>https://medium.com/@alex.wauters/5-learnings-from-making-a-chatbot-count-free-parking-spots-through-cameras-f80a7af4f579?source=rss-4f86e9791c89------2</link>
            <guid isPermaLink="false">https://medium.com/p/f80a7af4f579</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Alex Wauters]]></dc:creator>
            <pubDate>Thu, 24 Oct 2019 14:38:26 GMT</pubDate>
            <atom:updated>2019-11-28T07:55:02.663Z</atom:updated>
            <content:encoded><![CDATA[<h3>Creating an automated parking attendant</h3><p>As our company has been growing over the years, the parking lot has gotten more crowded. If it’s full you’ll need to back out and drive to the new building, located down the street. As you are driving you may wonder, ‘Should I head to the second lot straight away, or take my chances with the main parking lot?’</p><p>Wouldn’t it be nice if we could pose this question to the voice assistant on our phones and spare us the detour?</p><p>We’ll share with you what we’ve learned in running this solution end-to-end, by using computer vision to analyze camera images of the parking lot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*g1PrHMAK1I2Tn_v9RnEV1g.gif" /><figcaption>A demo in x5 speed</figcaption></figure><h4>#1 — Serverless made it painless and cheap to run</h4><p>We made a python program which retrieves a snapshot of the parking lot through <a href="https://developer.cisco.com/meraki/api/#/rest/api-endpoints/cameras/generate-network-camera-snapshot">the camera APIs</a>, runs a computer vision script to remove the irrelevant pieces, count the cars in each zone and send this data to a database (Firestore).</p><p>We then created a Google Assistant app which will fetch the count of available parking spots when a user asks for this action via voice or text.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*GWNZhCzSH6uIyCNBGZzNiA.png" /></figure><p>The python script runs in a docker container, which is hosted via <a href="https://cloud.google.com/run/">Cloud Run</a>. Cloud Run is a new serverless offering from Google which allows you to host docker containers which will run whenever triggered through an API. We set up Cloud Scheduler to ping this URL at regular intervals during business hours. In contrast to other serverless offerings such as Google Functions you have more flexibility in what you can deploy with Cloud Run (just give it a docker image) and have more flexibility in how many resources you allocate and how long the container is allowed to run (a maximum of 15 minutes). If you have an existing Kubernetes environment, you can have Cloud Run run there instead.</p><p>Getting the image to run on Cloud Run was quite easy: you upload the image to Google Cloud’s image repository and provide the image and tag name. Our container does seem to require more memory than we expected, so we will optimize the container image in the future.</p><p>The end result of this set-up is that we pay just a few eurocents a month, for a set-up where we never had to tweak or update an application.</p><h4>#2 — The last mile is the longest</h4><p>We tried several state-of-the-art computer vision models and received decent results straight away. There will be cars that are counted twice or two cars counted as one, but all in all most will be detected just fine when the parking lot isn’t too busy. When the lot is full however, the errors increase, and it’s in those cases that the accuracy is even more important to answer the question: is there at least 1 available spot for me?</p><p>Fine-tuning for those final errors is still a work-in-progress. The old idiom that you can get 80% of results for 20% of the effort holds true here. My colleague Oliver Belmans elaborates on these computer vision learnings here:</p><p><a href="https://www.d-sides.be/the-parking-vision-project-an-automated-parking-attendant/">https://www.d-sides.be/the-parking-vision-project-an-automated-parking-attendant</a></p><h4>#3 — Make the script easy to share through docker</h4><p>There are several libraries required in order to run the car counting program on your machine. Some of these may conflict with versions which you have already installed for other projects. Installing native libraries such as OpenCV or Tensorflow will also require different instructions depending on if you use a Linux, Windows or MacOS laptop. To make it easy to share the program, we use a docker container to build the right environment and run the program from within the docker container.</p><p>It will take some time to get your image setup right, as <a href="https://gist.github.com/Alex-Wauters/bd7f7a781c1f5e95849690a7f9fa653a">our dockerfile</a> may suggest — but it will save you a lot of trouble down the road. Colleagues don’t waste time trying to get it to work and you are more certain it will keep working later as you update the libraries on your machine or switch to a different computer. As an added advantage, the container will be a good start to run your solution in the cloud (as mentioned in lesson 1).</p><p>As it’s a bit cumbersome to re-create the docker image every time after you have made some changes, we load the project and images folder from the local disk in the same container image:</p><p>docker run --name=benchmark --mount type=bind,source=/home/alex/parking-garaeg/images,target=/images --mount type=bind,source=/home/alex/parking-garaeg/app,target=/app parking-vision-tester:1.0 python benchmark.py</p><h4># 4 —Get some baseline tests and iterate</h4><p>One of the goals of the experiment was to try out different strategies, learn from them and pick the best. It helps if you get quick feedback on whether an approach performs better or worse than the current best.</p><p>To accomplish this, you can run the same program with a different invocation argument (benchmark.py) which will run the algorithm on a test set of images instead of the main script which goes on to retrieve the camera images. To keep it simple, we collected a couple of camera images for each zone, and noted in the filename which zone it applies to and how many cars are present in the image<em> (cam1–5-….jpeg)</em>. The benchmark script loops over all the images in the folder, compares the generated count versus the one found in the filename and spits out the total difference. It’s simple but effective.</p><p>There is room to improve still, as our program will skip over some cars if they are too close together or behind a tree.</p><h4># 5 — Low resolution images = lower results</h4><p>Although the cameras record video in high quality, the snapshots made available through the API only return images of mere ~140 kb in size. Compared to high-definition images this makes quite a difference for computer vision scripts, and we have had to adjust our approaches. If you are looking at a certain camera to apply this script to, make sure you check out the quality of the snapshots first. Even on low resolution images the results are interesting, but increasing the quality will undoubtedly improve the results for near real-time detection.</p><p>Cisco does offer object detection for the historic views of the camera, which does not suit our use case where we would like to know how many cars are stationed in each zone right now.</p><p>That was it, hope you enjoyed this post. The automated parking vision is one of the running experiments within our garage at <a href="https://www.ae.be/">AE</a>, where we try out different emerging technologies and machine learning algorithms to improve a running model. Even though it’s improving along the way I find the best way to completely avoid parking anxiety is to bike to work!</p><p>Make sure you check out <a href="https://www.d-sides.be/the-parking-vision-project-an-automated-parking-attendant/">Oliver’s post</a> for more elaboration on the computer vision algorithm. If you need some help to get started with emerging technologies at your company, do reach out. <br>If you’d like to read more, you can find my previous blog posts <a href="https://medium.com/@alex.wauters">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f80a7af4f579" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to get started with Threat Modeling, before you get hacked.]]></title>
            <link>https://medium.com/@alex.wauters/how-to-get-started-with-threat-modeling-before-you-get-hacked-1bf0ea3310df?source=rss-4f86e9791c89------2</link>
            <guid isPermaLink="false">https://medium.com/p/1bf0ea3310df</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[security-by-design]]></category>
            <category><![CDATA[threat-modeling]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[hacking-threat-models]]></category>
            <dc:creator><![CDATA[Alex Wauters]]></dc:creator>
            <pubDate>Wed, 26 Jun 2019 11:01:03 GMT</pubDate>
            <atom:updated>2024-03-14T21:20:20.338Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Blog has moved to scalex.dev — this article is also available there on </em><a href="https://scalex.dev/blog/how-to-get-started-with-threat-modeling-before-you-get-hacked-1bf0ea3310df/">https://scalex.dev/blog/how-to-get-started-with-threat-modeling-before-you-get-hacked-1bf0ea3310df/</a></p><p>If you want to achieve security by design in your project and mitigate cyber threats before they hit your applications, you will need to discuss these risks with your team and plan ahead. If you don’t know how to get started to get security from an afterthought to a feature, this guide is for you.</p><p>By the end you should be able to organize your first threat modeling session, to get to a shared understanding in your team of the security threats and agree with the business stakeholders on what you will do to mitigate them.</p><h4>Sharing a Security by Design mindset</h4><p>Not everyone in the team has the same security mindset, some will be more familiar with some type of threat than others (perhaps through the hard way). Even business analysts who are not familiar with secure software development may identify threats that a developer or security expert did not foresee. The best way to uncover as many threats as possible and make sure everyone knows them is to discuss them together.</p><p>Start now by picking a date for this discussion session. Invite at least the developers, someone who knows how the systems are deployed, someone from security team and your product owner. Reserve about 1 hour — one hour and a half. If more time is needed, you can always organize a follow-up session.</p><h3>An introduction to threat modeling</h3><p>A threat modeling session typically consists of the following steps:</p><ul><li>Pick a use case of your application</li><li>Draw a Data Flow Diagram of this use case, which shows how data flows through your system and which applications or databases are involved.</li><li>For each asset passing through your data flow, go through a checklist and discuss potential security risks. Rate each risk (e.g. by likelihood and impact)</li><li>Discuss and decide what you will do about each risk</li></ul><h4>Pick a use case</h4><p>You can discuss any number of use cases for your application in a threat modeling session, but for your first session it’s probably better to start with one or two use cases at most. I suggest you start with your authentication use case (how do people identify themselves and gain access?) as well as one of the main flows of your application (for Medium it could be about a user posting a new story, for Lyft you might pick a user calling for a driver).</p><p>Got your use case? Gather your drawing pencils. We’ll create the data flow diagram.</p><h4>Draw a data flow diagram</h4><p>In a data flow diagram you draw your applications (processes), databases or other important data assets, data flows and actors. You can do this step during the session, or prepare it beforehand.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h0QTvZBFBll9krIOUg-9pA.png" /><figcaption>You may assign a number or a letter to elements to refer to them more easily when listing the risks.</figcaption></figure><p>The data flows start with the rectangle at the left, the user / actors performing the use case.</p><p>Circles denote processes. It could be a web application, or a collection of applications. Collections of services can be hidden behind a double circle. You might want to encapsulate a service in this way in order to focus the exercise on other data flows without diving in too deep into the other services (yet).</p><p>I typically draw the hosting of the static front-end files separate from the back-end API, even if they are deployed on the same server. Static files have their own sets of risks (such as third-party injection) and may not be behind a trust boundary (not requiring authentication to download the front-end files.). We’ll get to trust boundaries in a minute.</p><p>The rectangles which are missing their vertical sides stand for assets. These could be anything ranging from a database, to files, to queues, to data contained in logs … Attackers may be especially interested in this data, either because it is useful on its own or because it could be manipulated to become useful (e.g. monetary transactions which are yet to be processed).</p><p>In-between services, you may encounter a trust boundary (the dotted line). A trust boundary means that data flows going through this line are <em>not trusted</em>. Typically a flow will need to present authentication credentials, and the sessions previously associated with that flow will no longer be valid across the boundary.</p><p>There are several tools online which can help you draw Data Flow Diagrams:</p><ul><li><a href="https://www.draw.io/">draw.io</a>: is a general drawing web app which is what I use. Michael Henriksen has <a href="https://michenriksen.com/blog/drawio-for-threat-modeling/">created a library</a> which you can import in draw.io. <br>In draw.io go to File -&gt; Open Library -&gt; Url, and refer to the <a href="https://raw.githubusercontent.com/michenriksen/drawio-threatmodeling/master/dfd.xml">raw file</a> on github.</li><li><a href="https://www.owasp.org/index.php/OWASP_Threat_Dragon">OWASP Threat Dragon</a> is a web app tool which saves your diagrams on github. Simple, but github only.</li><li><a href="https://docs.microsoft.com/en-us/azure/security/develop/threat-modeling-tool">Microsoft’s Threat Modeling tool</a> is a bit heavier to use but allows you to generate reports from filling in the metadata.</li><li>Many others listed on <a href="https://en.m.wikipedia.org/wiki/Threat_model">this wiki page</a> (Thanks to Dan Gorton for the link)</li><li>… or just take a picture of whatever you draw on a whiteboard during the session, and improve on that in next sessions.</li></ul><p>The draw.io templates also include some other elements such as security control tables, which allow you to quickly indicate which controls are already in place at certain places in the data flow diagram. This example draws the data flow diagram for an employee-only private podcast feed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2rdP9qN0NxKedfuL" /></figure><p>I’ll get back to this use case later in the attack trees segment.</p><p>Now that you have a data flow diagram, it’s time to discuss the risks.</p><h4>Discuss the security risks</h4><p>If you have prepared the data flow diagram before the session, go through the diagram in the session with the team and modify it if necessary. Otherwise, grab a whiteboard and start drawing the processes and assets.</p><p>Now we’ll go over each of the assets and data flows, and ask ourselves the following <strong>STRIDE</strong> questions:</p><ul><li><strong>S: </strong>Is there a risk for <strong>Spoofing</strong>? Can someone execute this data flow and pretend they’re someone else? Can I pretend I’m a different employee and view my salary information?</li><li><strong>T: </strong>Is there a risk for <strong>Tampering? </strong>Can I modify the request parameters to get different behavior (and e.g. inject code or modify my salary), or tamper with the files on the server?</li><li><strong>R: </strong>Is there a risk for <strong>Non-Repudiation</strong>? Can someone deny they performed this action? Example: you order something and pay for it, and later request your money back and deny you made the order. Or a super-user could deny having accessed sensitive information such as employee salaries.</li><li><strong>I: </strong>Is there a risk for <strong>Information Disclosure</strong>? Users obtaining more information than they are allowed to? What information could get exposed from this asset, what’s contained in this database?</li><li><strong>D: </strong>Stands for Denial-of-service. Some actions could result in DoS, through users spamming actions which require a lot of resources, or result in quota limits being reached on other APIs. An authentication scheme which temporarily locks users out may be abused to deny users (or system accounts … ) being able to log-in.</li><li><strong>E: </strong>Is there a risk of Elevation of Privileges? Users obtaining more permissions than they are allowed to? The typical way to circumvent this is to give processes as few permissions as possible, to minimize the attack vector.</li></ul><p>You can use a different checklist or add additional questions as you see fit. Not all of the STRIDE elements apply to each element. Quickly evaluate if it applies, and then go through possible security threats related to that question.</p><p>For each risk that you find, list it with a reference to the element, short description, likelihood of it occurring (Low, Medium, High), impact on your system (Low, Medium, High) and <strong>proposed mitigation</strong>. This is the mitigation you will verify with your product owner, and create a story for in your backlog.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*xNg_-pYKSORXWhjVH2DGPg.png" /><figcaption>it’s <strong>REDACTED </strong>so it must be<strong> TOP-SECRET </strong>right?</figcaption></figure><p>Business may decide not to do anything and instead accept the business risk. This is better than having done nothing, and at least everyone is aware of the risk and what the impact may be. It’s important to document this, so it may be revisited later and also understood by other team members. Other options could be to transfer the risk (e.g. through insurance or through liability shifts in contracts).</p><p>Note that humans are terrible at estimating the likelihood of rare events, and even a threat with low likelihood may still happen and put your service at risk. Don’t discount these and put your focus on the risks with the biggest impact.</p><h4>Next steps</h4><p>Well done for making it here! Post the threat model with the diagram, list of risks and mitigations on your knowledge base (consider who has access!) and share it with whoever wasn’t present. Next:</p><p><strong>Plan the next threat modeling session. </strong>Do you have other use cases to cover? Want to go in-depth into a process which you hid behind a double circle? Plan another session in the near-future. Expect a significant change to your architecture or a sprint where you will be working on security features? Plan it in, and otherwise pick a date in 3 months. If you don’t plan the next session, chances are likely you will forget and not keep up. You can always choose to cancel the session as the date draws near.</p><p><strong>Tie the decided mitigations to your retrospective actions</strong>. Perform a review on whether the actions were taken successfully (like for example; ‘Write out developer security guidelines’)</p><p>Whenever you start a development sprint, decide if you want to revisit the threat model for one of your use cases.</p><p>You’ve completed your first threat modeling session! Congratulations 👏. To help you with your next sessions, there’s more info below:</p><h3>Attack Trees</h3><p>Not every type of threat maps easily to the ‘STRIDE’ model. I posted a data flow diagram of a private podcast feed earlier. Attack trees offer a different way of looking at threats, which may not surface during the STRIDE questions.</p><p>Consider the case of a private podcast, which may only be available to employees of an organization (while they are still part of the organization). You could generate a private link for each member separate, but that may not cover all the possible risks. Start with the general risk, and then go down deeper and list more specific cases of that risk:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oVADBnTPBQDeMLRPyJykMw.png" /></figure><p>Ah! Apparently podcast apps automatically add feeds to a searchable index, to make it easier for other people to find content. By discussing risks like these together, you uncover more possible threats — more than you would have on your own.</p><h4>More resources</h4><p>For Privacy by Design questions, you can use the <a href="https://linddun.org/">LINDDUN </a>question framework.</p><p><a href="https://en.m.wikipedia.org/wiki/Threat_model">Wikipedia’s Threat Model page</a> lists other frameworks with appetizing names such as P.A.S.T.A. (Thanks for the note, Dan Gorton!)</p><p>If you would like a more elaborated walk through of threat modeling, Microsoft has <a href="https://blogs.msdn.microsoft.com/microsoft_press/2016/04/19/free-ebook-the-security-development-lifecycle/">a free e-book available here</a> on the Security development lifecycle. Chapters 9 and 22 focus on threat models.</p><p><a href="https://blogs.msdn.microsoft.com/microsoft_press/2016/04/19/free-ebook-the-security-development-lifecycle/">Free ebook: The Security Development Lifecycle</a></p><p>And that’s it. Don’t be afraid to get started with threat modeling. If you need help you can look for security experts to help you with these sessions, but don’t let it stop you from trying it out yourself. It won’t be perfect, but it will be <strong>much better</strong> than doing nothing. You will get better over time.</p><p>Thanks for reading, and do let me know if you have any questions, feedback or encounter any issues on the way. If you’re interested in more stories such as software conf recaps of QCon and CraftConf, you can find them <a href="https://medium.com/@alex.wauters">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1bf0ea3310df" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lessons learned at CraftConf—the new face of software architecture and making the right decisions]]></title>
            <link>https://medium.com/@alex.wauters/lessons-learned-at-craftconf-the-new-face-of-software-architecture-and-making-the-right-decisions-3bb2601d110e?source=rss-4f86e9791c89------2</link>
            <guid isPermaLink="false">https://medium.com/p/3bb2601d110e</guid>
            <category><![CDATA[software-craftsmanship]]></category>
            <category><![CDATA[lean-software-development]]></category>
            <category><![CDATA[conference]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Alex Wauters]]></dc:creator>
            <pubDate>Sat, 18 May 2019 11:22:11 GMT</pubDate>
            <atom:updated>2019-05-20T05:50:41.447Z</atom:updated>
            <content:encoded><![CDATA[<h3>Lessons learned at CraftConf — the new face of software architecture and making the right decisions</h3><p>Craft Conference 2019 took place last week in Budapest, and I had a blast. It’s a conference focused on software craftsmanship; with several talks, meetups and discussions taking place over two days in a lovely train museum.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Gh433ZLAj3vu-px9" /><figcaption>A smaller release train in action vs. the larger release trains of yore</figcaption></figure><p>Here are my takeaways from the stories discussed at Craft, divided into three themes: the new face of software architecture and technical leadership, choosing the right layers of abstraction and breaking rigid rules.</p><p>I’ll expand on topics discussed in <a href="https://medium.com/@alex.wauters/the-main-stories-from-qcon-london-19-6d9b90ce2919">my write-up of Qcon London Conference here</a>.</p><h3>Role of software architecture in autonomous teams</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*whKjc-Cz5fRpr8oW6pikwA.png" /><figcaption>Capabilities that drive high performance</figcaption></figure><p>Last year, the excellent research book on software delivery and organization performance <a href="https://www.goodreads.com/book/show/35747076-accelerate">Accelerate</a> was released. One of the most important indicators for higher organizational performance was<strong> </strong>the presence of <strong>empowered, autonomous teams </strong>working on the products. These are teams which …</p><ul><li>have the ability to make large-scale changes to the design of a system without permission from outside the team</li><li>do not need to perform detailed coordination outside of their team.</li></ul><p>Co-author Jez ‘Continuous Delivery’ Humble was present and gave a talk on their research <a href="https://www.youtube.com/watch?v=CN6uhzNM4eA">here</a>.</p><p>Several talks went into what this means for technical leadership and the role of software architecture in such teams. Because if everyone is empowered to do what they want, what could possibly go wrong 💣? <a href="https://www.youtube.com/watch?v=qnujkFY2gKs">wonders Emily Bache</a>. Can you trust those teams with software architecture decisions?</p><p>Software architecture is about making sure the qualities a system should have (these are often referred to as <em>the</em> <em>*-ilities </em>like availability, reliability … ) are present in the product and that making changes to the product remains <em>sustainable </em>over time. Not every quality is compatible with each other or is required at a high level for the product. It’s the technical lead’s responsibility to identify the focus and validate the quality priorities with the business and identify and explain the trade-offs for their context. Next, he or she translates this to design principles for the team to focus on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/857/1*2G_aeo3SIk3a-wXuxrkvkg.png" /><figcaption>You can’t have it all. Choose principles and practices to focus on with concensus</figcaption></figure><p>There are a lot of design principles / guidelines you can follow, but it’s the tech leads role to explain why the team should choose to focus on these: what happens when they’re not followed, and how do they affect the system’s architecture? That’s what cultivating architecture is about, <a href="https://www.youtube.com/watch?v=MZnrxjw602E">according to Martin Fowler and Birgitta Böckeler</a>. These teams are loosely coupled, but should be highly aligned on the strategic goals and architecture principles. They aren’t told what to do, but know what’s important for the organization and which <em>sensible defaults </em>apply. Teams can diverge from these sensible defaults, with a substantiated choice. Excellent talk.</p><h4>Evolutionary Architecture</h4><p>Architecture in agile teams is not a step done at the start of the project nor should its outcome be limited to diagrams stored somewhere for no one to read ever again. The architecture should evolve in small incremental and business-relevant steps, <a href="https://www.youtube.com/watch?v=xJj9vgDz33U">says Neal Ford</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*N4smLaeeRpY4YrxJ" /><figcaption>The Parliament of Hungary is the world’s third largest parliament building, with only half of it in use by the government in Budapest. Better understanding of the requirements shift over time.</figcaption></figure><p>To ensure your software evolves in the right way, define fitness functions which can validate your software qualities in an objective and automatic manner. Testing libraries such as <a href="https://github.com/clarkware/jdepend">JDepend</a> or <a href="https://www.archunit.org/">ArchUnit</a> (.NET alternatives exist) allow you to create automated tests for cyclic dependencies, or imports across modules or abstraction boundaries in a disallowed manner and so on. Done right, it means you don’t have to jump to separate run-times (microservices) just to avoid the big ball of mud. Netflix’ Simian Army tests services at run-time and terminates them if they are no longer used or don’t comply. For Performance, you can test your error budget during build or monitor the golden signals. Whatever you do, make sure your fitness functions are measurable and can’t be gamed (like code coverage). The tech leads ensure these are set-up accordingly.</p><h4>Task list for the new software architect</h4><p>So to summarize, this is how you might want to write a CV for the new software architect / technical lead …</p><p><em>Responsibilities</em></p><ul><li>You touch the code and works on fostering a good technical environment (a clean kitchen), with automated tests and fitness functions; measuring and validating that the software evolves in the right way</li><li>You nurture technical knowledge sharing in the team, with a shared understanding of the architectural principles (and why they apply) which will guide the team’s decisions (as sensible defaults).</li><li>You link the architectural principles with the product needs and economics; and how you can keep making incremental changes sustained over time.</li></ul><h3>The right level of abstraction and product focus</h3><p>So we know the teams require high alignment and having a good environment which fosters the sharing of knowledge and application of good practices. How can we increase the skills of team members and work on the shared understanding of what makes a design decision?</p><p>What makes Domain Driven Design still relevant after 15 years, <a href="https://www.youtube.com/watch?v=XVphoiq_l0M">wonders Nick Tune</a>. For Nick, it’s the focus on product discovery and everyone in the team should be involved and contribute to the product ideas. If they’re further removed from the customer problems, he suggests to organize a business quiz regularly for the entire team, which I’ll definitely be doing to drive this home.</p><p>There are many design principles like SOLID and the DDD terms and if you follow them blindly at all times, it leads to disaster. This was a principle which came back in several talks; that reusable code is less usable and that you take a loan when you create an abstraction: you owe in performance and you owe in readability across the layer boundaries. Choose wisely. The design principles chosen previously for your team can help to guide decisions, as well as resisting to DRY out your code until the 3rd or 4th copy-paste. You’ll get a better idea of what the real problems and use cases are by then. Don’t do API or test-first design without stakeholders either for this reason, <a href="https://www.youtube.com/watch?v=JmmfgfCeqdg">warns Theo Schlossnagle,</a> in order to add simplicity to your complex systems.</p><p>As Ash Maurya said, “Life’s too short too build something nobody wants”. Clean code lives in the software craftsmanship world, but even more important is code solving a customer problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*oQVsDR-q8n91vNT4" /><figcaption>Late night Mob Programming with Llewelyn Fargo (should be a new talk show)</figcaption></figure><p><a href="https://www.youtube.com/watch?v=wp6oSVDdbXQ">Llewelyn showed off </a>the Approvals testing library for refactoring untested code. If you need to refactor code which doesn’t have tests, you can use approvals to quickly create tests based on the existing output (and visually confirm the output), so you can verify with your refactoring that you don’t break anything.</p><p>Llewelyn and Emily also organized a late night mob programming session, which is a useful practice to work together on a single problem with a team and in doing so share knowledge on how you tackle challenges. It was a lot of fun and we started to apply it this week in my team, starting with half an hour a day. If you want to try it out yourself, Emily offers some tips in her talk mentioned earlier.</p><h3>Industrialized agile and complex system management</h3><p>Next to the architecture and craftsmanship challenges there was another element which came back in several talks: the dislike expressed towards ‘industrialized agile’ project management. The main complaints are that the focus on the customer has shifted towards a set of rigid rules, applied without regarding the context of the team. Perhaps some management methodologies from the 90ies (like SCRUM) aren’t always a good fit for every team. Go deeper and see what’s effective for a team combining different ideas, ditch the standard index cards; is what Dan North advises while recounting different stories from his career.</p><p>A hilarious comparison was made by Dave Snowden, giving an idea of how you might want to organize a children’s party in a truly SAFe and agile-certification approved way. Complex systems require different approaches, and the <a href="https://en.wikipedia.org/wiki/Cynefin_framework">Cynefin framework</a> he invented may help you in decision taking.</p><p>Unfortunately neither talk is online yet, the talk given by Dan is available <a href="https://vimeo.com/111028823">here from another conf</a>. I’ll update the links when they come online.</p><h3>In conclusion</h3><p>This is what I’m taking away:</p><ul><li>The lean mindset is alive and well in the craftsmanship community. Yes we all like pretty code, but until it’s live and solving a customer’s real problem — it’s dead code. Abstractions are loans, reusable code is less usable. Be careful. Decide what’s important and communicate the trade-off made.</li><li>A reminder to emphasize product discovery (where is the customer?) and to cultivate this in the entire team. Going to hold quizzes at regular intervals to test this.</li><li>Leadership: foster more knowledge sharing and creation. We’re giving mob programming a shot this sprint, 30 mins a day. So far it’s been a lot of fun and insightful for everyone, going through problems in different components and services of the system.</li><li>There was also <a href="https://www.youtube.com/watch?v=UHoWjKAW8hI">an excellent introductory talk on CSS Grid by Bill Odom</a> which won me over and I’ll be trying out in one of my projects. CSS Frameworks like Bootstrap remain useful for components, but you should stop using them for your layout; CSS Grid is much better and widely supported with fallbacks available.</li></ul><p>Hope you enjoyed the read! If you want more, my QCon summary of March 2019 is available <a href="https://medium.com/@alex.wauters/the-main-stories-from-qcon-london-19-6d9b90ce2919">here</a>. Next I’ll be writing about how to do security design in teams.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-xA-z3GAYZTzba8T" /><figcaption>Crossing the divide between lean and enterprise, and developers and architects.</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3bb2601d110e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>