<?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[supa sympa - Medium]]></title>
        <description><![CDATA[Software, design and tech. - Medium]]></description>
        <link>https://medium.com/supasympa?source=rss----91f0ff67f37e---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>supa sympa - Medium</title>
            <link>https://medium.com/supasympa?source=rss----91f0ff67f37e---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 03:03:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/supasympa" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Testing software. What I mean when I say…]]></title>
            <link>https://medium.com/supasympa/testing-software-what-i-mean-when-i-say-f935d6c171a3?source=rss----91f0ff67f37e---4</link>
            <guid isPermaLink="false">https://medium.com/p/f935d6c171a3</guid>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Lewis Barclay]]></dc:creator>
            <pubDate>Tue, 06 Feb 2018 02:37:36 GMT</pubDate>
            <atom:updated>2025-02-04T17:21:17.633Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QEUbRoR06jcdp1a01-Ubdg@2x.jpeg" /></figure><p>Just recently I’ve been trying get a handle on the major terms that are used when people talk about testing software, specifically automated testing. It feels like a lot of the terms are conflated or mixed up or even subjective. So here is a small list of terms with my understanding.</p><h3>Unit tests</h3><p>Tests that exercise “units” of code. Units should be the smallest (sensibly) testable part of a component or application.</p><h3>Integration tests</h3><p>Tests that exercise code, where various modules or components come together to form a cohesive testable group.</p><h3>Functional tests</h3><p>Any test that verifies a system is functioning as the design intended. Including:</p><h4>Smoke tests</h4><p>A simple test to to make sure core operations are working so as not to prohibit a system from operating correctly</p><h4>Regression tests</h4><p>Tests that can be executed repeatedly to make sure things are still working!</p><h3>Acceptance tests</h3><p>Tests that are written to meet a contract or specification (acceptance criteria). These tests exercise a system, application or component, given its context and can target, amongst other things:</p><ul><li>usability</li><li>scalability</li><li>availability</li><li>security</li><li>performance</li></ul><h3>TDD (Test driven development)</h3><p>A process for driving software development where:</p><ol><li>A set of tests are defined</li><li>Tests are executed and fail</li><li>Code is implemented to satisfy the tests</li><li>Goto step 2 and repeat for all failing tests</li></ol><p>TDD is more about evolving the design of code than the testing itself.</p><blockquote>“It’s about building the software right”</blockquote><h3>BDD (Behaviour driven development)</h3><p>A continuation of TDD. BDD tests try to drive business value by defining specific system, application or component behaviours that can be tested, given context.</p><blockquote>“It’s about building the right software”</blockquote><p>Am I right? Where did I get things wrong? Let me know!</p><p><a href="https://www.supasympa.com/">Innovative Digital Solutions for growing businesses — Supa Sympa</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f935d6c171a3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/supasympa/testing-software-what-i-mean-when-i-say-f935d6c171a3">Testing software. What I mean when I say…</a> was originally published in <a href="https://medium.com/supasympa">supa sympa</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Nine steps for successful software teams]]></title>
            <link>https://medium.com/supasympa/nine-steps-for-successful-software-teams-e702b1594588?source=rss----91f0ff67f37e---4</link>
            <guid isPermaLink="false">https://medium.com/p/e702b1594588</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[agile]]></category>
            <dc:creator><![CDATA[Lewis Barclay]]></dc:creator>
            <pubDate>Sat, 27 Jan 2018 07:23:55 GMT</pubDate>
            <atom:updated>2025-02-04T17:21:53.759Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CJqj3lgKRsw5dTDKDNRyjg@2x.jpeg" /></figure><h4><strong>Maintain simplicity</strong></h4><p>With:</p><ul><li>Basic technique</li><li>Simple terminology</li><li>Repeatable recipes</li></ul><h4><strong>Avoid complication</strong></h4><p>By:</p><ul><li>Controlling variation</li><li>Limiting requirements</li><li>Avoiding specialised expertise</li></ul><h4><strong>Control complexity</strong></h4><p>By:</p><ul><li>Reducing relationships</li><li>Limiting interconnections</li><li>Controlling the rate of evolution</li></ul><p><a href="https://www.supasympa.com/">Innovative Digital Solutions for growing businesses — Supa Sympa</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e702b1594588" width="1" height="1" alt=""><hr><p><a href="https://medium.com/supasympa/nine-steps-for-successful-software-teams-e702b1594588">Nine steps for successful software teams</a> was originally published in <a href="https://medium.com/supasympa">supa sympa</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Want productivity? Let your developers pick their tools.]]></title>
            <link>https://medium.com/supasympa/stop-tree-house-developer-tooling-e1a2085d2b56?source=rss----91f0ff67f37e---4</link>
            <guid isPermaLink="false">https://medium.com/p/e1a2085d2b56</guid>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[contracting]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Lewis Barclay]]></dc:creator>
            <pubDate>Mon, 06 Mar 2017 22:27:08 GMT</pubDate>
            <atom:updated>2025-02-04T17:22:39.627Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iIqm2_4zqbP4UG0SsPhPnw@2x.jpeg" /></figure><p>Contracting for a long time has allowed me to move around fairly regularly, probably every six to twenty four months. This means I get to start building software at new organisations often and in turn I get to feel disappointed, nearly as often.</p><blockquote>“We’ve already got your PCs setup”.</blockquote><blockquote>::sigh::</blockquote><p>I don’t enjoy the metaphors that are drawn with construction, but I’m going to use one, in this case:</p><blockquote>Do we think it sensible to find an expensive builder, give them the plans to a tricky extension to build on our house, tell them that they’ve got no more than six months to complete the work and then (here is the kicker) we’re going to tell them that they can only use the old dust covered tools they find stuck at the back of our garage, which no-one remembers quite the best way to use?</blockquote><p>Let me take an educated guess at the outcome:</p><blockquote>Our extension is going to be completed late and it’s going to be shitty and we’re going to hate it.</blockquote><h3>Tree house tooling</h3><p>We’ll all blame the builder for this, of course. We’ll wonder what the hell they were up to, all the while, we were watching them struggle to put up our angular glass backed all-weather extension with tools that were only good to make tree houses, really shitty tree houses that only five year olds would like, and only because they’re related to us! The extension will likely not be anything like the one we were looking for and we’ll want to get it rebuilt almost immediately. We’ll want it rebuilt so much that we will even consider letting the new builders choose the tools they want to use to build it and we might even consider letting them use them in the way that they do on almost every other job. How considerate of us!</p><p>I see this a lot, especially when building products at large organisations. The usual reasons rolled out for the forced use of “tree house tooling” are:</p><ul><li>Security</li><li>Licensing costs</li><li>No one wanting the “Wild West”</li><li>Cost of support and maintenance</li></ul><p>Stop it. Stop it. Stop it. Stop it. These are invented reasons. Invented by individuals who are under pressure to deliver in environments that aren’t progressive enough or sympathetic to modern day development or developers. These same reasons are used to cover up the fact that the organisation can’t embrace modern developer culture at any real scale as doing so would mean; real work, undoing past decisions, work that often goes against almost all the values, rules and regulations that were put in place just before the World Wide Web arrived, the rules and regulations that made the organisation what it is today.</p><p>These are the very same rules that have usually led to the associated IT departments being unable to deliver anything in good time and on time, certainly anything of any level of quality, for the past decade.</p><blockquote>It’s just too progressive to try and solve the real problems so we’ll keep trying to mask the symptoms.</blockquote><h3>Masking symptoms</h3><p>Let’s offshore development to reduce the cost of the extended time it’s taking to deliver sub standard software products or let’s outsource to experienced consultants who must be able to solve the puzzle of “building stuff with our specific tools”.</p><p>STOP IT.</p><p>Let&#39;s all save some time: our extension is still going to be shitty, just different kinds of shitty from different people.</p><p>Okay clever clogs. So what could we do?</p><p>Start by being open minded. Start listening and hearing. Try to understand where the pain points are and accept that, for the most part, this isn’t about unmanageable people not being flexible in their choice of everyday tools.</p><p>Start by changing the organisation so that it can offer; Choice, respect and an appreciation for the maturity that most (experienced) developers have these days. Make this the organisational default.</p><p>Check out GitHub (stop groaning).</p><p>Github promotes a chaotic environment. A place with little rules and regulation where developers are left to organise themselves around a centralised system. Teams have largely found the best ways to manage tooling diversity and promote solid delivery. They based themselves on some good values that offer choice, respect knowledge and appreciate maturity. There’s some good software and people on GitHub!</p><p>I realise I paint a utopian, one sided view of how this should be, without offering much of an insight that I understand the challenges faced on the other side, but generally that’s exactly the position I find myself facing whenever I start some new work. A staunch attitude, a “these are the rules, it’s your problem to solve” approach to developers delivering software.</p><p>I think we’re all capable of change. Let’s try to meet in the middle and see where we get to, hey?</p><p><a href="https://www.supasympa.com/">Innovative Digital Solutions for growing businesses — Supa Sympa</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e1a2085d2b56" width="1" height="1" alt=""><hr><p><a href="https://medium.com/supasympa/stop-tree-house-developer-tooling-e1a2085d2b56">Want productivity? Let your developers pick their tools.</a> was originally published in <a href="https://medium.com/supasympa">supa sympa</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Gamify your developer behaviours to deliver business value]]></title>
            <link>https://medium.com/supasympa/gamify-your-developer-behaviours-to-deliver-business-value-f96c743a4a9?source=rss----91f0ff67f37e---4</link>
            <guid isPermaLink="false">https://medium.com/p/f96c743a4a9</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[scrum]]></category>
            <category><![CDATA[business-strategy]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Lewis Barclay]]></dc:creator>
            <pubDate>Thu, 01 Dec 2016 15:07:27 GMT</pubDate>
            <atom:updated>2025-02-04T17:25:48.163Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VvXKYHQy_qVTPReBz0QUDw.jpeg" /><figcaption>Photo from Pawel Kadysz via <a href="http://unsplash.com/">http://unsplash.com</a></figcaption></figure><p>Modern development teams are almost always goal focused. This is great for making salient outcomes understood and providing a guiding light to the team during an iteration, development phase or Sprint, but what does it do to encourage core practices, that result in potentially a larger value than the outcome of the iteration itself?</p><p>Practices like automation, TDD, BDD, managing technical debt, removing organisation impediments, knowledge sharing, mentoring etc. aren’t often celebrated or encouraged enough as part of product development work.</p><p>So it was interesting to read a little about lead measures and lag goals as part of a book about <a href="http://calnewport.com/books/deep-work/">Deep Work</a> from author Cal Newport.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*zmRx7ydQRs1N2hGwph1Kuw.jpeg" /><figcaption><a href="http://calnewport.com/books/deep-work/">Deep Work</a> from author Cal Newport.</figcaption></figure><p>In the book Cal touches on the <a href="http://www.4dxbook.com/blog/tag/4dx/">4DX disciplines</a> for business management. A set of disciplines that help organisations roll out strategy. One of the disciplines is to “follow lead measures to achieve your lag goals”. The principal is simple. Your lag goal is a high level goal that you’d like to achieve, with your lead measures being a set of behaviours that will help you achieve that goal. Cal describes some rules for an individual to apply, to help develop behaviours that result in an ability to focus, or to perform “Deep Work”. He suggests using the lead measures, lag goals principal from 4dx and <a href="https://en.wikipedia.org/wiki/Gamification">gamifying</a> the process by making a scorecard visible, for an individual looking to achieve “Deep Work”.</p><p>It made me think, maybe a similar approach would work well for Scrum teams, Kanban teams or potentially any development team involved in software delivery, where the secondary behaviours and goals are as important, or more so, to the organisation, than the delivery itself. As I mentioned in a previous post: <a href="https://supasympa.com/get-good-at-software-development-get-out-of-the-classroom-and-fail-33c0fcd8c2d4#.voqyiuxzi">failing has real value</a>. The value of practice and development of an approach is often subtly hidden away in technical practice and discipline, and only as recently as the last five years have things like a <a href="http://itrevolution.com/devops-handbook">DevOps mindset</a> really caught the imagination of big business.</p><blockquote>I propose that it would be possible to adapt this approach to a small development team and in turn reap the rewards.</blockquote><h3>How I would do it</h3><p>Before the beginning of an iteration formalise some lead measures, that are agreed will encourage behaviours leading towards a lag goal, agreed with senior stakeholders. Make them visible, alongside a Scrum board or Kanban board or a publicly visible team area and create a scoreboard with each team member’s name on it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*Axl-5atPZ6GEnkAbS9f3og.jpeg" /><figcaption>Make your scores visible. Encourage team members to compete.</figcaption></figure><p>During daily stand ups, or regular team meetings when some work is completed ask the team member who completed the work to briefly describe examples of how they met the lead measures, while completing the work. Award a single point to the team member, for each lead measure that it is agreed, by the wider team, that they met. At the end of the iteration or at set intervals review the scoreboard and celebrate the team, not the individuals for the “lag goal score”. I’ll leave the detail on how you celebrate up to you!</p><blockquote>The intention is to promote individual behaviours but reward the team for their collective effort.</blockquote><p>Some examples of lead measures that could exist for teams I’ve worked on recently might be:</p><ul><li>Increase automation</li><li>Decrease latency</li><li>Share javascript framework knowledge</li><li>Reduce lines of code by a factor of 10</li><li>Simplify the codebase</li><li>Increase usability</li><li>Decrease our build time</li></ul><p>If you have implemented lead meaures in this way before please let me know by responding to this post. I’m really keen to hear about experiences with rolling out this approach. If you like the idea or the post please click the ❤️ below!</p><p><a href="https://www.supasympa.com/">Innovative Digital Solutions for growing businesses — Supa Sympa</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f96c743a4a9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/supasympa/gamify-your-developer-behaviours-to-deliver-business-value-f96c743a4a9">Gamify your developer behaviours to deliver business value</a> was originally published in <a href="https://medium.com/supasympa">supa sympa</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building software.]]></title>
            <link>https://medium.com/supasympa/building-software-99ab5aa590c7?source=rss----91f0ff67f37e---4</link>
            <guid isPermaLink="false">https://medium.com/p/99ab5aa590c7</guid>
            <category><![CDATA[extreme-programming]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Lewis Barclay]]></dc:creator>
            <pubDate>Tue, 29 Nov 2016 12:24:05 GMT</pubDate>
            <atom:updated>2025-02-04T17:26:34.825Z</atom:updated>
            <content:encoded><![CDATA[<p>Just now, I pulled out a notebook which has two really nice quotes I wrote down while reading about eXtreme Programming, five years ago.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JcONtaOl5_nlhKAIuhtXLQ.jpeg" /><figcaption>Image from Paul Morris via http://unsplash.com</figcaption></figure><blockquote>“The cost of fixing things increases profoundly the longer you wait”</blockquote><blockquote>“Stretching out design just makes the errors cost more, whether found in design or later”</blockquote><blockquote>“The right lesson is to find out right away whether we’ve made a mistake. The best way you do that is to take an idea through analysis, design, code and test in the shortest time possible” — <strong>Ron Jeffries</strong></blockquote><blockquote>“It’s possible to keep the cost of changing software from rising dramatically with time, through:</blockquote><blockquote>Simplicity, communication, feedback, respect and courage</blockquote><blockquote>This forms the values of XP” — <strong>unattributed</strong></blockquote><p>Read more about extreme programming <a href="http://www.extremeprogramming.org/">here</a></p><p><a href="https://www.supasympa.com/">Innovative Digital Solutions for growing businesses — Supa Sympa</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=99ab5aa590c7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/supasympa/building-software-99ab5aa590c7">Building software.</a> was originally published in <a href="https://medium.com/supasympa">supa sympa</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The only correct answer to: should I learn React or Angular 2?]]></title>
            <link>https://medium.com/supasympa/the-only-correct-answer-to-should-i-learn-react-or-angular-2-11f1fc383a4e?source=rss----91f0ff67f37e---4</link>
            <guid isPermaLink="false">https://medium.com/p/11f1fc383a4e</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[web-design]]></category>
            <dc:creator><![CDATA[Lewis Barclay]]></dc:creator>
            <pubDate>Mon, 28 Nov 2016 08:53:51 GMT</pubDate>
            <atom:updated>2016-11-28T11:27:41.678Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*XMns2HKrRSdb9su_vzrtNw.png" /></figure><p>They are different.They provide subtly different solutions.</p><p>Get really good at JavaScript. Frameworks will continue to come and go.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11f1fc383a4e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/supasympa/the-only-correct-answer-to-should-i-learn-react-or-angular-2-11f1fc383a4e">The only correct answer to: should I learn React or Angular 2?</a> was originally published in <a href="https://medium.com/supasympa">supa sympa</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning Javascript ES2015 (ES6): Using *let* and *const*]]></title>
            <link>https://medium.com/supasympa/learning-javascript-es2015-es6-using-let-and-const-79ed4f0856c3?source=rss----91f0ff67f37e---4</link>
            <guid isPermaLink="false">https://medium.com/p/79ed4f0856c3</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[es6]]></category>
            <dc:creator><![CDATA[Lewis Barclay]]></dc:creator>
            <pubDate>Sun, 27 Nov 2016 19:34:58 GMT</pubDate>
            <atom:updated>2016-11-27T20:31:32.525Z</atom:updated>
            <content:encoded><![CDATA[<h3>Learning Javascript ES2015 (ES6): Using <em>let</em> and <em>const</em></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DxyucQtSvbIUV_DgZzuOnw.jpeg" /></figure><p>Javascript is becoming more ubiquitous and mature all the time and facing up to the problems that come along with it; <a href="https://medium.com/@ericclemmons/javascript-fatigue-48d4011b6fc4#.iozt474sb">Javascript fatigue</a> and <a href="https://addyosmani.com/blog/front-end-choice-paralysis/">Front end choice paralysis</a> being just two rather well commentated on subjects right now!</p><p>There are some great things happening too, and one of them is the introduction of ES6 &amp; ES7 — or ES2015 &amp; ES2016 - why can’t we just all call them this from now on? There are some awesome, detailed explanations of the features you can use and how they are supported in and out of the browser from people like <a href="http://www.2ality.com/2016/01/ecmascript-2016.html">Dr Axel Rauschmayer</a>.</p><p>I’m going to go back and revisit the ES2015 features that can be used today (with or without <a href="https://babeljs.io/">Babel</a>) to strengthen my understanding of how these features work. I also want to improve my writing skills. So in an attempt to achieve both at the same time I’m writing down what I learn in a series of short posts.</p><p>First up …</p><h4>Using let and const</h4><h4>Confusing function scoped vars.</h4><p>When we use the <em>var</em> keyword in ES5 the variable is declared and function scoped. So the example below results in some odd behaviour:</p><pre>var bar = 0;<br><br>function doSome(foo){<br>    if(foo){<br>        var bar = 1;<br>        return bar;<br>    }<br><br>    return bar;<br>}<br><br>doSome(false); // undefined  :(</pre><h4>Variable hoisting</h4><p>Variable declarations are processed before anything else in the function scope. So the previous code block makes more sense when written as it is processed, like this:</p><pre>var bar = 0;<br><br>function doSome(foo){<br>    var bar;<br>    if(foo){<br>        bar = 1;<br>        return bar;<br>    }<br><br>    return bar;<br>}<br><br>doSome(false); // undefined</pre><p>This behaviour is known as variable hoisting and is <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Statements/var#var_hoisting">nicely explained on MDN</a>.</p><h4>Hello <em>const</em></h4><p>When we want to declare a constant value, we’re generally looking for <a href="http://www.dictionary.com/browse/immutable">immutability</a>. In ES5, commonly, programmers will define constants through convention, like so:</p><pre>var NOT_SUPPOSED_TO_CHANGE = &#39;foo&#39;;</pre><p>However, it’s just a convention, without enforcing any immutability:</p><pre>var NOT_SUPPOSED_TO_CHANGE = &#39;foo&#39;;<br><br>function changeConstant(val){<br>    NOT_SUPPOSED_TO_CHANGE  = &#39;bar&#39;;<br>    return NOT_SUPPOSED_TO_CHANGE;<br>}<br><br>changeConstant(NOT_SUPPOSED_TO_CHANGE); // &#39;bar&#39;</pre><p>So with the introduction of const in ES2015 we get immutable constants, right?</p><pre>const NOT_SUPPOSED_TO_CHANGE = &#39;foo&#39;;<br><br>NOT_SUPPOSED_TO_CHANGE = &#39;bar&#39; // throws an exception &quot;Assignment to constant variable&quot;</pre><p>This is not the end of the story however.</p><pre>const AM_I_IMMUTABLE = { foo : &#39;bar&#39; }; <br><br>AM_I_IMMUTABLE.foo = &#39;baz&#39;; // &#39;baz&#39; ... WTF!?</pre><p>It turns out that const doesn’t actually mean immutable. It means <a href="https://mathiasbynens.be/notes/es6-const">that the binding of the value cannot be repeated</a> and as explained in the article if you’re looking for immutability you can try <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze">Object.freeze()</a>.</p><h4>Hello <em>let</em></h4><p>As with <em>var</em>, when we bind a value to a variable we expect that its value can change.</p><pre>function foo(val, doFoo){<br>    var iCanChange = 1;<br><br>    function bar(){<br>        if(doFoo){<br>            var iCanChange = 0;<br>            return iCanChange;<br>        }<br>        iCanChange += 5;<br>        return iCanChange;<br>    }       <br><br>    return val + iCanChange + bar();<br>}<br><br>foo(3, false);// NaN    <br>foo(3, true);// 104</pre><p>However, both let and const are <a href="http://www.programmerinterview.com/index.php/javascript/javascript-block-scope/">block scoped</a> which means that you get some rather different results:</p><pre>function foo(val, doFoo){<br>    let iCanChange = 1;<br><br>    function bar(){<br>        if(doFoo){<br>            let iCanChange = 100;<br>            return iCanChange;<br>        }<br>        iCanChange += 5;<br>        return iCanChange;<br>    }       <br><br>    return val + iCanChange + bar();<br>}<br><br>foo(3, false);// 10 <br>foo(3, true);// 104</pre><h4>Explicit block scoping</h4><p>Thanks to <a href="https://davidwalsh.name/for-and-against-let">an article by David Walsh</a> this subject is covered in a lot of detail. To really make your <em>let</em> declarations understandable and explicit you can declare them in <em>naked blocks</em></p><pre>let foo = 99;<br><br>{ let foo = 1;<br>    console.log(foo);<br>}<br><br>console.log(foo);<br>// outputs<br>// 1<br>// 99</pre><p>That’s about all I can find on the subject for now. Onwards.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79ed4f0856c3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/supasympa/learning-javascript-es2015-es6-using-let-and-const-79ed4f0856c3">Learning Javascript ES2015 (ES6): Using *let* and *const*</a> was originally published in <a href="https://medium.com/supasympa">supa sympa</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Get good at software development. Get out of the classroom and fail.]]></title>
            <link>https://medium.com/supasympa/get-good-at-software-development-get-out-of-the-classroom-and-fail-33c0fcd8c2d4?source=rss----91f0ff67f37e---4</link>
            <guid isPermaLink="false">https://medium.com/p/33c0fcd8c2d4</guid>
            <category><![CDATA[software]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[agile]]></category>
            <dc:creator><![CDATA[Lewis Barclay]]></dc:creator>
            <pubDate>Fri, 25 Nov 2016 14:23:31 GMT</pubDate>
            <atom:updated>2025-02-04T17:27:28.812Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uB57GWmA39oBo3U0EXX8NA.jpeg" /><figcaption>Image attributed to: JJ Thomson — via Unsplash.com</figcaption></figure><p>Learning something new is great, isn’t it? Mostly, it is. Given the right environment and scenario. For example, learning to fly a plane is great, if we’re sat in a plane next to an instructor after purchasing some lessons but not so great when <a href="https://www.youtube.com/watch?v=JPWRrICxrKU">sat in a plane effectively on your own with no prior knowledge of how to land it</a>. That takes something else, it takes courage, lots of courage.</p><p>Learning to do anything remotely difficult after our seventh birthday probably involves theory and practice somewhere along the line and the ratio of the two largely depends on the task at hand. Landing a plane on your own without turning it into a jigsaw, for instance, has a defined set of outcomes against which we can measure success; perfect landing, steady landing, bumpy landing and not landing. What level of theory to practical experience is optimal for a chance of success though, taking into account the possible outcomes, consequences and the amount of time we have?</p><p>Airline pilot or not, if we’re gauging success based on a “likely hood of survival”, our landing a plane example, looks to me like there’s a one in four chance of succeeding, all chances being equal. Great! So if I have a three in four chance of succeeding, surely I can just go ahead and try to land a plane two or three times in an attempt to succeed? Well, no, obviously, all the outcomes are not equal and failing once would mean I’d unlikely get to try a second time. The complexity of the task means that the chance of the result being the failure scenario, are likely to far outweigh the sum of the chance of one of the other three successes. It’s difficult to land a plane single handed if you’ve never learnt how to do it.</p><p>When considering undertaking a task the success criteria is important but understanding what the consequences of failure will be, is likely to be more urgent, when it comes to attempting the practical application or use of an idea or method versus understanding the theory behind it. The complexity or difficulty of the task also has to be weighed up however and this is a more difficult thing to determine.</p><blockquote><strong>Complexity</strong> describes the behaviour of a system or model whose components interact in multiple ways and follow local rules, meaning there is no reasonable higher instruction to define the various possible interactions</blockquote><p>I would suggest that, the difficulty of a complex practical task is reduced marginally by extensive theoretical knowledge, but difficulty is reduced dramatically through correct practice. For example, how many flying hours are needed to be a commercial pilot?</p><blockquote>Before, a first officer had to have only a commercial pilot license, which requires a minimum of <strong>250 hours</strong> of flying. The new rule requires the ATP license and the <strong>1,500 hours</strong>. In addition, the FAA now requires a pilot to have at least <strong>1,000</strong> as an airline first officer before flying as captain</blockquote><p>Now, finally getting to my point, I want to (completely hypothetically) make an attempt of simplyfying and describing how practice, or real experience trumps theory and minimal, or no, experience when it comes to software development. To demonstrate, I suggest a naive model where complexity of the task, multiplied by the chance of succeeding quota, divided by the number of attempts, equals a chance of a single success. Where complexity is a range of values from 1 (extremely simple) to ∞, impossible. With this range we’ll suggest a control value of 1000, being our <em>landing a plane with no prior knowledge or experience</em> example. I guess this figure, with no real knowledge of landing planes, but I compared it to peeling an banana: 5 and flying a rocket to the moon: 10,000. This is probably naive, but I needed a place to start, so let’s press on!</p><p>Let’s suggest our method is:</p><pre>cq / a <br>------<br>  1s</pre><pre>Where <em>c</em> is relative complexity, <em>q</em> is a success quota, <em>a</em> is the number of attempts and 1s is (a chance of) a single success. </pre><p>Applying this to our plane landing example:</p><pre><em>(1000 x 3/4) /1<br>---------------<br>      1</em></pre><pre><em>or 0.00133333</em></pre><p><em>That’s a one in 750 chance of success</em>. Not great, given a single failure means you don’t get another go. That is why flight simulators exist!</p><p>Back to software development. In most cases, I expect software development is quite unlike landing a plane, at least the consequences of failure are almost always very different. I’d guess that if landing a plane with no experience has a complexity of 1000, delivering part of an <em>average</em> software project could probably have at least a complexity level of around 100 for a minimal experience team, with some knowledge of computer science theory, and for arguments sake a 5<a href="https://www.projectsmart.co.uk/reducing-risk-increasing-probability-of-project-success.php">0% chance of success quota.</a></p><pre>(100 x 1/2) / n<br>---------------<br>       1</pre><pre>Where n in this case is not a fixed 1 time, but the number of attempts we care to try. Our chances of a success increase with each attempt:</pre><pre>100/2 / 1 = 50 ... 0.02<br>100/2 / 10 = 5  ... 0.2<br>100/2 / 25 = 2   ... 0.5</pre><pre>etc.</pre><p>So a 1 in 50 chance that your software development will succeed if you try once. A 2% chance for every time we have a go. For the sake of this thinking lets say that we’re not building any software that has any terminal consequences, on failure, we can have <em>n</em> attempts. We can just keep trying and trying, with consequences maybe, but no single failure would stop us trying.</p><p>Let us also assume that teams “level up” with practical experience and <a href="https://medium.com/javascript-scene/the-essential-guide-to-building-balanced-development-teams-b051a62acc80#.so637wqfo">the optimal, most experienced team of developers</a>, teams who have succeeded in development on at least ten previous occasions, will succeed 80% of the time on any subsequent project, whereas <a href="https://www.projectsmart.co.uk/reducing-risk-increasing-probability-of-project-success.php">your average team who have only practiced software development ten or more times will succeed around 50% of the time</a>. So to recap:</p><ol><li>A minimal experience team will succeed in 1 of 50 attempts</li><li>An average experience team will succeed 1 in 2 attempts</li><li>An optimal team will succeed 8 in 10 attempts</li></ol><blockquote>If a team starting with minimal experience has 40 attempts at developing some software, we could expect 18 successful deliveries</blockquote><p>The first ten times is unlikely to yield any success (1 / 50 * 10 … 0.2 or zero when rounded), but the team “levels up” to an average team, through their practical experience. The practical experience itself is the value from the first ten attempts.</p><p>The second 20 times has a 50% yield of success, or ten successful attempts, but the team then “levels up” to be an optimal team with a success ratio of 8 in 10, resulting in a yield of eight from another ten attempts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nOl9vcLzzJJxmG3MJgsnrw.png" /></figure><p>From then on in we’re getting a four in five chance of success. Given another ten attempts, that&#39;s eight more successfully developed pieces of software!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SALlfCLzkUDZLzb22ly-dg.png" /></figure><p>This is a simplified view of how things work on even the smallest of software delivery of course and you can argue that giving an arbritray complexity value to a development task proves no theory at all. My rather simplistic and naive suggestion that practical experience alone will end up resulting in a ratio of seven in ten successes at 100 attempts is really only intended as a bit of exploration to illustrate a point that suggests:</p><blockquote>When it comes to non-fatal experiments in low to medium complexity tasks, practice is better than theory</blockquote><p>While this is hardly a revelation I think it aligns nicely with some beliefs I have on building software:</p><blockquote>1. Practical experience counts when it comes to building software and failure IS good experience.</blockquote><blockquote>2. Learning from practice, metrics, feedback and emperical evidence will yield value, it may not result immediately in success, but it still has value. Do it.</blockquote><blockquote>3. Make your development increments as small as is sensible, so that your team builds up a broad but thin set of practical experience to build on, quickly</blockquote><blockquote>4. Don’t move developers on to other roles too quickly. Experience is worth its weight in Californium 252</blockquote><blockquote>5. Whatever the chances of success, a good amount of courage might just get you over the line when all else fails!</blockquote><p>This article is here to be digested, ripped up, torn apart or appreciated. Mostly it’s here to start some discussion. Please do so by commenting below or clicking the ❤️</p><p><a href="https://www.supasympa.com/">Innovative Digital Solutions for growing businesses — Supa Sympa</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33c0fcd8c2d4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/supasympa/get-good-at-software-development-get-out-of-the-classroom-and-fail-33c0fcd8c2d4">Get good at software development. Get out of the classroom and fail.</a> was originally published in <a href="https://medium.com/supasympa">supa sympa</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My 30 second advice to young software engineers]]></title>
            <link>https://medium.com/supasympa/my-30-second-advice-to-young-software-engineers-fd2b4ab8a386?source=rss----91f0ff67f37e---4</link>
            <guid isPermaLink="false">https://medium.com/p/fd2b4ab8a386</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[careers]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Lewis Barclay]]></dc:creator>
            <pubDate>Wed, 23 Nov 2016 12:18:19 GMT</pubDate>
            <atom:updated>2016-04-30T07:07:06.208Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-nc-nd/4.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G-TvVZBW94q5gDWXeX6L_w.jpeg" /></figure><p>I love my job but I often hate the way I have to complete it. Here is my 30 second advice to any young programmers / software engineers or developers (who probably know more about Elixir than I do already).</p><ol><li>Always keep learning, technology moves at a ridiculous pace, you owe it to yourself to keep up.</li><li>The programming is only part of what you do, the thinking understanding and discussing is equally, if not more important — practice it all relentlessly.</li><li>People may find it hard to be impressed with your demonstrations, don’t worry, try to understand them and keep going.</li><li>You don’t have to aspire to move into a management job, the world currently needs more and more great software engineers, keep working at being great, if you love it.</li><li>The debates about types, syntax, frameworks are often just developer fluff to pad out the day, quality delivery is more important than any of it.</li><li>Books are great, first hand experience and mentors are often greater.</li><li>Don’t be afraid to have crazy ideas, build them.</li><li>There will always be better programmers than you …</li><li>… sometimes the best programmers are wankers, great teams rarely put up with wankers for long.</li><li>You probably belong to one of the first generations where it wasn’t regarded completely nerdy to do what you do. Enjoy it.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd2b4ab8a386" width="1" height="1" alt=""><hr><p><a href="https://medium.com/supasympa/my-30-second-advice-to-young-software-engineers-fd2b4ab8a386">My 30 second advice to young software engineers</a> was originally published in <a href="https://medium.com/supasympa">supa sympa</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ten principles of good code]]></title>
            <link>https://medium.com/supasympa/ten-principals-of-good-code-e6bb79c5159d?source=rss----91f0ff67f37e---4</link>
            <guid isPermaLink="false">https://medium.com/p/e6bb79c5159d</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Lewis Barclay]]></dc:creator>
            <pubDate>Wed, 23 Nov 2016 12:18:10 GMT</pubDate>
            <atom:updated>2016-08-25T07:33:12.884Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-sa/4.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-9la3spikBP60h27GzU-2w.jpeg" /></figure><p>Dieter Rams’ ten principles of good design is awesome. This is my attempt at “ten principles of good code”.</p><p>The intention, as with Rams’ list for design, is that value is identified by the principles working together, not in isolation. So whilst point ten is valid, it shouldn’t be followed to a degree that points one or two, for example, struggle to form (thanks Seb Wells for making me clarify).</p><h3>1. <strong>Good code is simple</strong></h3><p>The four words that prompted me to write this came from an article by <a href="https://medium.com/@_ericelliott">Eric Elliott,</a> probably my current favourite commentator on the state of JavaScript.</p><p>I think more than anything else code has to be simple. Complicated code is great for the chosen few to ponder over but simple code is easily understood by all readers. If you want to keep secrets then magic is what you should undertake, not programming.</p><h3>2. <strong>Good code is readable</strong></h3><p>To restate the point above, good code should be understandable to all readers. Code is not written just to be executed. Every line should be written for a practical reason but in practice code will be read by others so it’s essential that it is readable. It should make sense; naming conventions, indentation, semi colons etc should all be part of a sensible grammar that increases readability.</p><h3>3. <strong>Good code is testable</strong></h3><p>Testing code has occurred as long as code has been written. Every time we execute a line of code and review its effect we are testing it but this shouldn’t be the only way code is tested.</p><p>Writing code that is testable makes it malleable, it makes it easier to refactor and writing tests often documents the intention of the code.</p><h3>4. <strong>Good code is self documenting</strong></h3><p>Self explanatory. That’s what every line of code should be.</p><p>Comments and external documentation are useful for the right situation but they are not an alternative to well written self documenting code.</p><h3>5. <strong>Good code can be refactored</strong></h3><p>Refactoring is changing the implementation without changing behaviour. You cannot truly refactor without tests to prove that the behaviour hasn’t changed.</p><p>If you have a public interface, then making a change to the code, in such a way that the public interface changes, that is not refactoring, it’s rewriting.</p><p>Code that can truly be refactored is code that can be improved with less effort. Code that can be improved with little effort is good code.</p><h3>6. <strong>Good code is specific</strong></h3><p>Good code “blocks” have a single responsibility, they should do one thing and do it well.</p><h3>7. <strong>Good code is shared</strong></h3><p>There will always be better programmers than the one who wrote the lines of code, there will eventually be better solutions, the best way to improve code is to share it and accept change through sharing.</p><h3>8. <strong>Good code is safe</strong></h3><p>Code that is reliable, predictable and honest is safe. Safe code offers assurances and assurances offer security.</p><h3>9. Good code is transient</h3><p>Code that is shared and that can be refactored can be improved. If it can be improved, it should be improved and is therefore transient.</p><h3>10. <strong>Good code is as little code as possible</strong></h3><p>Finally, and a final tip of the hat to Dieter Rams, good code is as little code as possible.</p><p>Maintaining ten lines of code rather than one is usually ten times as costly. More code often takes more time to understand and almost always more code means it is more complicated.</p><p>— —</p><p><em>Comments, amendments, criticism and feedback welcome!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e6bb79c5159d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/supasympa/ten-principals-of-good-code-e6bb79c5159d">Ten principles of good code</a> was originally published in <a href="https://medium.com/supasympa">supa sympa</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>