<?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 Kevin Timmins on Medium]]></title>
        <description><![CDATA[Stories by Kevin Timmins on Medium]]></description>
        <link>https://medium.com/@kipper_t?source=rss-b7c797501c4a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*9SpyKzc5QJZ67roh1ZgPVg.png</url>
            <title>Stories by Kevin Timmins on Medium</title>
            <link>https://medium.com/@kipper_t?source=rss-b7c797501c4a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 25 Nov 2026 01:18:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kipper_t/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[TDD is dead, long live TDD]]></title>
            <link>https://medium.com/socralogic/tdd-is-dead-long-live-tdd-e76467d30896?source=rss-b7c797501c4a------2</link>
            <guid isPermaLink="false">https://medium.com/p/e76467d30896</guid>
            <category><![CDATA[bdd]]></category>
            <category><![CDATA[clean-code]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[test-driven-development]]></category>
            <dc:creator><![CDATA[Kevin Timmins]]></dc:creator>
            <pubDate>Sun, 17 Jun 2018 19:31:28 GMT</pubDate>
            <atom:updated>2018-06-17T19:31:28.329Z</atom:updated>
            <content:encoded><![CDATA[<p>TDD is test driven development. If you don’t know what this is then please go <a href="https://en.wikipedia.org/wiki/Test-driven_development">here</a> as a starting point and then read <a href="https://amzn.to/2K47i4K">this book</a> as an excellent starting point to get introduced to it if approaching it from scratch, you can also watch me doing some TDD <a href="https://www.youtube.com/watch?v=Li-omXFK9NE&amp;list=PLBwHb8bunj7jbtKF0jrSm_50N-AXhfFVV&amp;t=0s&amp;index=3">here</a>.</p><p>I’m going to tell you why for me TDD is dead, and why I think it is the most important thing for every developer to learn. I will rationalise with experience and sound pedagogical theory at the end.</p><p>TDD is an absolute must have for every developer. It is a process of writing code through doing tests first. Usually it is done by writing a really basic unit test and then writing the minimum amount of code to make that pass.</p><h3>What’s so good about it?</h3><p>TDD serves multiple purposes:</p><ol><li>It is a great tool for learning a language as it breaks down problems into small bitesize chunks</li><li>It is a great tool for figuring out a complex piece of code by behaviour</li><li>It is a fantastic guarantee of tested code when followed religiously</li><li>It is a support blanket when facing new code as it allows you to assert certain behaviour and ensure you don’t destroy that</li><li>It is brilliant at helping you build your competence with a language</li><li>It is essential to helping you think about code in the right way</li></ol><p>There is no doubt about it, TDD is an absolute must have, it’s brilliant and is something that any developer even remotely worth their day rate should know how to do. It is near impossible to over state the benefits that TDD brings…</p><h3>But! And it’s a BIG BUT!</h3><p>This is all well and good for junior and even professional developers, within the language that they are doing. However, for seasoned craftsmen (in this context this means man or woman) it is and must be a choice to do rather than a necessity. If you are not a seasoned craftsman in the language you are using, and you will know in your heart if you are or not, then I strongly encourage you to always do TDD. However as you become more of a seasoned craftsman you will start to see some of the issues it presents, you will start to find it fails you at the most critical point in time, you will understand the intention and ideas behind TDD sufficiently to achieve those in improved ways.</p><p>This isn’t an elitism thing, this is just how learning a new thing goes, as you become more experienced at something you build an intuition as to what you can and cannot do, you understand the intention. Whilst a strict formula is a great way to start, the formula’s purpose isn’t to be the be all and end all, it is merely a tool to build your understanding of the underlying principles. This is how it is with pretty much everything. The reason we don’t go for those more intuitive ways of working from the get go? We lack context and we lack experience of which signals to watch out for in order to change our way of working. There is no way to teach or learn this beyond time served.</p><p>The approaches I take when writing new code is to essentially use almost pseudo-code, but in the IDE, in the language I’m writing the software in. I write it in a meaningful way and I write it with all the correct abstractions that I think should be there. The code won’t compile at this point, and that’s absolutely fine, it’s not meant to. It’s a first draft, it’s quick, and it has two purposes:</p><ol><li>Capture the business flow I want in code</li><li>Generate the first pass at abstraction layers and delegation layers</li></ol><p>I will tweak this until I am happy with it and think that it is going to result in the cleanest code I can create. This psuedo-code is very much written like English, I want someone from the business to be able to read this code and for it to make absolute and complete sense to them. They may not understand the syntax, but the words that I’ve used should correctly and clearly capture the business function.</p><p>At this point I tend to build the implementation, creating whatever additional classes are required to handle the technical aspects but fundamentally keeping the business flow. It is at this point that I will start to put some unit tests in where I think is appropriate.</p><p>Another approach I take is to write the implementation doing TDD in my head, this lets me get the implementation down as fast as possible and then I go back and put in the unit tests that it needs. This can only be sustained for short bursts of about 45 minutes, but it’s incredibly valuable as it allows me to fully express the business functionality clearly without deviating to writing a load of tests and losing context.</p><p>The biggest problem TDD presents when writing code at this level is not that it slows you down, but that it breaks the thought flow, and breaking the thought flow is very costly as you have to continuously rebuild your context.</p><p>An alternative to TDD is BDD (Behaviour Driven Development). A good way of viewing the difference between TDD and BDD is that TDD tests the technical implementation whereas BDD tests the business requirement. Fundamentally, the tests created using BDD are significantly more valuable than those created with TDD, however they can be slow to execute and slow to write.</p><p>I hope here I have given a flavour of the reason why TDD is absolutely essential to every developer, and at the same time provided enough reasoning to establish the need to move beyond TDD into a more intuitive approach.</p><p>What do you think? What is your experience with TDD?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e76467d30896" width="1" height="1" alt=""><hr><p><a href="https://medium.com/socralogic/tdd-is-dead-long-live-tdd-e76467d30896">TDD is dead, long live TDD</a> was originally published in <a href="https://medium.com/socralogic">SocraLogic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Composition Vs. Inheritance]]></title>
            <link>https://medium.com/socralogic/composition-vs-inheritance-fce4a48bf1de?source=rss-b7c797501c4a------2</link>
            <guid isPermaLink="false">https://medium.com/p/fce4a48bf1de</guid>
            <category><![CDATA[composition]]></category>
            <category><![CDATA[code-quality]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[inheritance]]></category>
            <category><![CDATA[clean-code]]></category>
            <dc:creator><![CDATA[Kevin Timmins]]></dc:creator>
            <pubDate>Fri, 15 Jun 2018 20:39:58 GMT</pubDate>
            <atom:updated>2018-06-15T20:39:58.802Z</atom:updated>
            <content:encoded><![CDATA[<p>I received an email from a friend of mine recently who was asking for my opinion on Composition Vs. Inheritance. My friend had just come across the phrase “favour composition over inheritance”. Now my friend said something interesting that I perhaps hadn’t considered or appreciated before, he said “…I am struggling to understand how one can be compared to the other…”. Now, at first glance this looks simple, but actually, I stopped and thought about it. How can they be compared to one another? In this post I state that they are not comparable as they solve fundamentally different problems. I assert that whilst inheritance can be used to solve the problems composition solves, that is a side effect of inheritance.</p><p>I was going to do an aside here about my views before and after replying to my friend, but honestly, that’s the post. Suffice to say, my viewpoint has not changed, my reasoning behind my viewpoint has increased and developed significantly.</p><p>Let’s have a few brief definitions first, these are simplified and I’m not going to go into too much detail here.</p><h3>Inheritance</h3><p>Inheritance is where a class either extends another class or abstract class, thus obtaining it’s set of behaviours and state and being classed as a version of that. Or it is where a class implements an interface (contract) which defines which behaviours should be expressed and leaves the implementation down to the implementing class. An example is in a game, an NPC would implement a character which has abilities such as movement and state such as health or stamina.</p><h3>Composition</h3><p>Composition is where a class has various class level variables of other types. The class then calls these variables and delegates certain behaviours to them. An example of this can be found in pretty much any business software such as web services, there would be a class listening on an endpoint which would delegate to various other services which in turn might delegate to database access classes or various other classes.</p><h3>What problems do they solve?</h3><p>So, in what way wouldn’t these be comparable? Let’s consider the problems that each solves.</p><p>Inheritance fundamentally addresses the problem of heredity and ancestry, it also addresses the problem of classification and grouping, a good example of this is in Biology and Zoology.</p><p>Composition on the other hand deals with the problem of needing to isolate different behaviour to things dedicated to that behaviour. Why would we even do this? Let’s look at how composition came about. In the beginning there was a single master file, in this file was a massive sequence of code which ran. There were goto’s and breaks everywhere to try and direct the execution to a different piece of code. This was complex, difficult to read and left many developers thinking wtf. Then there were functions, ways of splitting out different behaviour into small readable blocks which were easy to reference, we were able to classify and group our code into something meaningful, for example a function to calculate interest in a consistent and standard way. Then we started grouping these into separate files, again to make it easy to read and understand, and eventually somewhere in there, for OOP at least, classes were defined and developed.</p><p>Composition is about making code easy to read and providing a single source of truth for key business functionality.</p><p>Inheritance is about indicating ancestry and heredity and ensuring that derivatives of one thing behave in similar ways.</p><h3>So what’s the problem?</h3><p>The problem is that it is possible to achieve an element of composition using inheritance. Inheritance is able to bestow a class with certain behaviours in the same way delegation does. The issue is that this is no guarantee of addressing the problems that composition solves, single source of business truth and ease of readability through compartmentalisation of the code. So why do developers often choose inheritance when they should be using composition?</p><p>There are a few reasons for this:</p><ol><li>Taught incorrectly about the two</li><li>Bored and wants to do something fun</li><li>Ego stroking</li></ol><p>The first reason is plain and simple, being mistaught leads to life time habits that are hard to break.</p><p>The second reason is where things get interesting. Let’s be honest, once you’ve written your 200th CRUD system or 500th REST API, things are gonna get boring, it’s all the same you see. Controller -&gt; Service -&gt; Repository. That there is the basic pattern to solve pretty much 70% of the problems that business have, between each one there is a mapping layer to translate from one form to another and in the service there will be some business logic which sets certain state based on certain rules. There is nothing interesting here, there is nothing fun here, it’s all boring (and that’s good!). A suitably senior developer needs to stretch their legs, they need to play and they need to be learning, that is the life of a Software Developer. So what is a developer to do when they’ve solved the problems and are just cranking out the same stuff? They play, the do inheritance. I’ll be the first to admit, creating a sexy framework using inheritance and having it so extensible that it’s almost like magic is happening is really fun! Like seriously fun, it satisfies a certain need to create complex and elegant systems out of nothing, it requires a level of intelligence to follow and understand, and that makes us feel good. It makes us feel like we are truly Software Engineers. The problem is that it’s just over complex for the situation. The solution being built doesn’t need a framework, it doesn’t need all the inheritance. Developer feelings are not the purpose of products.</p><p>The third reason is an extension of the second, except that a developer does it to show off, purposefully making it difficult for other developers to read so that the original author can feel clever. If you are this person, then on behalf of every developer everywhere please accept my sincere thanks, and now please fuck off somewhere else and ruin someone else’s productivity with your pompous technical masturbation.</p><p>There are probably more reasons why a developer uses inheritance when they should use composition, if you know one then please comment below. If you’d like to object to the last paragraph then also, please comment below.</p><h3>Help me choose</h3><p>I have some simple rules that I apply which help me determine whether or not the situation truly calls for inheritance rather than composition. If one of these rules is met then inheritance is on the table as an option, if not then it’s not.</p><ol><li>If I use an interface then I must never, ever, care about the order in which the implementing classes run. I must never need to cherry pick only one type of that interface and I must never need to cast to different objects depending on which implementation of that interface I am dealing with.</li><li>If I use an abstract class or an interface then I should always, without exception, be able to substitute any other implementation of that in to achieve the same desired outcome. I should never care which one is substituted in.</li></ol><p>There are some consequences of these rules which should give you an idea as to whether you are doing the right thing. These correspond with the associated rule number above.</p><ol><li>I probably have some kind of list/set that I iterate over in an unordered way, I never care about the implementation and I never try and impose accidental order such as by placing one thing in the list first (the very instant I do this then I’ve misapplied the interface and it shouldn’t be there at all)</li><li>I’m building some kind of generalised framework, in which case the framework should be able to be a stand alone library completely external and it should not change due to business rules. The library should be applicable to multiple different software instances and projects.</li></ol><p>In the case of 2, if it’s something like an interface on top of the DB access then that simply doesn’t wash with me. It’s just completely unrealistic! The excuse often used here is that you might want to change the underlying database at any point. Honestly! This is never, ever, ever going to happen, and if it does then the chances are you will need to change a load of code anyway, all this does is add extra complexity to consider!</p><p>These days we live in microservice territory which means the need for frameworks should be zero within an individual microservice. A good rule of thumb I apply is that if a microservice is done well and understood well (implements a discrete vertical slice of well known business functionality) then it is cheaper to rewrite it than it is to refactor it. This unfortunately means that most of the OO rules we have go out of the window as they are just overkill for what we are trying to do.</p><p>I’m fairly passionate about all of this, mostly because all of these things are things I’ve discovered the hard way through my own coding. I used to be a major proponent of using inheritance all over the place, but as I’ve become better at what I do and as I’ve experienced more I now code for human readability. If code looks astoundingly easy to refactor then it’s probably really good code and shouldn’t be refactored because there is no refactoring that can be done to improve how easy it is to read that code. The compiler does all the optimisation these days and most software get’s double compiled through various forms of bytecode and JIT compilation, optimising for the computer just isn’t required, and if it is then it’s not usually solved by things like OO, but through things like pooling and caching.</p><h3>Conclusion</h3><p>To conclude, my friend is right, inheritance and composition should be comparable, they solve fundamentally different problems. But because you can achieve the effects of composition using inheritance, inheritance get’s misused. So it’s less about choosing between the two, but more about understanding the two different problem domains they solve and using the appropriate tool at the time. I suppose a good analogy would be using a laptop to hammer a nail in, this is equivalent of using inheritance to do the job of composition, it’s costly, messy and just not right.</p><p>If you want advice or an initial free consultation on some of this stuff and some of the problems that you’ve got with code quality within your business then please get in touch: hello@socralogic.co.uk is the email you need, drop me a mail and I will get back in touch with you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fce4a48bf1de" width="1" height="1" alt=""><hr><p><a href="https://medium.com/socralogic/composition-vs-inheritance-fce4a48bf1de">Composition Vs. Inheritance</a> was originally published in <a href="https://medium.com/socralogic">SocraLogic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Agile — The dream that was…]]></title>
            <link>https://medium.com/socralogic/agile-the-dream-that-was-d2cdcafc2d95?source=rss-b7c797501c4a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d2cdcafc2d95</guid>
            <category><![CDATA[agile]]></category>
            <dc:creator><![CDATA[Kevin Timmins]]></dc:creator>
            <pubDate>Sat, 09 Jun 2018 19:58:50 GMT</pubDate>
            <atom:updated>2018-06-09T19:59:47.215Z</atom:updated>
            <content:encoded><![CDATA[<p>“We aren’t being very Agile…”</p><p>I love this statement, it encapsulates everything that is wrong with Agile. Well, kind of. It encompasses everything wrong with the interpretation and <em>implementation </em>of Agile. I bet you’ve read a lot of articles about the perils and pitfalls of Agile, I bet you’ve read until you are blue in the face in the hopes that you’ll get a glimmer of hope, a sign of what might be a good thing to try next, ways of motivating your team, your business, your senior stakeholders, your managers and maybe even your board to understand and adopt Agile and be as pure as possible because <em>that’s when Agile really works…</em></p><p>Yada yada yada, or to be a bit geeky, “Dilly dally, shilly shally” (Tifa, Final Fantasy VII : Advent Children — fantastic film btw, absolutely love it).</p><p>So, in the mortal words of Monty Python, “And Now for Something Completely Different”.</p><h3>What are we actually trying to achieve?</h3><p>Every attempt at implementing Agile is founded for one of several reasons. One is to deliver software faster, another is to deliver business value faster, another is to help with hiring and another is to keep up with the Jones&#39;s.</p><p>Here is the thing though, Agile is the result of a process. Now I don’t mean that it’s a long process and eventually you’ll be Agile. I mean, quite literally, that the very origins of Agile came about from a process that some clever people followed and the result was the Agile manifesto. It is the end product as they saw it, and, like many Software Developers like to do, they generalised the solution so that it was re-usable. But there is a problem with this, you see, like most code, generalised and abstracted just means more hassle and trouble down the road because it’s never possible to generalise and abstract technical function in order to meet none generalised and abstracted business requirements. I could go into this more, I won’t here because it’s off topic, but hopefully it’s set enough of the scene and context for me to continue.</p><p>I’m going to outline to you the process which was applied, whether they realise it or not, and hopefully convince you that if you follow this process too then you will figure out what to do within your business/team/partnership/relationship in order to solve the problems which exist and meet the goals you choose to set.</p><h3>The methodology</h3><p>Acronyms are fun so I present for your consideration OIPOI. It sounds suitably wonderful and a little bit catchy so I’m happy to roll with it.</p><p><strong>O</strong>bserve and Measure<br><strong>I</strong>mpact Analysis<br><strong>P</strong>roblem and Context<br><strong>O</strong>ptions Shortlist<br><strong>I</strong>mplement Cheapest High Hitter</p><p>This is a cyclical thing, I’ll go through each of the steps in turn to provide depth of context but there are some other things, or themes, we need to establish first.</p><ol><li>Culture</li><li>Goal</li><li>Metrics</li></ol><p>I like to think of these as themes which provide context to the cycle we follow of OIPOI.</p><p>As an example, in a business where the team just isn’t delivering anything then we might establish the following themes for the context:</p><ol><li>Culture — Happy team delivering work</li><li>Goal — Projects get finished</li><li>Metrics — Features usable by users, features worked on, tasks which are sent back</li></ol><h3>The Deeper Dive</h3><p>Is that it? No, each of these areas requires a lot more depth of discussion but I will summarise here for brevity.</p><p>Culture is going to be key to establishing stamina and maintaining pace. It is the vibe of the team, the red tape they experience and directly relates to the chances of having that team cycle at inopportune times. (As an aside, your team will cycle, but teams with a healthy Culture will have longer cycle times and will recover rapidly).</p><p>Goal is a description of what you are actually trying to achieve. It is likely to be financial in nature, but could be something more micro if you think it is appropriate.</p><p>Metrics is probably the most important piece, without it you have no idea whether you are achieving what you want. You will be flying blind and you will have no idea whether that’s good or bad.</p><p>You should look to re-assess, and I mean genuinely re-assess these 3 themes every couple of OIPOI cycles. Do they still make sense, are they relevant? If not then change them, that’s the point of this.</p><h3>OIPOI</h3><p>So, OIPOI, it really does just roll off the tongue doesn’t it!</p><p>Observe and Measure, I start with this because it forms the backbone of everything that you are going to do for the rest of the cycle. OIPOI in it’s very essence has to be based upon facts and figures, this is why Metrics is the most important piece of the puzzle. Once you have established your key Metrics then you need to start observing and measuring. You are looking for opportunities where your Metrics could be measured, either negatively or positively, and you need to observe what happens to produce either the negative or positive impact that occurs. Now this is important, as you do this you are going to discover that your chosen Metrics aren’t quite right, do not resist the urge to change them, it is perfectly fine to change your Metrics at this point and repeat the observe and measure step. For example, you may discover that your chosen Metrics are all positively impacted, and yet you are not achieving your culture or goal, this means that you haven’t quite got your Metrics correct. Alternatively you may discover there are few or rare opportunities to capture measurements for your metrics, this indicates that the chosen Metric is too big, it’s too far removed and, although it is a good measure for the goal or culture, you probably need a more micro metric to observe and measure. This is the opportunity to start digging deeper, you are getting your first glimpse of the underlying problem and you are about to focus your lens closer to the observables which will ultimately help you solve your problem. For example, you may choose to measure how many times a piece of work needs re-ellaborating, or how many times team focus shifts. These could be good metrics to arrive at.</p><p>Once you have observed and measured then you will do an Impact Analysis. This step is about taking the observations and forming impact statements to help you focus in on the problem. For example, new high priority requirements were brought to the team 4 times in the last project iteration which meant the team had to re-prioritise and refocus and so nothing was delivered. Or, each task, on average, was elaborated 3 times causing lost time and effort and causing nothing to be delivered. These are fantastic pieces of impact analysis statements, they are the result of very careful measurement for well defined metrics which directly relate to whether the goal and or culture is achieved.</p><p>Problem and Context, at this point, based upon sound data within the context of our metrics, goal and desired culture, we can attempt to establish the problem and context. We don’t need to be extremely accurate here, we just need to attempt to refine whatever understanding of the problem we currently have is so that we get a sense of it getting more accurate. For example, in the impact statement of the team re-prioritising we could say that the problem is that the business doesn’t have a clear priority of what is required to deliver value, or we could say that the team doesn’t have a clear understanding of what the business priorities are. The context component of this may be that the goals and culture that we have set are incorrect or out of line. An indicator that you need to revisit your goal and culture is that everything feels like it’s lost relevance or meaning, this is the time to reflect on these and change them based upon what you have so far discovered and achieved.</p><p>Options Shortlist is where you come up with some of the different options available to you to move forward and progress the problem. Try not to get too caught up here, allocating 2 periods of time, a 2 hour period followed by a 30 minute period after a break of an hour or more (maybe even a day) should be enough. In the 2 hour period you should attempt to come up with the different options available to you, go crazy dream big, flesh out a little detail, but not much. The 30 minute period is where you look at what options you came up with and assess whether they still make sense now that your brain has done some processing in the background. For example, to address the problem of the business not having a clear priority, we could have the following options:</p><ul><li>Team push back on each new priority that comes through</li><li>Mandate that the iteration can never be reprioritised without authorisation from a single senior stakeholder (I’m talking C-level senior here, someone with some weight behind them to diffuse pressure)</li><li>Require that stakeholders present evidence of agreement from other stakeholders accepting the reprioritisation</li><li>Get all key stakeholders in a meeting to establish the top priority for the next iteration</li></ul><p>There could be many more possible options. As you can see, some of these are within the team, some are external. In the 30 minute session you will likely look at these and think that some aren’t relevant or achievable, and that others really are on the money. Prune this list and try and come up with a complexity to value measure for each (purely relative) i.e. this is cheap but low value, this is expensive but moderate value, this is a little costly but has high value potential. You are looking for more of a gut feel thing here, consult a couple of other people if you feel like it. You don’t want to be overly detailed, you don’t want to agonise over it to the smallest measure, just a vague gut instinct, if it doesn’t work out, you’ll be trying something else before you know it.</p><p>Implement Cheapest High Hitter is the part of the process that takes the option from your shortlist which looks like the thing to do and then do it. It’s probably something relatively cheap to implement but which represents a lot of value. You may want to shortlist this even further to identify your top two or three candidates and then choose the one which looks to have the best chance of success. Once you’ve found it then you need to implement it. You may find that it’s impossible to implement straight away, you may need to negotiate to implement and you may even need to sell your idea to a few people to get them on board. Use your best judgement, if it’s too difficult and there is something else which looks like it could deliver similar levels of value but through an easier route then feel free to switch, however, don’t just opt for something much easier that delivers significantly lower value, that is just putting the cost off for longer. The only real thing you can change here is cost of effort, and that should really go down as you refine your options. In terms of identifying enough value, try and find something which as a minimum will look to have a noticable impact on your Metrics. If it doesn’t then you will never know if it’s helped.</p><p>At this point you start the cycle over again and keep doing so until there is another issue which is higher priority.</p><p>The results of this process will be the way of working adopted by your company/team/whatever. It will help establish the culture you desire. Certain Agile methodologies may well be the result of this, but equally they may not.</p><p>This is the entire point right, up until now everything has been fed as a defacto finished solution, a silver bullet. But ask yourself, since when did the one size fits all thing ever work? What I have presented here isn’t a solution, it isn’t a product, it is merely a method of inquiry, questioning, observing and making educated change in order to solve problems that you discover. It can be applied at the macro level and micro level equally. I’m not saying that having a daily standup is going to fix all your problems, in fact I’m not saying to do a standup at all, instead I’m saying consider whether it would help based upon your key Metrics, Goals and Culture and then test it, experiment, observe and change.</p><p>If you need proof of whether this process works or not then I encourage you to consider it in a different light. This process has been used since the birth of the human species, and probably before that tbh. It is in essence the methodology of an inquisitive mind and the backbone of science. The difference is that it has been redressed for more every day use.</p><p>OIPOI is presented as a tool that you are completely free to use. If you would like advice, suggestions or consultation then please contact me through oipoi@socralogic.co.uk</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d2cdcafc2d95" width="1" height="1" alt=""><hr><p><a href="https://medium.com/socralogic/agile-the-dream-that-was-d2cdcafc2d95">Agile — The dream that was…</a> was originally published in <a href="https://medium.com/socralogic">SocraLogic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Filters, properties or hard coded]]></title>
            <link>https://medium.com/socralogic/filters-properties-or-hard-coded-165f35babe9d?source=rss-b7c797501c4a------2</link>
            <guid isPermaLink="false">https://medium.com/p/165f35babe9d</guid>
            <category><![CDATA[microservices]]></category>
            <dc:creator><![CDATA[Kevin Timmins]]></dc:creator>
            <pubDate>Fri, 02 Feb 2018 08:41:13 GMT</pubDate>
            <atom:updated>2018-02-02T08:41:13.136Z</atom:updated>
            <content:encoded><![CDATA[<p>This is an interesting one which has recently come up.</p><p>There is a microservice which requires some kind of filter in order to manage volume and scale up. Essentially to start with it should only process a subset of things and gradually process more things. In order to decide on what it should process there are some properties on the thing being processed which can be used to filter them in or out of being processed.</p><p>The challenge is, where do you put the filter contents. I.e. where do you specify the combination of inclusion properties so that the code does or does not filter the message.</p><p>There are two options:</p><ol><li>Hard code them in the application</li><li>Set application properties which need to be set in the pipeline</li></ol><p>The filters will gradually be increased over a period of time until the service is operating over everything. At no point will there be a desire to chop and change them between environments and to scale back or anything in the future. It is just for the transition period.</p><p>From people I’ve been speaking to so far there seems to be a lot of favour with option 2 because then it’s possible to just bounce the live boxes without having to run through the pipeline, and then just change the pipeline and redeploy the pipeline in order to make sure the filter isn’t regressed.</p><p>I’ve found very few people, from the 2 or 3 that I’ve spoken to, who are in favour of option 1.</p><p>Now, I am very much in favour of option 1. It feels wrong to me to have to pollute lots of different places with knowledge about this type of ‘configuration’, if it can be called that. It also feels like there is an extra opportunity for an error or mistake to occur and potentially to have not had the environment fully controlled by the standard release process.</p><p>It’s a fascinating one. Personally I’d go for option 1, but I may have to sway to popular opinion just to keep people happy as I can’t seem to provide a sound enough argument as to why option 1 is better than option 2.</p><p>For what it’s worth, were this to be used for an AB testing scenario where things are changed frequently then I would probably move it all to the DB and create some kind of nice interface which helps drive that.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=165f35babe9d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/socralogic/filters-properties-or-hard-coded-165f35babe9d">Filters, properties or hard coded</a> was originally published in <a href="https://medium.com/socralogic">SocraLogic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Project Board]]></title>
            <link>https://medium.com/socralogic/a-project-board-78784c31620f?source=rss-b7c797501c4a------2</link>
            <guid isPermaLink="false">https://medium.com/p/78784c31620f</guid>
            <category><![CDATA[scrum]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[it-project]]></category>
            <category><![CDATA[kanban]]></category>
            <category><![CDATA[project-delivery]]></category>
            <dc:creator><![CDATA[Kevin Timmins]]></dc:creator>
            <pubDate>Fri, 27 Oct 2017 19:19:01 GMT</pubDate>
            <atom:updated>2017-10-27T19:19:01.365Z</atom:updated>
            <content:encoded><![CDATA[<p>So, there are some issues with project boards in IT. They don’t really allow for things happening in parallel. Below should be an example of a possible project board which intuitively allow for things being done at the same time. I’ve outlined a few ideas of disciplines underneath.</p><p><a href="https://prezi.com/view/9yecvsMZcClb78daMz0E/">Project Board</a></p><p>The idea is this combines some elements of Scrum and Kanban, however the key purpose is to outline an idea of a form of board which is more intuitive and less restrictive on how teams would like to work.</p><p>There are two types of ticket to start with, Stories and Tasks. A story represents business value and a task represents something which needs to be done to help deliver the story.</p><p>The backlog is the list of stories with the more detailed and higher priority stories at the top.</p><p>The elaboration represents an activity to create a series of tasks required to deliver the story. The elaboration should be done by all the people required to deliver the story into a live environment. As a minimum this should probably be some kind of BA and then assuming there is to be a software component and a test component then this stage should involve at least the tester and developer who will be delivering the story. The elaboration should create all the required tasks and these should be placed in kanbans aligned with the particular function, i.e. Testing Kanban, Software Dev Kanban.</p><p>The doing column means that a story is being progressed and built. When a story is in this column then the developer and tester will be completing the tasks on the kanbans on the stories. The story cannot progress from this column until all artifacts required are built.</p><p>The env progression column is to be done by the same people who worked on the story in the doing column. The idea of this column is for the people to do whatever is required to verify that the artifacts are correct and that they fulfill the acceptance criteria and deliver the required value, this could include progressing through a variety of testing or performance environment.</p><p>The done column means the story is live and delivered. All the tasks are done and the env progression has proved that the artifacts work as expected.</p><p>The artifacts could be expanded to additional things such as learning materials, infrastructure provisioning, marketing materials, essentially every activity and product which is required for the story to be delivered in full successfully and achieve what it is required to achieve. In these situations then it is expected that the people involved in the elaboration, doing and env progression columns will include people capable of doing these additional functions.</p><h3>Disciplines</h3><ul><li>A group of people should complete a story in full before taking on additional work</li><li>The doing column kanbans are done in parallel</li><li>The people working on the kanbans should work closely together and update each other a couple of times a day</li><li>Each kanban can essentially be made of three columns, Todo, doing and done</li><li>Developers, testers, and any other builder/product functions should work together at the same time on a story</li><li>Elaboration includes ensuring that all deliverable’s are spec’d out in full</li></ul><h3>Expected Co-op</h3><p>Whilst each person implementing the tasks will be an SME within their fields there is an expectation that these people working together will extend to, for example, a developer performing some test tasks, a tester performing some training tasks, a trainer performing some development tasks and all the various permutations therein. The ideal way for this to occur is for people to buddy up either on the same computer or the same set of desks or be on a chat clients or equivalent whilst working together on the same task. The reason for this is to provide as many opportunities for any disparity in understanding to be found as early as possible and then explored and resolved to the betterment of the understanding of the story and delivery of the identified tasks.</p><h3>Additional</h3><p>Bugs and BAU will crop up and these need to be done. They should be managed separately and either functional tasks are produced or stories are created to address the underlying issues. These should then be put into the correct priority order and if they need to be expedited then they could be done during some downtime or by a dedicated team.</p><h3>Concerns</h3><p>There could be a concern that having a person from each function dedicated to delivery of a story and nothing else might be wasteful.</p><p>Splitting people between different stories and stopping them from working together will cause friction points at various handovers and ultimately delay the delivery of a story. If a story takes 2 weeks to get through testing after being built and only then goes into training then the developers who originally worked on it will have 2 weeks of additional commitments and work in their minds which will remove context. Additionally they will have committed to additional deliverables which having to context switch back will have the impact of:</p><ul><li>Delaying the new commitment delivery (this will push all the schedules back)</li><li>Dramatically increase the time taken to fix the problem due to refamiliarization</li><li>Cause the project to break business commitments and have a compounding effect due to consistently adding an uncertainty around unplanned work coming up</li></ul><p>If a story is worked on in full then whilst some people may have some down time periodically, the story in whole will be delivered in full with minimal wasted time due to context switching and minimal impact on future work.</p><h3>USP</h3><p>The value of this kind of approach is that it’s easier to visualize things being done in parallel. Common issues with standard boards at the moment is that they encourage mini waterfall behaviour which is counter productive and is one of the causes of the failure of Agile within organisations and projects.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=78784c31620f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/socralogic/a-project-board-78784c31620f">A Project Board</a> was originally published in <a href="https://medium.com/socralogic">SocraLogic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Refactor or Rewrite]]></title>
            <link>https://medium.com/@kipper_t/refactor-or-rewrite-2213be39bec?source=rss-b7c797501c4a------2</link>
            <guid isPermaLink="false">https://medium.com/p/2213be39bec</guid>
            <category><![CDATA[clean-code]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[refactoring]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Kevin Timmins]]></dc:creator>
            <pubDate>Wed, 04 Oct 2017 19:47:54 GMT</pubDate>
            <atom:updated>2017-10-04T19:47:54.329Z</atom:updated>
            <content:encoded><![CDATA[<p>Sigh, this one again.</p><p>The reason to refactor used to be because you were working in a monolith which had eons of bug fixes and quirks which if removed risked everything.</p><p>Well, things have changed, or they are meant to have. We deal with microservices, things which are small, focused, independent and well defined. They are meant to be so cheap to write that the refactor argument has lost the USP it used to have, either that or you have deeper problems that no amount of coding will solve.</p><p>It’s funny, I’ve found that my views have done a complete 180 these last years. Once upon a time I’d have gone gun ho into a refactor, but honestly these days I think it’s cheaper to just write it again.</p><p>I mentioned something key there, cheaper. Look, I’m not saying never refactor again, I’m saying there is a cost to value equation which whilst once upon a time was favourable to refactor, is now not.</p><p>Writing from scratch no longer carries the regression risk either, we should have rafts of automated tests pumping through all those fun scenarios we dealt with before, if a regression gets through then it deserves to and we deserve to suffer for our bone idleness and complete neglect to test the edge cases that cropped up in live.</p><p>To conclude, make an informed decision, do the math, and make sure you’re addressing any fundamental culture problems that mean it’s expensive to rewrite.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2213be39bec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Generalisation]]></title>
            <link>https://medium.com/socralogic/generalisation-81f5063517a3?source=rss-b7c797501c4a------2</link>
            <guid isPermaLink="false">https://medium.com/p/81f5063517a3</guid>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[software-craftsmanship]]></category>
            <category><![CDATA[clean-code]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Kevin Timmins]]></dc:creator>
            <pubDate>Thu, 31 Aug 2017 20:21:35 GMT</pubDate>
            <atom:updated>2017-08-31T20:21:35.348Z</atom:updated>
            <content:encoded><![CDATA[<p>Just. Stop. It.</p><p>Ok, now that I’ve got that off my chest let’s lead with an example.</p><p>In programming there is a practice of writing codified tests for other code that you have written. Another practice is to pontificate about the right and wrong ways to write said code and said tests and there can be many heated debates about right and wrong. Most often than not, my experience of these debates tends to go between the following two types of evidence to support a claim:</p><ol><li>I read about this in a book by someone and therefore it is true</li><li>I tried this out a few times and experiences it first hand and therefore it is true</li></ol><p>Unfortunately both of these approaches have drawbacks because it is important to understand the underlying values of the individual making the claim and the basis of those values.</p><p>Ultimately values need to be based upon reasonable evidence and fact. A value exists as an expression of something important in achieving a particular goal. This is where things can get slightly muddy because goals can be both objective, subjective and can quite happily conflict with other goals. I think there is probably something to be done regarding whether or not a goal needs to be based on fact or fiction.</p><p>I’m digressing. Allow me to try and pull this back on topic.</p><p>When writing tests there are a couple of approaches.</p><h3>Generalise and refactor aggressively</h3><p>This means split out test methods, test data, test assertions and all the various other test utilities so that they can be shared by lots of other lovely tests. The values which lead to this I’ve found are typically found in the misconception of the DRY principal (Don’t Repeat Yourself) and the desire to do Object Oriented Programming (albeit unknowingly poorly). The problem is that there are lots and lots of books and expertise around misconceived OOP and DRY which means that many people who don’t examine the basis for these principals and try to re-prove and assert them for basic principals tend to blindly follow the statements, behaviours, additional value and various other bits and bobs that the sources of expertise present.</p><h3>Keep everything contained within the same method</h3><p>This means that setting up the test data, performing the various operations and running the assertions is all done inline in the test method itself. The values which lead to this I’ve found are to do with ease of reading, ease of debugging and ease of keeping isolated. The major elephant in the room here is that the more code there is then the less readable something is.</p><p>So, where do I stand?</p><p>My goal is to effectively, efficiently and easily write code that someone else can pick up as quickly as possible and change. The reason for this goal is that the most costly part of software development is the time it takes for a developer to pick up code. A contract developer for example spending a week on a piece of code is the same as blowing at least £2k out of the window plus any lost revenue from the additional time taken to get the fix/feature out of the door. The cost of Infrastructure today is so cheap that it is literally pennies in comparison to the cost of developer time.</p><p>I stand on the side of keep everything contained within the same method. My reasons for this are that there is no misdirection or generalisation that can frustrate the developer. If the test is sufficiently complex then a better solution would be to have a single test per test class and break the test method into meaningful methods so that it is easier to read, but in this situation under no circumstances should that test class be expected to perform additional tests as this will make it way to easy to attempt to share these extracted methods and really start fucking things up.</p><p>As a final piece to this, is copy paste really so bad? Seriously, what is wrong with it? Why are we so lazy that we will happily handicap future development in the name of not typing Ctrl+c, Ctrl+v?</p><p>If you have a different viewpoint to this then please feel free to provide comprehensive reasoning. If you find there are gaps in my reasoning then please feel free to expose them so that I can attempt to fill them in or change my view based on new evidence.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=81f5063517a3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/socralogic/generalisation-81f5063517a3">Generalisation</a> was originally published in <a href="https://medium.com/socralogic">SocraLogic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Opinionated]]></title>
            <link>https://medium.com/socralogic/opinionated-2a6514947fc7?source=rss-b7c797501c4a------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a6514947fc7</guid>
            <category><![CDATA[science]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[logic]]></category>
            <category><![CDATA[self-awareness]]></category>
            <category><![CDATA[opinion]]></category>
            <dc:creator><![CDATA[Kevin Timmins]]></dc:creator>
            <pubDate>Thu, 31 Aug 2017 19:54:30 GMT</pubDate>
            <atom:updated>2017-08-31T19:54:30.232Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve had a bit of a personal revelation. In the sense of understanding some of the perceptions of my behaviour and attitudes and I consider it interesting enough to share. I suspect some folks will disagree with the following but I think my logic is correct (If not then I definitely want to know why not and have alternative logic presented…)</p><p>The crux of it is, I believe that I come across as opinionated without me being opinionated.</p><p>Let me explain using examples of my behaviours. When I’m speaking with someone I seem to be very persuadable by logical arguments based upon all known facts at the time. When I speak with someone else about the same topic/problem then my opinion changes immediately in the presence of new information and data. So this is the reason for me saying I am not actually opinionated.</p><p>When I am speaking with someone about a different problem or set of actions that are done, if I am not swayed by the logic then I am very stubborn and I tend not to budge from my assertion of the correct way to do it. I should mention that I tend to rapidly and quickly qualify why I am asserting what I am asserting with data, evidence and scenarios.</p><p>Now, the definition of opinion (as spake by google) is: a view or judgement formed about something, not necessarily based on fact or knowledge.</p><p>For me this definition runs the risk of lumping the word opinion in the same camp as theory which gives many people the world over an excuse to eschew science in the name of fairy tales and bullshit. This is why I am making this quite distinct statement of why I come across as opinionated without being opinionated. My view of the world/problem/situation fluidly shifts in the face of evidence, data, experimentation and observation. An opinion doesn’t necessarily do this and therefore I don’t feel opinionated is the right word for the way I am.</p><p>Anyway, I found this to be a fascinating little thought that entered my head recently and so that’s why I’m sharing it.</p><p>Even more interestingly is this article that a quick google has just brought up which seems to go into a lot more depth about the distinction between opinion and fact: <a href="https://www.philosophersmag.com/essays/26-the-fact-opinion-distinction">https://www.philosophersmag.com/essays/26-the-fact-opinion-distinction</a> which I find does good justification for bothering to distinguish between opinion and fact in the first place.</p><p>Anyway, I’ll stop now.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a6514947fc7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/socralogic/opinionated-2a6514947fc7">Opinionated</a> was originally published in <a href="https://medium.com/socralogic">SocraLogic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What does it take to be a Software Developer?]]></title>
            <link>https://medium.com/socralogic/what-does-it-take-to-be-a-software-developer-bd5017f7849?source=rss-b7c797501c4a------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd5017f7849</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[traits-of-a-developer]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Kevin Timmins]]></dc:creator>
            <pubDate>Wed, 26 Jul 2017 07:55:45 GMT</pubDate>
            <atom:updated>2017-07-26T12:23:18.736Z</atom:updated>
            <content:encoded><![CDATA[<p>I’m going to try and debunk what it really takes to be a Software Developer.</p><p>Firstly, some myths:</p><ul><li>Looking at the documentation helps you be a developer</li><li>It’s easy to be a developer</li><li>It’s just some code, how hard can it be</li></ul><p>I’m going to be really critical now. Thinking that all you need to do is learn some code and then you’ll magically be a developer is going to end in frustration and annoyance. It takes something significantly different to be a developer.</p><p>The best analogy I can give here is that expecting to be a developer by looking at documentation of a language, API or framework is like expecting to be able to speak French by reading a dictionary. It’s never going to work.</p><p>Honestly, the code is the easy part, it’s the simplest part, it isn’t what makes you a developer. Interestingly many people look at code and thing “Ahhhh, complicated, complex gobbledigook that I can’t understand.”</p><p>So, if Software Development isn’t about the code then what the hell is it about?</p><p>It’s about thinking. Moreover it’s about the way you think, the way you see the world. (Wow, this just got deep, I just want to be a developer not a f**king philosopher). Hang on with me here. I know this sounds all kinds of newagey and all that crap, but it is honestly the truth.</p><p>I suppose it’s worth looking at some characteristics of a good developer. What can they do? How do they think?</p><p>A good developer is a developer who is able to deconstruct a problem into small blocks of tangible stuff. The easiest way to go here is down the whole animal, mammal, cat and dog route. They are easy to visualise and can be a great stepping stone to visualising and conceptualising more abstract components. I think this is probably the most difficult thing for a person to learn to do.</p><p>A good developer is a developer who is able to rapidly learn something new. The ability and desire to learn is something that every developer needs. When going into a new project a developer needs to be able to learn the structure, domain and framework very quickly if they are to be of any use. There is the added complexity of new features and languages coming out all the time which if a developer doesn’t keep on top of then they will become obsolete. I think this is the next most difficult thing for a person to learn to do.</p><p>A good developer is a developer who is self aware. What I mean here is that a developer needs to review what they are doing, and figure out ways they can improve. A developer who can’t look at themselves honestly and openly is a developer who will never improve. I don’t mean a developer needs to be negative about themselves, but I mean they need to be content with a life of continually discovering new things about themselves and improving themselves.</p><p>For the last point I want to really emphasise how positive it is to do this. I find that my life is incredibly fulfilling precisely because I continuously feel like I am growing and improving. I love the idea of finding out new things and discovering better ways of doing things. It makes life feel like an adventure and I feel like I am constantly in pursuit of and achieving better levels of living. I think sometimes many people get caught in the negative side of this which is the “it’s never good enough, I’m always a failure”. I like to think “wow, I’ve achieved so much and I’ve learnt so much. I can’t wait to see what new and exciting things I learn and achieve in the future which enrich my life and bring me a genuine sense of fulfillment.”</p><p>I think we’ve established 3 key traits of good developers:</p><ol><li>Visualise and conceptualise abstract components</li><li>Rapidly learn new concepts and ideas</li><li>Self awareness and desire for self improvement</li></ol><p>So, what can you do to establish these traits? Firstly, I subscribe to the nurture over nature idea presented in science which means that whilst a persons nature can influence their starting ability with certain things and how rapidly they are able to learn certain things, ultimately if a person is nurtured correctly then this can overcome any initial tendancies towards or against certain abilities from birth. This therefore means that I think that there must be a way to establish and develop the above traits. I also suspect that these traits are common amongst scientists. I think that a person who learns to question the world around them critically is a person who learns to visualise and conceptualise increasingly abstract ideas. I think this also encourages rapid learning in the continual face of new information from questioning and challenging assumptions and preconceptions. I then think it is a very small step to apply this way of thinking to oneself as well as the external world around you.</p><p>I feel that we have here a recipe for building the ability to be a good Software Developer, start learning science, start questioning the world around you and start applying the scientific process and allow the evidence you find to influence you and change how you act and behave.</p><p>I’ll be honest, this feels somewhat underwhelming to me, I’m not sure why. Personally I love science and it wasn’t really my intention to end up with this conclusion (I didn’t really have a specific conclusion in mind tbh). I tend to write as my thoughts evolve so what you see here is a stream of my thoughts in the order that they occur in. I find it fascinating to have come to this conclusion and underwhelming that this is the current conclusion.</p><p>If you want somewhere to start with the whole getting interested in science thing then I can recommend a few different routes, audio books, especially some of the Richard Dawkins ones as he has a fantastic way of breaking things down into easy to digest pieces and then rebuilds the argument to much more complex situations, plus there are a couple of fascinating books below which I found incredibly easy to visualise:</p><ul><li><a href="https://www.amazon.co.uk/gp/product/0571226809/ref=as_li_tl?ie=UTF8&amp;tag=socralogic-21&amp;camp=1634&amp;creative=6738&amp;linkCode=as2&amp;creativeASIN=0571226809&amp;linkId=f54ba52a13a7306b3ad607e02c3b898d">Uncle Albert and the Quantum Quest</a></li><li><a href="https://www.amazon.co.uk/gp/product/0571226159/ref=as_li_tl?ie=UTF8&amp;tag=socralogic-21&amp;camp=1634&amp;creative=6738&amp;linkCode=as2&amp;creativeASIN=0571226159&amp;linkId=95eab0a28dd87f3f359e2f8aaca8eb35">The Time and Space of Uncle Albert</a></li><li><a href="https://www.amazon.co.uk/gp/product/0571226140/ref=as_li_tl?ie=UTF8&amp;tag=socralogic-21&amp;camp=1634&amp;creative=6738&amp;linkCode=as2&amp;creativeASIN=0571226140&amp;linkId=14433a68892e95d5c060db156dcfb676">Black Holes and Uncle Albert</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd5017f7849" width="1" height="1" alt=""><hr><p><a href="https://medium.com/socralogic/what-does-it-take-to-be-a-software-developer-bd5017f7849">What does it take to be a Software Developer?</a> was originally published in <a href="https://medium.com/socralogic">SocraLogic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Testing — Automated Testing]]></title>
            <link>https://medium.com/socralogic/testing-automated-testing-c269b2bccec3?source=rss-b7c797501c4a------2</link>
            <guid isPermaLink="false">https://medium.com/p/c269b2bccec3</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[automated-testing]]></category>
            <category><![CDATA[software-testing]]></category>
            <dc:creator><![CDATA[Kevin Timmins]]></dc:creator>
            <pubDate>Thu, 22 Jun 2017 12:39:55 GMT</pubDate>
            <atom:updated>2017-06-22T12:39:55.873Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MuqBYBQcgYQ-ma0w5mIFYw.jpeg" /></figure><p>I’m going to talk about why your automated tests should be handled with more care than your production code.</p><p>First of all, what is the purpose of testing.</p><p>Testing, simply put, is a means to build confidence that the software you have built will perform as expected and will have few bugs and fewer regressions of previously fixed bugs.</p><p>The impact of confidence on a piece of software determines whether it is released, delayed or canned, and this confidence broadly correlates to the manifestation of live issues and defects.</p><p>Suffice to say, testing is one of the most valuable activities in software development.</p><p>Testing however is seen as a cost. You see, in Software Development you can see new code being created and new features being created. It’s really easy to assume that writing production code is valuable (this is an incorrect assumption).</p><p>Let’s talk about what value is briefly, specifically in the field of Software.</p><p>Value is working Software which has a positive impact on the goal that the Software was created for.</p><p>More often than not, value is Software which is sold or generates revenue through licence fees. Ultimately it generates money. The nature of Software is that once it is written it can be copied and sold an unlimited number of times for very little cost (packaging and distribution is about all it costs once built, and even then that is negligible in the digital age).</p><p>Therefore because writing production code directly results in new features it is easy to associate it with being valuable.</p><p>Testing doesn’t create new features. Testing causes delays, it stops some features from being released. Because of this testing has often been seen as an unwelcome companion, an evil that is just required and always get’s in the way.</p><p>I want to pause for a moment and I want you to consider the following statement. Once you’ve read it, please stop reading for a few seconds to really let it sink in.</p><p><strong>*This scenario is purely fictional*</strong> Imagine that your bank is releasing a small change to it’s payment processor, it’s meant to make processing payments significantly faster. It has a defect which deducts 10 times the amount it’s meant to deduct every time a transaction occurs and credits a tenth of the amount it is meant to credit.</p><p>Have you stopped and thought about the impact of that statement, what that would mean for you? Can you imagine filling up your car with £20 of fuel and then having £200 deducted from your account? Your weekly shop which usually costs £80 now deducts £800 from your account.</p><p>Now let’s assume that there are a series of tests which could have been easily written to test that when someone credits different varying amounts of money then that money is actually credited and that if someone deducts varying amounts of money then the actual amounts of money requiring to be deducted are actually deducted. It’s simple test, a simple test which represents immense value to the 100,000’s to 1,000,000’s of people who bank with that provider.</p><p>Simply put, the cost of not having those tests is so astronomically higher than the cost of implementing them in the first place.</p><p>I can’t imagine waking up one morning after a routine direct debit goes out only to find that my account is now empty. I can’t fuel my car, I can’t get around, I can’t do anything.</p><p>This is a money focused example, but let’s assume it’s a bug in the life support software used in hospitals, or in the software which records prescriptions or a bug in the alarm system in your office. I could go on, and I’m sure that you can imagine the consequences.</p><p>Mistakes will always happen, it’s natural and people are not perfect. However, testing is something that can prevent the majority of these issues from recurring and in many cases prevent them from occurring in the first place.</p><p>What we have these days are vague attempts at automated tests which are hacky, not entirely stable and still get in the way, they fail without reason, we don’t trust them, we don’t believe them when they pass and we can discredit them when they fail. Why? Because we are still caught up in the belief that testing is a second rate citizen rather than putting it where it should be, front line and centre of everything. It should be treat with more care and attention than the live code, it should be beautiful code, it should be easy to change, easy to add to, easy to remove from and ultimately be the single most trusted part of the entire process. It should be respected and, every time it stops a release it should be applauded, why? Because it has just saved you from a PR disaster damaging your business, your reputation and potentially putting lives at risk.</p><p>Treat your automated tests better than your treat your production code. Messy production code slows you down when adding new features. Messy test code means you release defects and bugs that you should have solved long ago. Messy test code won’t slow down your ability to release (you’ll just side step it and work around it), instead it will do something far worse, it will destroy your product, your market share and in the best case scenario send your customers to your competitors.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c269b2bccec3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/socralogic/testing-automated-testing-c269b2bccec3">Testing — Automated Testing</a> was originally published in <a href="https://medium.com/socralogic">SocraLogic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>