<?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 Mark Simpson on Medium]]></title>
        <description><![CDATA[Stories by Mark Simpson on Medium]]></description>
        <link>https://medium.com/@verdammelt?source=rss-abd4a2aa7fcc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*2tEO1WZqXN8YDW6o.</url>
            <title>Stories by Mark Simpson on Medium</title>
            <link>https://medium.com/@verdammelt?source=rss-abd4a2aa7fcc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 09:11:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@verdammelt/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[Writing Mix Tasks for Fun and Profit.]]></title>
            <link>https://medium.com/defmethod-works/writing-mix-tasks-for-fun-and-profit-61dd609e7263?source=rss-abd4a2aa7fcc------2</link>
            <guid isPermaLink="false">https://medium.com/p/61dd609e7263</guid>
            <category><![CDATA[elixir]]></category>
            <category><![CDATA[mix]]></category>
            <dc:creator><![CDATA[Mark Simpson]]></dc:creator>
            <pubDate>Fri, 10 Mar 2017 21:25:05 GMT</pubDate>
            <atom:updated>2017-03-10T21:25:05.489Z</atom:updated>
            <content:encoded><![CDATA[<p>I’m beginning to learn a little Elixir &amp; Phoenix and I ran into a case where I wish I had a Mix task for something. Specifically I wanted to run npm scripts with mix so I’d only have one command to run instead of both mix and npm for my toy Phoenix project.</p><p>Writing a Mix task is reasonably straightforward with only a few steps:</p><ol><li>If you want to create a mix task called “echo” then create a module called Mix.Tasks.Echo. The task name seen in mix help is based upon the name of the module minus Mix.Tasks. (The module needs to be called Mix.Tasks.Something otherwise mix will not see it.)</li><li>Add use Mix.Task to this module.</li><li>Write a public method called run. It has the type signature: run([binary]) :: any. That means that it will get a list of strings (the command line arguments) and can return anything.</li><li>Add a @shortdoc. This will be used as the text in mix help. Without this your task will not appear in mix help but will still be usable.</li><li>Optionally add a @moduledoc. This will be used if you run mix help YOURTASK</li></ol><p>You can put this module where ever you want in lib but typically you would put it into lib/mix/tasks.</p><p>That’s it.</p><p>An interesting thing I found was that step #2 was not actually needed. That behaviour defines @shortdoc so without it you cannot use @shortdoc to add the task to mix help output.</p><p>Since I was creating a mix task for use in a build I needed to make sure that if the task was not successful that mix would return an error code so that the shell could see the error and fail a build. At first I assumed that the return value of the task was how that would be done; however I didn’t find much documentation about this. I experimented with some likely return values like :error or {:error, &quot;something&quot;}but that had no effect, it always returned a zero exit status to the shell. Ultimately I choose to raise an error when the task didn’t work and that definitely caused a non-zero exit status.</p><p>If you want to see the end of result of this experimentation you can check out my <em>first ever hex package</em>: <a href="https://hex.pm/packages/mix_npm">mix-npm</a>. The source can be found in the GitHub repository: <a href="https://github.com/verdammelt/mix_npm">verdammelt/mix_npm</a>.</p><p><em>Originally published at </em><a href="https://code-and-cocktails.herokuapp.com/blog/2017/03/10/how-to-write-a-mix-task/"><em>code-and-cocktails.herokuapp.com</em></a><em> on March 10, 2017.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61dd609e7263" width="1" height="1" alt=""><hr><p><a href="https://medium.com/defmethod-works/writing-mix-tasks-for-fun-and-profit-61dd609e7263">Writing Mix Tasks for Fun and Profit.</a> was originally published in <a href="https://medium.com/defmethod-works">Def Method</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning From My Apprentice]]></title>
            <link>https://medium.com/defmethod-works/learning-from-my-apprentice-fdeeea7fefe1?source=rss-abd4a2aa7fcc------2</link>
            <guid isPermaLink="false">https://medium.com/p/fdeeea7fefe1</guid>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[apprenticeship]]></category>
            <dc:creator><![CDATA[Mark Simpson]]></dc:creator>
            <pubDate>Tue, 24 May 2016 00:00:00 GMT</pubDate>
            <atom:updated>2016-05-25T20:50:32.206Z</atom:updated>
            <content:encoded><![CDATA[<p>My company, Cyrus Innovation, has started an Apprenticeship program. This program involves bringing on people who are brand new to programming and pair them with a Senior developer to train them in good practices. About a month ago I ‘acquired’ an Apprentice: <a href="https://paigelearnscode.wordpress.com/">Paige</a>.</p><p>I’ve never done this sort of thing before and I quickly came to realize that the relationship wasn’t just Master &amp; Apprentice but really Apprentice-Master &amp; Apprentice. I am not only learning as I go what it means to have an Apprentice but also learning <em>from</em> my Apprentice.</p><p>Even more than normally during pair-programming I feel I need to explain myself. Not only explaining how to do something in the programming language, but how to do it with our tools, and how we’ll do something in the context of our team. Add to that explaining the <em>why</em> of it all as well. This exercise helps me remember and reconsider why <em>I</em> do things the way I do, why they are important.</p><p>This also brings to light good practices which I have chosen <em>not</em> to do in this current situation. Perhaps there are reasons, perhaps those reasons are good, sometimes they are not. By having to explain the trade-offs and reconsider the bad reasons I am learning why I make these decisions.</p><p>Also by embodying some good behaviors she is teaching me some tricks about how to learn. She is a careful attentive listener, always asking questions to get clarification. She also tests her knowledge by sharing what she does know (even if not sure) which either adds to the collective knowledge or is corrected.</p><p>So I hope she is learning something by pair-programming with me; but I know I’m learning something from her.</p><p><em>Originally published at </em><a href="https://code-and-cocktails.herokuapp.com/blog/2016/05/24/learning-from-my-apprentice/"><em>code-and-cocktails.herokuapp.com</em></a><em> on May 24, 2016.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fdeeea7fefe1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/defmethod-works/learning-from-my-apprentice-fdeeea7fefe1">Learning From My Apprentice</a> was originally published in <a href="https://medium.com/defmethod-works">Def Method</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Quickie: Less Columns on Your Board]]></title>
            <link>https://medium.com/defmethod-works/quickie-less-columns-on-your-board-9d8f5a000c2f?source=rss-abd4a2aa7fcc------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d8f5a000c2f</guid>
            <category><![CDATA[board]]></category>
            <category><![CDATA[agile]]></category>
            <dc:creator><![CDATA[Mark Simpson]]></dc:creator>
            <pubDate>Tue, 26 Apr 2016 00:00:00 GMT</pubDate>
            <atom:updated>2016-05-25T20:50:03.016Z</atom:updated>
            <content:encoded><![CDATA[<p>So you have a “Agile Board”(TM) congratulations! If you are like any of the people I’ve worked with recently you’ve got lots of columns to keep track of all the possible states a story card could be in.</p><p>Back away from the board…</p><p>You should start with very few columns. I think four should be plenty:</p><ul><li>Backlog</li><li>Current</li><li>Doing</li><li>Done</li></ul><p>Backlog is the place to keep all your new ideas. Make sure the next priorities are at the top and ready to go, as you go down the list don’t worry about the rest too much, they can stay vague.</p><p>Current is for the things you are planning on doing this iteration. Use the Goldilocks principle. Don’t agree to do too much or too little. Just the Right(TM) amount.</p><p>Doing is for things that are being worked on <em>RIGHT NOW</em>. A good number of items here is a function of the number of people on your team and how they collaborate (pairing, mobbing, solo if you must). If there are too few or too many items there is a problem — discuss it. If something stays here for days that is the sign of a problem — discuss it.</p><p>Done is for keeping track of the valuable things you are delivering as a team. Rejoice. Throw them away after sufficient rejoicing (sometime after the next iteration starts is a good time).</p><p>What about Ready for QA? or Ready for Deploy? you ask. I’d ask why isn’t QA and/or Deploy part of your definition of done?</p><p>What about Blocked. OK this one <em>might</em> be useful. But a red sticky (or equivalent for non-physical boards) on the card is probably enough. Moving it to another column makes it less visible, and a card being blocked is a problem and we want problems to be visible.</p><p>Of course it is <em>your</em> process not mine. Use the columns <em>you</em> need. But know <em>why</em> you need them, and feel free to add and remove them if after discussion you realize the board is not serving <em>you</em> anymore.</p><p><em>Originally published at </em><a href="http://code-and-cocktails.herokuapp.com/blog/2016/04/26/quickie-less-columns-on-your-board/"><em>code-and-cocktails.herokuapp.com</em></a><em> on April 26, 2016.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d8f5a000c2f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/defmethod-works/quickie-less-columns-on-your-board-9d8f5a000c2f">Quickie: Less Columns on Your Board</a> was originally published in <a href="https://medium.com/defmethod-works">Def Method</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Craftsperson and Their Tools]]></title>
            <link>https://medium.com/defmethod-works/the-craftsperson-and-their-tools-4c7bcb3db137?source=rss-abd4a2aa7fcc------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c7bcb3db137</guid>
            <category><![CDATA[craftsmanship]]></category>
            <dc:creator><![CDATA[Mark Simpson]]></dc:creator>
            <pubDate>Sun, 28 Feb 2016 00:00:00 GMT</pubDate>
            <atom:updated>2016-05-25T20:49:23.043Z</atom:updated>
            <content:encoded><![CDATA[<p>When I think of how “Craftspeople” do their work I think of tools. Good tools. They pick good tools because they know that it is easier to get the job done when you have the right tool, and it is well made. They don’t use a tool that is the wrong size for them, the tool fits their hand. They may also modify their tools to better fit their hand.</p><p>Sometimes a craftsperson will make entirely new tools for their work. It might be a special jig for cutting the same type of cut in a lot of lumber, or for drilling the same sort of hole. Sometimes these special jigs even come into common use, such as a door lock installation jig, or a mitre box.</p><p>Because a craftsperson uses their own tools, and special tools, they might seem to have a handicap when they don’t have those tools. But a unless the job cannot be done except with a particular tool (it is very difficult to cut a piece of wood with a hammer), they <em>can</em> still get the job done (albeit perhaps a bit slower).</p><p>This is because they know how to do the job; the tools are just <em>how</em> they go about it.</p><p>Some people think that the idiom: “A poor craftsman blames his tools.” implies that tools are not important. This does not mean that tools are not important! This means that a craftsperson knows that the failure to do a good job is not the fault of the tool; but the fault of the craftsperson: their skill, or their <em>choice</em> of tool.</p><p>Do you pick the right tool for the job? Do you change it to fit your hand? Do you make special tools for the work?</p><p><em>Originally published at </em><a href="http://code-and-cocktails.herokuapp.com/blog/2016/02/28/the-craftsperson-and-their-tools/"><em>code-and-cocktails.herokuapp.com</em></a><em> on February 28, 2016.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c7bcb3db137" width="1" height="1" alt=""><hr><p><a href="https://medium.com/defmethod-works/the-craftsperson-and-their-tools-4c7bcb3db137">The Craftsperson and Their Tools</a> was originally published in <a href="https://medium.com/defmethod-works">Def Method</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>