<?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 Jason Goodwin on Medium]]></title>
        <description><![CDATA[Stories by Jason Goodwin on Medium]]></description>
        <link>https://medium.com/@jason.goodwin?source=rss-6bbe3de1c427------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*x1sDdP71qjnjQq93B95ABw.png</url>
            <title>Stories by Jason Goodwin on Medium</title>
            <link>https://medium.com/@jason.goodwin?source=rss-6bbe3de1c427------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 22:51:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jason.goodwin/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[The Rule of Least Power in Modern Technology]]></title>
            <link>https://medium.com/@jason.goodwin/the-rule-of-least-power-in-modern-technology-a4d9047e1063?source=rss-6bbe3de1c427------2</link>
            <guid isPermaLink="false">https://medium.com/p/a4d9047e1063</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Jason Goodwin]]></dc:creator>
            <pubDate>Sun, 25 Dec 2016 21:44:04 GMT</pubDate>
            <atom:updated>2016-12-25T21:52:03.406Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hETSvLhgD_c-EhreUUTP7w.png" /></figure><p>The <a href="https://en.wikipedia.org/wiki/Go_(programming_language)#Language_design">Go programming language</a> is a highly polarizing language. One of Go’s main objectives was to create a language with a specification that is “simple enough to hold in a programmer’s head.”</p><p>Here’s a quote from Rob Pike, one of the creators of Go:</p><blockquote>“The key point here is our programmers are Googlers, they’re not researchers. They’re typically, fairly young, fresh out of school, probably learned Java, maybe learned C or C++, probably learned Python. They’re not capable of understanding a brilliant language but we want to use them to build good software. So, the language that we give them has to be easy for them to understand and easy to adopt.”</blockquote><blockquote>— Rob Pike, <a href="https://news.ycombinator.com/item?id=9608525">HackerNews</a></blockquote><p>Classifying and comparing languages, technologies, and approaches is difficult, but there’s a general correlation between complexity and power. The Go programming language reduces the barrier to initial productivity at Google by providing developers only the bare minimum of complexity — and the maximum familiarity — in the language features provided which they need to do their jobs.</p><p>In contrast, while a language like Haskell provides rich abstractions that can lead to more expressive and correct code than with Go, it would take years for your average Java developer fresh out of school to be proficient with the paradigms and ecosystems of purely functional programming in Haskell.</p><h3>The cost versus benefit of complexity</h3><p>If you choose more specialized, powerful technologies and approaches for your given purpose, you’ll need to onboard people who have gone through the process of acclimatizing to that technology. Correctly utilizing the power of your tools takes time and experience.</p><p>Compare monoliths to microservices. With a microservices architecture, your teams needs to understand a completely different set of challenges than with monoliths, such as network reliability, proper infrastructure management, testing tools specifically for distributed services, service monitoring, failure monitoring “all the way down” (service, infrastructure, network, data centre), and the list goes on.</p><p>Realizing the full benefits of a powerful architectural approach like microservices requires a higher degree of skill than implementing a monolith, so care needs to be taken when choosing such powerful architectural approaches. Defaulting to microservices for all systems is no more rational than defaulting to Ruby on Rails for all systems.</p><h3>The Rule of Least Power</h3><p>While technology is hard to change once chosen, the Rule of Least Power comes into play in the design of the code at any scale, all the way down to the simplest commit. It’s very easy to over-engineer code — to keep it flexible “just in case” it needs to be modified.</p><p>Martin Fowler calls this type of “just in case” addition of unused abstraction in code <a href="https://sourcemaking.com/refactoring/smells/speculative-generality">Speculative Generality</a>. The ExtremeProgramming “YAGNI” principle — <em>“You Aren’t Gonna Need It”</em> — prescribes the antidote to this problem; ditch any notion of what might be needed one day and implement the simplest thing you can do to solve the problem today. Speculative Generality leads to code that’s confusing, because abstractions were introduced to problems people <em>expected</em> to encounter rather than problems they’ve already had to <em>solve</em>.</p><p>We can see on every level of engineering activity that we should do the simplest thing we can to solve a given problem. Let’s go back to the good-old KISS principle: <em>“Keep it Simple, Stupid.”</em></p><p>While the KISS principle is a principle for writing code, the Rule of Least Power is a principle for choosing languages:</p><blockquote>“When designing computer systems, one is often faced with a choice between using a more or less powerful language for publishing information, for expressing constraints, or for solving some problem. This finding explores tradeoffs relating the choice of language to reusability of information. The “Rule of Least Power” suggests choosing the least powerful language suitable for a given purpose.”</blockquote><blockquote>— <a href="https://www.w3.org/2001/tag/doc/leastPower.html">Rule of Least Power, W3C</a></blockquote><p>The Rule of Least Power can extend beyond the languages into approaches, libraries, frameworks, infrastructure, processes and so on. Remember the key point: “suitable for a given purpose.”</p><p>When it comes to simplification, we can go too far and <em>over simplify</em>. Building a monolithic stateful PHP version of Amazon.com might seem more simple and somewhat faster in the development stages, it’s obviously not going to handle a small fraction of your load in production; there’s no server big enough in the world that you’ll be able to run it on to support that traffic. You might as well call that hypothetical ball of mud <em>“The Death Star”</em> because it’s going to destroy your world when it goes live. Even if it doesn’t blow up, best of luck maintaining that ball of PHP mud as it grows over the years to follow.</p><p>You want the Baby Bear’s porridge — not too hot, not too cold. The <em>“You Ain’t Gonna Need It”</em> principle tells us experience shows it’s better to start simple and grow the software as new needs introduce themselves. We learn again and again that our hunches about what is needed and what will go wrong are often wrong. Anyone experienced with performance testing will tell you that the first hunch about what needs to be improved is almost always wrong; it’s only measurement and analysis of a running system in a real environment that provides all of the information required to make the right choices.</p><p>It’s a hard generalization to make that developers should only introduce complexity when absolutely needed. As The Smiths asked, <em>How Soon Is Now?</em></p><p>Your <em>given purpose</em> will highlight what a lot of the bumps in the road will be, and you should certainly plan for them before you get there. As a general rule you’re going to have to deal with a good many unexpected problems as you come up on them. Trying to solve problems before you encounter them could mean you’re trying to solve the wrong problem with the wrong solution.</p><p>Our experience tells us that it’s best to choose the simplest solution you can for your problem today, and adapt to the problems as you start to identify them. Choose the simplest languages, technologies, infrastructure and approaches and grow your software as you begin to better understand the problems in your problem domain.</p><p>Keep it simple!</p><h4>About The Author</h4><p>Jason Goodwin is an expert-level Scala developer, coach, and consultant. Author of <a href="https://www.amazon.ca/Learning-Akka-Jason-Goodwin/dp/1784393002">Learning Akka</a> (Packt Publishing, 2015).</p><p>Jason brings his deep experience building distributed systems that handle hundreds of thousands of concurrent users; expertise hard won at Google through his experience building their ad-insertion video streaming platform, and at Rogers Communications where he leveraged Akka to modernize their heritage architecture and infrastructure.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4d9047e1063" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>