<?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 David A McClain on Medium]]></title>
        <description><![CDATA[Stories by David A McClain on Medium]]></description>
        <link>https://medium.com/@davidamcclain?source=rss-1456be0ecece------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*FOh3QAYd8A2IilqeYpTKYg.jpeg</url>
            <title>Stories by David A McClain on Medium</title>
            <link>https://medium.com/@davidamcclain?source=rss-1456be0ecece------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 17:02:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@davidamcclain/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[SQL tricks for an old dog]]></title>
            <link>https://medium.com/@davidamcclain/sql-tricks-for-an-old-dog-a0ac356ca393?source=rss-1456be0ecece------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0ac356ca393</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[data-analysis]]></category>
            <dc:creator><![CDATA[David A McClain]]></dc:creator>
            <pubDate>Wed, 06 May 2026 16:48:11 GMT</pubDate>
            <atom:updated>2026-05-06T16:48:11.665Z</atom:updated>
            <content:encoded><![CDATA[<h3>Long, rambling intro</h3><p>My first forays into using databases came via Rails and ActiveRecord circa Rails 1.2. Object orientated Liskov chains of convenience. It was great. product.brand.url and done. car.brand.name. Easy, until it wasn&#39;t, but that sounds like a different blog post. There were times for performance or clarity that I would write some &quot;raw&quot; SQL and pass that to the ORM instead, but they were few and far between. As I took more senior roles and took on more responsibility for <em>how</em> things were built, I spent a lot of time thinking about efficient DB schema designs, trade offs, future-proofing, indexing tricks. The land of databases became less and less of a foreign land.</p><p>A big evolution in my perception and my SQL toolset came when I entered leadership roles. Someone in leadership but outside of Engineering would ask something in a meeting like “how many widgets did we sell last week to Florida”. I would ssh in, run a SELECT COUNT(blah) from blah and answer it 30 seconds after it was asked. I would get asked more and more sophisticated questions that would quickly outpace my rudimentary SQL tricks. I might know how to do A, and have some idea how to do B, but be completely lost on how to unite them into one CSV. StackOverflow (ask your grandparents) was full of great questions that if you squinted, and if you ignored clauses i through iv, looked kind of like what you needed to know. So you would copy and paste the snippet, change the column names, iterate through twelve versions until your query returned something other than an error. I would then spend ages fact checking and cross-referencing myself. &quot;Do we actually have that many orders in Q3?&quot;, &quot;Wait, is &quot;NL&quot; even a state?&quot;. But it was a really fun game the execs were unwittingly playing with me. &quot;How unreasonable a question can we ask David until he gives up trying?&quot;</p><h3>Bulletin Reporter</h3><p>At Bulletin, we had a set of weekly reports that were SQL strings in some Jenkins project that would run on a Monday and then send the CSV file to a private Slack channel. I built a tool to replace it that I called bulletin-reporter. I took the inline strings of SQL (which were hard to read and we had to keep them short enough that Jenkins wouldn&#39;t chose on the length) and put them each into a standalone SQL file with clear names and inline comments where useful. I grouped the SQL files into directories based on their cadence and audience. I wrote a TypeScript function that ran in AWS Lambda (with much more secure and auditable read-only access to the db), and used AWS EventBridge as a pseudo-Cron to trigger specific segments of reports according to their grouping and cadence. Essentially, a &quot;bulletin_weekly&quot; trigger would map to a directory &quot;bulletin_weekly&quot; and run any and every SQL file in there, and generate a CSV report for each. The Lambda function handled posting it to whichever private Slack channel was appropriate, and then also sent a copy to S3 for redundancy.<br> The key thing was, it was so easy to extend. You would draft your SQL query in DataGrip or Postico or etc and get it exactly how you needed it, and then your PR is just adding a new .sql file into the appropriate directory for the audience and cadence. At last count, we had about two dozen reports, and 80% of them were added in the 18 months the tool was live. I remember adding exactly one report to the old Jenkins system in all the time before that, and it was scary. We built this tool to make custom report generation easy to contribute to, and gave our stakeholders more customisation when it came to delivery and cadence, and it led to organic growth and adoption.</p><p>“Yeah I can get you those numbers, do you also want me to add that to your monthly report suite?”</p><p>“Hey, you know that report you built for me last quarter showing X, could you make another one just like it, but one that splits out between Y and Z?”</p><h3>SQL things I’ve learned and used recently that you may find interesting</h3><p>So anyway, the whole point of this post is that I wanted to document and share some of the neat little SQL things I’ve leant on in the past year of this project. I should have just led with a Buzzfeed-style “TEN UNMISSABLE SQL TRICKS TO STUN YOUR CEO” bullet point clickbait article, but you’re reading the words of a middle-aged developer and that’s your fault. And these are not SQL things that will change your life, but it might be something you haven’t used and may use someday. It’s also hard for me to actually <em>learn</em> something without trying to <em>teach</em> it. So in this post, I identified a few neat SQL things we had used, figured out actual names of things, and used AI to generate a generalised, anonymised version of the actual SQL I’m talking about. With far too much ado, here we go:</p><p>NOTE:<br> All examples are Postgres; some won’t port cleanly to MySQL/SQLite.</p><h3>Example | 1 “Hierarchical Categories”</h3><pre>-- Trick: build hierarchical &quot;Parent&gt;&gt;Child&quot; category labels from a<br>-- self-referencing category table, then aggregate them per vendor as a<br>-- comma-separated string with array_agg + array_to_string. COALESCE on<br>-- the parent name lets root-level categories fall through cleanly with<br>-- an empty prefix.<br><br>WITH approved_product_categories AS (<br>  SELECT DISTINCT<br>    p.vendor_id,<br>    c.name AS category_name,<br>    parent_c.name AS parent_name<br>  FROM product p<br>  JOIN product_categories pc ON p.id = pc.product_id<br>  JOIN category c ON c.id = pc.category_id<br>  LEFT JOIN category parent_c ON parent_c.id = c.parent_category<br>  WHERE p.status = &#39;APPROVED&#39;<br>)<br>SELECT<br>  v.id,<br>  v.company_name,<br>  array_to_string(<br>    array_agg(<br>      COALESCE(apc.parent_name || &#39;&gt;&gt;&#39;, &#39;&#39;) || apc.category_name<br>    ),<br>    &#39;, &#39;<br>  ) AS categories<br>FROM vendor v<br>LEFT JOIN approved_product_categories apc ON apc.vendor_id = v.id<br>GROUP BY v.id, v.company_name<br>ORDER BY v.company_name;</pre><pre>id,company_name,categories<br>123e4567-e89b-12d3-a456-426614174000,Northwood Apothecary,&quot;Wellness&gt;&gt;Skincare, Wellness&gt;&gt;Bath, Home&gt;&gt;Candles&quot;<br>7c9e6679-7425-40de-944b-e07fc1f90ae7,Halcyon Goods,&quot;Apparel, Apparel&gt;&gt;Outerwear, Accessories&gt;&gt;Bags&quot;</pre><h3>Example | 2 “CSV-friendly JSONb”</h3><pre>-- Trick: CONCAT_WS(&#39;separator&#39;, ...) flattens JSONB fields into a<br>-- CSV-friendly string and silently skips NULL components, so a missing<br>-- zip code never produces a dangling comma. Each piece is pulled out of<br>-- the JSONB column with the -&gt;&gt; operator, which returns text.<br><br>SELECT<br>  v.id,<br>  v.company_name,<br>  CONCAT_WS(&#39;, &#39;,<br>    v.address -&gt;&gt; &#39;street&#39;,<br>    v.address -&gt;&gt; &#39;city&#39;,<br>    v.address -&gt;&gt; &#39;state&#39;,<br>    v.address -&gt;&gt; &#39;zip_code&#39;,<br>    v.address -&gt;&gt; &#39;country&#39;<br>  ) AS business_address<br>FROM vendor v;</pre><pre>id,company_name,business_address<br>123e4567-e89b-12d3-a456-426614174000,Northwood Apothecary,&quot;742 Evergreen Ln, Portland, OR, 97201, US&quot;<br>7c9e6679-7425-40de-944b-e07fc1f90ae7,Halcyon Goods,&quot;15 Rue de la Paix, Paris, FR&quot;</pre><h3>Example | 3 “Derived Boolean”</h3><pre>-- Trick: derive a clean yes/no column for &quot;is this integration set up?&quot;<br>-- by checking that two related nullable columns are both populated.<br>-- The CASE expression keeps the business definition right next to the<br>-- output column, instead of buried in a WHERE clause or computed<br>-- application-side.<br><br>SELECT<br>  v.id,<br>  v.company_name,<br>  CASE<br>    WHEN v.provider_shop_name IS NOT NULL<br>     AND v.provider_access_token IS NOT NULL<br>    THEN true<br>    ELSE false<br>  END AS connected_to_provider<br>FROM vendor v;</pre><pre>id,company_name,connected_to_provider<br>123e4567-e89b-12d3-a456-426614174000,Northwood Apothecary,true<br>7c9e6679-7425-40de-944b-e07fc1f90ae7,Halcyon Goods,false</pre><p><strong>Note:<br></strong> <em>It came up in my research that another very valid way of expressing the above example is something like:</em></p><pre>(v.provider_shop_name IS NOT NULL AND v.provider_access_token IS NOT NULL)<br>  AS connected_to_provider</pre><h3>Example | 4 “Relative Date Ranges”</h3><pre>-- Trick: relative date math (CURRENT_DATE + INTERVAL) lets a single<br>-- query always return &quot;active now or starting within the next 4 weeks&quot;<br>-- regardless of when it runs: no hardcoded dates, no parameters to<br>-- update between runs. Pair it with an end-date guard that tolerates<br>-- open-ended (NULL) end dates.<br><br>SELECT<br>  ff.name AS feature,<br>  ff.start_date,<br>  ff.end_date<br>FROM feature_flags ff<br>WHERE ff.start_date &lt;= CURRENT_DATE + INTERVAL &#39;4 weeks&#39;<br>  AND (ff.end_date IS NULL OR ff.end_date &gt;= CURRENT_DATE)<br>ORDER BY ff.start_date;</pre><pre>feature,start_date,end_date<br>summer_promo_banner,2026-04-15,2026-06-15<br>new_checkout_flow,2026-05-22,</pre><h3>Example | 5 “COALESCE() inside COUNT()”</h3><pre>-- Trick: COALESCE(col, 0) on LEFT-JOINed columns is a defensive<br>-- habit. NULL propagation in aggregates depends on the operator<br>-- (NULL &gt; 0 is UNKNOWN, NULL + 1 is NULL) and on whether your CASE<br>-- has an ELSE branch, so subtle changes to a query can quietly drop<br>-- a row from a SUM or miscount a COUNT. Coalescing up front means<br>-- the arithmetic does what it looks like it does, without having to<br>-- re-derive the three-valued-logic truth table every time.<br><br>WITH product_counts AS (<br>  SELECT<br>    p.vendor_id,<br>    COUNT(*) AS active_product_count<br>  FROM product p<br>  WHERE p.status = &#39;APPROVED&#39;<br>    AND p.active = true<br>  GROUP BY p.vendor_id<br>)<br>SELECT<br>  COUNT(v.id)                                                          AS total_vendors,<br>  COUNT(CASE WHEN COALESCE(pc.active_product_count, 0) &gt; 0 THEN 1 END) AS vendors_with_products,<br>  COUNT(CASE WHEN COALESCE(pc.active_product_count, 0) &gt; 0<br>              AND v.available_for_purchase = true THEN 1 END)          AS vendors_selling<br>FROM vendor v<br>LEFT JOIN product_counts pc ON pc.vendor_id = v.id;</pre><pre>total_vendors,vendors_with_products,vendors_selling<br>247,184,142</pre><h3>Conclusion</h3><p>I don’t know what type of conclusion you’re expecting, but I’ll try to give you one. I think SQL is an elegant and powerful tool. I wouldn’t call it expressive, or intuitive, but its very rewarding. If you are intimidated or confused, everyone is most of the time. You’re not doing it wrong. I think these real-world examples demonstrate actual usecases where I’ve layered several “simple” SQL functions together to do something that seemed complicated at first. Or, to put it another way, if you read the SQL from the outside-in, it can make your vision go blurry and have you reconsidering your life choices. But, I find, if you can get into the habit of reading it from the inside-out, it becomes much more readable. “This is just a COALESCE(), I know what that does. Then the output of that is used in a CASE/WHEN. Ok, I can see where that’s going… ah, a COUNT(), I know what that does…” and so on.</p><p>Give it a go, you’ve got this.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0ac356ca393" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[1:1s | From Meeting to Multiplier]]></title>
            <link>https://medium.com/@davidamcclain/1-1s-from-meeting-to-multiplier-34e7c916424?source=rss-1456be0ecece------2</link>
            <guid isPermaLink="false">https://medium.com/p/34e7c916424</guid>
            <category><![CDATA[management]]></category>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[growth]]></category>
            <dc:creator><![CDATA[David A McClain]]></dc:creator>
            <pubDate>Fri, 16 Sep 2016 00:00:00 GMT</pubDate>
            <atom:updated>2016-09-16T15:54:31.457Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-sa/4.0/</cc:license>
            <content:encoded><![CDATA[<p>This post originally appeared on the <a href="http://multithreaded.stitchfix.com/blog/2016/09/16/from-meeting-to-multiplier/">Stitch Fix Tech Blog</a> in September 2016</p><p>If there’s one thing we probably have in common, it’s that we both have a “1:1”. Some sort of regular check-in meeting with your manager. If you don’t, I urge you to fix that.</p><p>Software Engineering is one of those attractive pursuits where there’s no shortage of resources to get started, but getting to mastery is devilishly unobtainable. There’s always more to learn, more to read, more code to refactor, more great conference talks to inspire, more languages to experiment with, more paradigms and design patterns to apply.</p><p>We spend a lot of time with our noses in a book, or a blog post, or at a meetup. We also spend a decent amount of time fretting about all the topics we’re not covering because we’re so busy trying to absorb the other ones. Or is that just me?</p><p>I think there’s something a lot of us miss or overlook when it comes to growth and development, and that’s the humble 1:1. (Some companies call them “TBs”, or “Touch Base(s)”.) If you’re screwing up your face right now, or gently shaking it in disbelief, then I’m very happy this post has reached you. This post is especially for you.</p><p>If you use them correctly, 1:1s can provide an enormous amount of value to you. So what is the difference between my 1:1s and your 1:1s?</p><p>The golden rule — the one thing you need to take away from this if nothing else — is that the 1:1 is <em>your</em> meeting. <strong>It is for you.</strong> If your manager has an agenda, then it needs to either be directly about supporting you, or come second to <em>your</em> agenda. Taking ownership of your 1:1s is an easy, everyday superpower. Taking five minutes before you meet to write a couple of talking points is the biggest difference between a 1:1 that works for you, and one that doesn’t.</p><h3>What should you cover in your 1:1?</h3><p>I couldn’t possibly answer that. It’s whatever you need it to be. But like all good blog posts, I have some opinions and some bullet points.</p><ul><li>1:1s are about uncovering your roadblocks, the things holding you back, in your work/projects, in your career, and in your professional relationships.</li><li>1:1s are about discovering where you want to go and what you and your manager can do to help make sure you get there.</li><li>1:1s are about leaning on your manager’s experience to help guide you through issues you’re dealing with.</li><li>1:1s are <em>not</em> about performance reviews, that’s what immediate, <a href="http://firstround.com/review/radical-candor-the-surprising-secret-to-being-a-good-boss/">candid feedback</a> and 360° reviews and et cetera are for. You <em>can</em> use this time to solicit specific feedback from your manager on points you’re looking to improve upon.</li><li>Related to that, 1:1s are not about looking good in front of your manager. They’re not about all the things you know how to do; they’re about all the things stopping you from being better. You need to work on having a relationship with your manager (at least within the confines of the 1:1) where you can be vulnerable and ask for help.</li><li>1:1s are scheduled, regular and immutable. It might take some time to get into the swing of things, to feel comfortable being that honest with your manager. Cadence and practice are key.</li></ul><p>Bonus bullet point</p><ul><li>1:1s don’t have to be just something you do with your manager. You could also set up a less-formal meeting with someone else in your company that you look up to. I get a lot of value from hearing the different perspectives I get from peers inside and outside of engineering.</li></ul><h3>How 1:1s became my superpower</h3><p>I didn’t really have 1:1s at my previous jobs. Stitch Fix was the first place where I worked that took them seriously. I had weekly 1:1s with my manager and monthly 1:1s with my boss’ boss. It was an opportunity to get their opinions on leadership (a topic I was starting to take an interest in). I would come to them with problems, and they would not solve them for me, but rather talk me through ways I might solve them. It was through these conversations that I shared that I would someday like to lead a team and take more ownership over our roadmap. I felt brave enough, or I should say secure enough to ask, “So what’s standing in the way of that? In what ways am I not ready yet?”. These conversations became avenues for mentoring and guidance, for feedback and reassurance. These 1:1s were the reason I got promoted and given a team to lead. These meetings are the reason I haven’t completely screwed that up. These 1:1s have been my superpower, and I rely on them now more than ever. The power of having someone who makes themselves, their insight and experience available to you, who wants to help you succeed (whatever that means for you) is immeasurable. I wouldn’t be where I am today if we had just talked about status updates.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34e7c916424" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lincoln and The Hustle]]></title>
            <link>https://medium.com/@davidamcclain/lincoln-and-the-hustle-f5900e8f228e?source=rss-1456be0ecece------2</link>
            <guid isPermaLink="false">https://medium.com/p/f5900e8f228e</guid>
            <category><![CDATA[hustle]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <dc:creator><![CDATA[David A McClain]]></dc:creator>
            <pubDate>Wed, 25 May 2016 00:00:00 GMT</pubDate>
            <atom:updated>2016-05-26T05:28:07.131Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-nc-sa/4.0/</cc:license>
            <content:encoded><![CDATA[<p>I came across this Abraham Lincoln quote today:</p><blockquote><em>“Things may come to those who wait, but only the things left by those who hustle.”</em></blockquote><p>It sparked all sorts of notions in me. I love that it sounds like it could have been said today. If I didn’t attribute it, you might wonder if it was from Elon Musk? Jeff Bezos? Steve Jobs?</p><p>What I really love is that it serves as a reminder that our generation, this fifty-odd miles of San Francisco city and peninsula, didn’t invent the hustle. We didn’t come up with getting up early to work on our thing. Or working long into the night past when your eyes sting from tiredness. That we aren’t the first to want to change our world. That it’s just part of being human and long after everything around us crumbles, there will be people, and there will be hustle.</p><p><em>Originally published at </em><a href="http://blog.davidamcclain.com/2016/05/25/lincoln-and-the-hustle/"><em>blog.davidamcclain.com</em></a><em> on May 25, 2016.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f5900e8f228e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Do you know what problem you are trying to solve?]]></title>
            <link>https://medium.com/@davidamcclain/do-you-know-what-problem-you-are-trying-to-solve-9dab0d611d79?source=rss-1456be0ecece------2</link>
            <guid isPermaLink="false">https://medium.com/p/9dab0d611d79</guid>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[David A McClain]]></dc:creator>
            <pubDate>Fri, 12 Feb 2016 00:00:00 GMT</pubDate>
            <atom:updated>2016-04-15T15:10:45.726Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-nc-sa/4.0/</cc:license>
            <content:encoded><![CDATA[<blockquote>This post originally appeared on the <a href="http://multithreaded.stitchfix.com/blog/2016/02/12/do-you-know-what-problem-you-are-trying-to-solve">Stitch Fix Tech Blog</a> in February 2016</blockquote><p>This is a story I will one day tell my grandchildren. But as I have no grandchildren, you, dear reader, will have to do. Now sit down, pop this hard candy in your mouth and look interested.</p><p>The year was 2016. The first non-Terran President was something few of us had dreamed of, cars were still mostly driven by humans, email was still a thing (though it was on our wrists by now) and software was still being written. Yep! By fallible humans working with clicky keyboards and screens on desks.</p><p>At Stitch Fix I worked with the Merchandise (meaning clothing) team supporting the types of things a Merchandise team did at a fashion company, like placing Purchase Orders with Vendors. I was asked by one of the Buying Directors, Amanda, to give her insight into Purchase Order changes. “I want to know how many times a Purchase Order was revised.”</p><p>If I had built what she had asked for, I would have given her something like a history view so that she could pick any Purchase Order and see a history of the revisions. When the revision was made, who made it, what the nature of the revision was et cetera. I understood a lot about how buying works at Stitch Fix. I could understand why they would want to have this. I figured I knew how to represent this “history” in a compelling way that would aid understanding. I was excited to get started.</p><p>Being able to see the edit history of a Purchase Order is useful to have and if I had given her that she would have said “thank you, this is great” and I would have felt like I had done well in solving her problem. After all, she came to me with a problem and I delivered a solution. But maybe a week later she would have come back to me with “is there a way to download this history of a PurchaseOrder as a CSV?”. Easy. Here you go. Now I would be feeling really good about how much use she was getting from this feature. Then she’d ask, “is there a way to download this data for <em>all</em> Purchase Orders across a week, month or quarter?”. That would have been a little more involved, it probably would have taken a while but I would have built a CSV report downloader tool. “Great!” she would have said, and I wouldn’t have heard from her again as she buried her head in her pivot tables, or whatever it was they did in Excel, as she tried to use this data to answer the question of how much time her buyers were spending making revisions to Purchase Orders.</p><p>In this allegory, Amanda applied her knowledge of the engineering tools available (we’ve given them hundreds of CSV downloads) to her problem and came up with an elegant solution. “If I can get all the revision data from all our Purchase Orders into a CSV, I can find the Purchase Orders that required the most revising”. Perfectly sound and perfectly rational and it would have done the job.</p><p>But I didn’t do any of this. Instead I asked her “what problem are you trying to solve” and found that she was trying to build some metrics around the time and effort involved in the back and forth the Buyers were having with their Vendors. She was actually asking for some data to help give her some insight. I suggested that we could skip this “history view” completely and I could give her a report by Vendor showing the average number of revisions per Purchase Order. Vendors near the top of the report require more revisions per Purchase Order and require more time on our part to manage. We could even create a metric from this and make some sort of comparative analysis between Vendors and maybe work with them on uncovering what underlying issues were driving all these revisions.</p><p>In retelling the story to you now, you probably assume that your beloved Grandfather had some prophetic ability and somehow knew what Amanda was <em>really</em> asking for. Sadly not. At Stitch Fix we worked hard to ensure that we were working on the “right” thing. There was no end to the things we could do, nor things we wanted to do. There are not many <em>“sure things”</em> in life. Let alone in software engineering at a young, ambitious company.</p><p>One of the most powerful ways we had to do that is the simple question Jeff, our CTO, taught us to ask; “what problem are we trying to solve?”.</p><p>You can’t know how every bet will pan out, or even know what bets to make. But you can do a reasonable job of making sure that <em>at this moment in time, knowing what you know today</em> that you’re working on the most right thing. Jeff’s question, which became my mantra, helped to guide us to knowing as much about the problem as we can. In the process stripping away everybody’s assumptions and preconceived notions about what we ought to do and allowing everyone the ability to see the bigger picture.</p><p>Do you know what problem <em>you</em> are trying to solve?</p><p><em>Originally published at </em><a href="http://blog.davidamcclain.com/2016/02/12/do-you-know-what-problem-you-are-trying-to-solve/"><em>blog.davidamcclain.com</em></a><em> on February 12, 2016.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9dab0d611d79" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Those Who Can, Teach]]></title>
            <link>https://medium.com/@davidamcclain/those-who-can-teach-269eec52ff2e?source=rss-1456be0ecece------2</link>
            <guid isPermaLink="false">https://medium.com/p/269eec52ff2e</guid>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[mentorship]]></category>
            <category><![CDATA[ramblings]]></category>
            <dc:creator><![CDATA[David A McClain]]></dc:creator>
            <pubDate>Fri, 24 Apr 2015 00:00:00 GMT</pubDate>
            <atom:updated>2016-04-15T17:11:01.157Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-nc-sa/4.0/</cc:license>
            <content:encoded><![CDATA[<p>I can count on the fingers of one hand, of the software engineers that I’ve worked with, the ones who I’d drop everything for and go work with again.</p><p>There’s a range of personality types in there. Most I can joke with, but some are definitely more serious than others. Some I call friends and we hardly ever talk about code. Others “colleagues” who I know very little about.</p><p>There’s a range of backgrounds too. Some are CS majors, some self-taught. Some are all about throwing ideas against the wall and seeing what works, others are all about discipline and process.</p><p>I’ve realized that there’s a common thread that runs between them; they’re all great teachers.</p><p>Their teaching styles are as diverse as their personality types and backgrounds, but I learn so much from each of them. The differences in styles and approach all seemed to roughly end up having the same outcome. I’m so much better off for their presence in my life/career. I wouldn’t be here without their patience and their desire to share what they knew with me.</p><p>It got me thinking. Maybe for me, a key trait for what makes a great software engineer is the ability and desire to share knowledge.</p><p><em>Originally published at </em><a href="http://blog.davidamcclain.com/2015/04/24/those-who-can-teach/"><em>blog.davidamcclain.com</em></a><em> on April 24, 2015.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=269eec52ff2e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Jiro and René have a cup of tea]]></title>
            <link>https://medium.com/@davidamcclain/jiro-and-ren%C3%A9-have-a-cup-of-tea-49921b28f995?source=rss-1456be0ecece------2</link>
            <guid isPermaLink="false">https://medium.com/p/49921b28f995</guid>
            <category><![CDATA[stress]]></category>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[life-lessons]]></category>
            <dc:creator><![CDATA[David A McClain]]></dc:creator>
            <pubDate>Sat, 18 Apr 2015 00:00:00 GMT</pubDate>
            <atom:updated>2016-04-15T19:16:02.202Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-nc-sa/4.0/</cc:license>
            <content:encoded><![CDATA[<p>It’s easy to get caught up in “five year” plans and quietly freaking out at the thought you haven’t done enough yet.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F124820375&amp;url=https%3A%2F%2Fvimeo.com%2F124820375&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F515007388_1280.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=vimeo" width="1920" height="1080" frameborder="0" scrolling="no"><a href="https://medium.com/media/227b759a6f63609da5bcad369257d577/href">https://medium.com/media/227b759a6f63609da5bcad369257d577/href</a></iframe><p><a href="https://vimeo.com/124820375">Jiro Ono and René Redzepi Have a Cup of Tea</a> from <a href="https://vimeo.com/madsymposium">madfeed.co</a> on <a href="https://vimeo.com/">Vimeo</a>.</p><p><em>Originally published at </em><a href="http://blog.davidamcclain.com/2015/04/18/jiro-and-rene-have-a-cup-of-tea/"><em>blog.davidamcclain.com</em></a><em> on April 18, 2015.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49921b28f995" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Congratulations on Becoming a Software Engineer]]></title>
            <link>https://medium.com/@davidamcclain/congratulations-on-becoming-a-software-engineer-3d160eb49b74?source=rss-1456be0ecece------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d160eb49b74</guid>
            <category><![CDATA[mentorship]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[leadership]]></category>
            <dc:creator><![CDATA[David A McClain]]></dc:creator>
            <pubDate>Fri, 20 Mar 2015 00:00:00 GMT</pubDate>
            <atom:updated>2016-04-15T22:21:02.357Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-nc-sa/4.0/</cc:license>
            <content:encoded><![CDATA[<blockquote>This post originally appeared on the <a href="http://technology.stitchfix.com/blog/2015/03/20/congratulations-on-becoming-a-software-engineer/">Stitch Fix Tech Blog</a> in March 2015</blockquote><p>Now you know all about strings and ints and how Hash tables are ordered (or not). You know how to talk to a JSON API and build a Twitter clone in 3 different languages (or maybe 3 different JavaScript frameworks). Your aptitude, technical know-how and general pluckiness have helped you land your first real Software Development job. <strong>Congratulations</strong>. This is no easy feat. I know that you put in many hours of study and many more of frustration to get where you are today. By knowing how to write software, you’ve opened up for yourself a whole world of possibilities.</p><p>I was once in your shoes. But I soon learned that there’s a big difference between the skills you need to build working software and the skills you need to build working software that</p><ul><li>is well factored</li><li>meets today’s requirements while being adaptable for tomorrow’s</li><li>is structured so others can understand and make use of your code</li><li>is self-documenting</li><li>is tested well (as opposed to merely being tested)</li><li>has sound logic and reasoning behind it</li><li>is idiomatic in the language</li><li>is smart without being clever</li></ul><p>With a bit of experience under my belt, I can pick up the basics of a language or framework in a matter of hours, or perhaps days. But it will take me many times longer (months/years/never) to write anything “good” in that language. It’s the same with software engineering in general. And that’s what I want to talk about: how do you go from competent to “good”?</p><p>What this entails would fill several books, never mind one quick blog post. My aim isn’t to give you <em>“7 Shocking Things That’ll Make You A Rockstar Software Engineer Overnight”</em>. Instead, I want to make you aware of some of the places your amazing journey will take you on.</p><p>Problem is, <a href="http://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect">you don’t yet know what things you don’t know</a>. To start finding out, look around you at your new colleagues and try to deconstruct why they’re so good at their job. I assure you, it’s not because they know every esoteric way to interrogate arrays in Ruby.</p><p>It’s likely that they’re able to think about problems in a more abstract way than you are. It’s also likely that with experience they’ve gotten a hang for not just how to test something, but <em>what</em> to test in the first place. And, they’re a whiz at debugging not because they’re software gods, but because they understand the <strong>why</strong> and <strong>how</strong> of the code.</p><p>Talk to these people. Pair with them. Read their Pull Requests. <em>ASK QUESTIONS</em>. Find out if any of the more senior engineers are interested in mentoring. Or even just find one who’s patient enough to feed your inquisitiveness.</p><p>Ask them who their mentors are? Who do they learn from? <em>“I’d love to hear your opinions on this method I’m trying to refactor, do you have a few minutes for me?”</em>. Senior engineers <em>love</em> sharing their opinions!</p><p>TL;DR there’s more to being a software engineer than knowing how to code. It’s knowing what to code, and why. It’s about knowing how to talk to stakeholders. It’s about learning how to apply your considerable skills to solving their problems. (Ideally, the problems they have, not the problems they think they have — but more on that in a later post).</p><p>I’m sharing all this because I’m excited for you. To me, this is the most rewarding part of being a software engineer. Learning how to be a better craftsperson, a better communicator, a more effective problem solver, and a better salesperson.</p><p>I’ve been doing professional software development for a handful of years now and I was lucky to come to these realizations early on. I <strong>still</strong> have so much to learn but I have been very lucky to work with some really top notch engineers who were also great and patient teachers. I’ve always tried to join teams that are made up of better engineers than me. I think that this gets more important with seniority, not less. Through a little luck, and knowing what to ask, I’ve <strong>continued</strong> to find great and patient teachers.</p><h3>* cough * <a href="http://multithreaded.stitchfix.com/careers/">Stitch Fix is hiring</a> * cough *</h3><p>Most of all, I’m telling you this so that your eyes are opened to the potential in front of you. In life, we generally <strong>don’t know what we don’t know</strong>. Hopefully, now you have some idea of the road ahead.</p><h4>David</h4><p>Ok ok fine! Here’s your <em>“7 Shocking Things That’ll Make You A Rockstar Software Engineer Overnight”</em> list:</p><ol><li>Never be the smartest person in the room.</li><li>Never be ashamed to say “I don’t know”. Great things happen when you ask for help.</li><li>Be confident in what you know, but never believe that you know it all.</li><li>Never stop learning.</li><li>Try to teach what you know.</li><li>Always ask “why”, then follow up the answer with another “why”.</li><li>Have strong opinions, weakly held.</li></ol><p><em>Originally published at </em><a href="http://blog.davidamcclain.com/2015/03/20/congratulations-on-becoming-a-software-engineer/"><em>blog.davidamcclain.com</em></a><em> on March 20, 2015.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d160eb49b74" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>