<?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 Louis Simoneau on Medium]]></title>
        <description><![CDATA[Stories by Louis Simoneau on Medium]]></description>
        <link>https://medium.com/@louis_simoneau?source=rss-277347f1b7ac------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*OkZkjn6bPvPqGHvk.jpg</url>
            <title>Stories by Louis Simoneau on Medium</title>
            <link>https://medium.com/@louis_simoneau?source=rss-277347f1b7ac------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 19:35:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@louis_simoneau/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[Learning to Make Software, Part Two]]></title>
            <link>https://medium.com/@louis_simoneau/learning-to-make-software-part-two-fdad9b26f3f7?source=rss-277347f1b7ac------2</link>
            <guid isPermaLink="false">https://medium.com/p/fdad9b26f3f7</guid>
            <dc:creator><![CDATA[Louis Simoneau]]></dc:creator>
            <pubDate>Tue, 07 Apr 2020 06:08:27 GMT</pubDate>
            <atom:updated>2022-01-23T03:22:19.628Z</atom:updated>
            <content:encoded><![CDATA[<p>In the <a href="https://medium.com/@louis_simoneau/learning-to-make-software-part-1-b5a112a29dfc">first part</a> of this series, I touched on how important mental models are in learning software development. In part 2, I’ll cover another habit that helps new developers learn the ropes more quickly: they apply curiosity relentlessly.</p><p>It’s natural to be uncomfortable with ambiguity and uncertainty. Spend a few minutes thinking about things you don’t know and don’t understand, and you start feeling anxious. As a result, a lot of people learn to compartmentalize and avoid thinking about topics that seem complicated or unknown. They learn to live with not knowing and focus on the part of the code, system, or organization they understand.</p><h3>Spider the edges of your knowledge Graph</h3><p>The key to effective curiosity is becoming painfully aware of those unknowns. This is how you ask the right questions, look up the right documents, and attempt the right experiments.</p><p>For this, you need to not only apply your curiosity relentlessly, but also apply it in every direction. For any given topic, you can explore it in an infinite number of different ways. Think of a function in the standard library of your favourite programming language. How is it implemented under the hood? Why is it designed the way it is? What other similar functions exist? Could you replicate its behaviour with lower-level primitives?</p><p>Think of your knowledge as a <a href="https://en.wikipedia.org/wiki/Graph_theory">graph</a>. Each of the questions is an edge, and the things you know or don’t know are nodes. Start from something you know, and ask as many different questions as you can think of. For each answer, keep asking more questions until you reach the boundaries of your knowledge. This is sort of like a mind map, except that instead of mapping what you know, you’re specifically trying to find the places where your knowledge falls short.</p><blockquote><em>As geographers […] crowd into the edges of their maps parts of the world which they do not know about, adding notes in the margin to the effect, that beyond this lies nothing but sandy deserts full of wild beasts, unapproachable bogs, Scythian ice, or a frozen sea</em></blockquote><blockquote><em>— Plutarch, Parallel Lives (1st century)</em></blockquote><p>The quickest learners I’ve met are constantly doing this, intuitively and subconsciously. But if it doesn’t come naturally to you, I recommend doing it on paper. It’s a more deliberate exercise but accomplishes the same thing, and over time you’ll get better at doing it in your head.</p><h3>Knowledge Graphs in Practice</h3><p>Let’s work through an example, drawn from my recent experience studying machine learning in Python. One commonly used algorithm for machine learning is random forests. Let’s start there:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aDbU_lwrRcbkltIt7I6Iog.jpeg" /></figure><p>What is a random forest? It’s an ensemble of several simpler decision-tree models:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qxFjc1eItJcVAB-_7hoRCQ.jpeg" /></figure><p>What does ensemble mean? How does that work? The algorithm takes a bunch of randomly-chosen decision trees and averages them:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZLr9as9UI_lmqGt-P-_93Q.jpeg" /></figure><p>As soon as I write this down, a question pops into my head. Is the average weighted or are all the trees counted equally? I don’t know the answer to that question, so I jot it down and highlight it for later:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*etP3AwH8a7s3TwHCsZ7gUg.jpeg" /></figure><p>Now’s not the time to go off and find the answer, though. Instead, once you’ve reached the end of a branch of the graph, work your way back and see if you can come up with any other questions. In this case I can’t think of anything else, so I’ll start back at the center.</p><p>I know that you can control the training of ML algorithms like random forests using hyperparameters. I know a few of the hyperparameters used for random forests, so I draw them out. For a few of them (like max_depth and min_samples_leaf), I understand what they&#39;re doing, but for others my understanding is vague at best, so I highlight those. I&#39;m also pretty sure there are more hyperparameters I don&#39;t remember, so I draw in another circle with question marks:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2U-Q4IHSdMRKt-FtjbWpYw.jpeg" /></figure><p>The library I’ve been using for training random forests is Scikit-Learn. Are there others in Python? How about in other languages? I don’t know:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XRwpK4wzBHHkc9LOjZcF-Q.jpeg" /></figure><p>I know that when training random forests, you have to convert all of the features in your dataset to numbers. Why? I hadn’t really thought about it before. Maybe so that the data can be manipulated in numpy (implemented in C), so it’s much faster than if it had to be done in Python? This is an assumption, so I’ll highlight it as something I could confirm:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PHMKAK_Pm0hWvguEggaE-w.jpeg" /></figure><p>So far we’ve gone into the details of how random forests work, how they’re implemented, and how to use them. For the last branch I’ll go for breadth instead of depth. Random forests are just one ML algorithm based on decision trees. I’ve heard of at least one other: gradient boosted trees. I don’t know that much about boosted trees, so there’s another question mark:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rt6fEOMwvqGIUohhxLbUMw.jpeg" /></figure><p>The only real limit to how detailed one of these maps can be is how much time you have. For this example I’ve gathered a handful of questions. These range from ambiguities in my mental model and finer technical details, to avenues for learning more about related topics.</p><h3>Reviewing The Questions</h3><p>Here are all the questions I came up with:</p><ul><li>Does the averaging of trees in a random forest use weights?</li><li>What are the min_samples_split and bootstrap hyperparameters and what do they do?</li><li>What other hyperparameters are available in Scikit-Learn for training random forests?</li><li>Are there other Python libraries for random forests?</li><li>Why do features need to be numeric?</li><li>What are gradient boosted trees and how do they work?</li></ul><p>Now review the questions to decide which ones to follow up on. Here are some useful questions to ask: how much time/effort will it take to find this out? Is it at a level of detail that’s useful to me right now? Does it contribute to my <a href="https://louissimoneau.com/learning-to-make-software-part-1/">mental model</a> or is it a detail I will have to memorize? Let’s review the questions in that light:</p><ul><li>Does the averaging of trees in a random forest use weights?</li></ul><p>This is easy to answer with a quick Google search.</p><ul><li>What are the min_samples_split and bootstrap hyperparameters and what do they do?</li></ul><p>In some ways this is a low-level detail that I would only need if I was tuning those particular parameters. However, min_samples_split bugs me, because the way trees are split is fundamental to the algorithm, so not understanding it feels like a gap in my mental model. I’ll look it up and try to understand how it works.</p><ul><li>What other hyperparameters are available in Scikit-Learn for training random forests?</li></ul><p>I could look up the list of arguments, but it doesn’t feel likely that I’d remember them. Instead, next time I’m training a random forest model, I’ll try to pull in one new hyperparameter and understand it. I’ll talk more about this approach in Part 3 of this series.</p><ul><li>Are there other Python libraries for random forests?</li></ul><p>This is background knowledge related to the field in question, and could contribute to my general familiarity with machine learning. Maybe there are newer libraries with interesting features that I could experiment with. I’ll probably do a search and file away what I learn.</p><ul><li>Why do features need to be numeric?</li></ul><p>This is interesting, but it feels like a low-level implementation detail. I probably wouldn’t need to care unless I was implementing a random forest algorithm from scratch myself. For now, because I’m only aiming for a rough familiarity with machine learning and not in-depth expertise, I’ll leave this question aside.</p><ul><li>What are gradient boosted trees and how do they work?</li></ul><p>This is the question that will take the most time and effort to answer, but is a good candidate as a next topic of study for me. I won’t look it up right now, but next time I’ve got a block of time to research and study I might find a book chapter or tutorial and practice training a boosted tree model.</p><p>This entire process was quick (it took me about half an hour) and surfaced a lot of great avenues for learning.</p><p>In this case I applied the method to a theoretical concept, but it can be even more valuable if you apply it practically to aspects of your work. Try starting with a system in your team’s architecture (for example, the “recommendation service”) that’s adjacent to your work. Think about the domain model, implementation, and the services it interacts with, as well as how it fits into the business strategy and which teams know more about it. When reviewing your questions, think about the best way to answer them. Should you talk to an engineer who worked on a particular part of a system, or just read some source code?</p><h3>Validating Understanding</h3><p>A lot of the time the most valuable questions aren’t the ones that will take you down a new learning path (like the last one in the list above), but ones that can be answered easily with a Slack message to a colleague and will serve to round out your mental model or fix flawed assumptions.</p><p>This form of curiosity doesn’t require you to set aside time to study and learn in depth, it just requires you to practice validating questions. Far too often I see developers make assumptions and never question them, requiring more senior team members to guess at what they’re missing.</p><p>Start from the premise that, no matter how experienced you are, a sizeable number of the things you think you know are wrong. Maybe not flat-out nonsense levels of wrong, but at least subtly incorrect in some way. Take every opportunity in conversations to validate your knowledge:</p><ul><li>“Hey, so correct me if I’m wrong, but this is authenticated with OAuth2?”</li><li>“Ah, if I understand correctly, that doesn’t write directly to the database-there’s a queue, right?”,</li><li>“Hey, I just wanted to clarify something about the network layout of the VPC…”</li></ul><p>Believe me when I say you can’t do this too much. Even if the assumption you’re validating is correct 90% of the time, you’re helping to get the whole team on the same page, and potentially clarifying things for other team members who might be afraid to ask a question. Other times you’ll be mostly right but missing a small detail, so it’s a good opportunity to round out your mental model. Sometimes the person you’re asking doesn’t actually know the answer, and you get to find out together. It’s always a win.</p><p>By combining these approaches of discovering your blind spots and validating what you know, you’ll build up a pool of knowledge that isn’t limited to the purely technical hands-on skills of writing code. You’ll understand the organization, the architecture, the systems, and the theory.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fdad9b26f3f7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning To Make Software, Part One]]></title>
            <link>https://medium.com/@louis_simoneau/learning-to-make-software-part-1-b5a112a29dfc?source=rss-277347f1b7ac------2</link>
            <guid isPermaLink="false">https://medium.com/p/b5a112a29dfc</guid>
            <dc:creator><![CDATA[Louis Simoneau]]></dc:creator>
            <pubDate>Sat, 15 Feb 2020 06:05:43 GMT</pubDate>
            <atom:updated>2022-01-23T03:21:46.983Z</atom:updated>
            <content:encoded><![CDATA[<p>Learning modern software development is hard. The list of tools, techniques, platforms, and systems to master is immense and growing. Over the years I’ve seen some junior developers get up to speed remarkably quickly, while others struggle for months or years to achieve a basic level of productivity.</p><p>Why is that? There are a few patterns I’ve observed. Everyone is different, but I do think there are some approaches to learning, particularly in the field of software development, that yield an outsized return on investment. These are things I find myself repeating over and over in coaching conversations, so I thought I might as well write them down.</p><p>In this article I’ll focus on mental models. Part two will be about curiosity and validating understanding.</p><h3>Mental Models</h3><p>The fastest learners I know are constantly constructing mental models of how the systems they interact with actually work, and adjusting those models to fit new information.</p><blockquote><em>Well, the first rule is that you can’t really know anything if you just remember isolated facts and try and bang ’em back. If the facts don’t hang together on a latticework of theory, you don’t have them in a usable form.</em></blockquote><blockquote><em>— Charlie Munger, “A Lesson on Elementary, Worldly Wisdom”</em></blockquote><p>I like this quote a lot. As developers, there will always be aspects of the technology we use that we don’t have time to understand in depth. So when we need to learn how to use these tools, we sometimes fall back on “remembering isolated facts.” When I was starting out, I memorised a handful of git commands that I needed to use every day. I had no “latticework of theory” on which to hang these facts: I had no mental model of how git works. It was a black box, but I knew that if I poked it in certain ways I could get it to do what I needed.</p><p>Junior developers, out of necessity, treat virtually everything as a black box: the language interpreter, the operating system, the network protocol, and so on. It would be thoroughly overwhelming to attempt to understand even half of the tools and systems we interact with daily from the get go.</p><p>But as the days and weeks pass, we need to start cracking open some of those black boxes, for exactly the reason that Munger points out: our ability to remember isolated facts and recall them on demand is very limited. But when we integrate those facts into a coherent model, they become a lot easier to remember. The git commands I had memorised are no longer magic incantations, now they make sense.</p><h3>Mental Models and Memory</h3><p>Let’s say I give you two short, one-sentence stories to remember. In a week’s time, I’ll ask you to recite them word for word. Which of these are you more likely to remember accurately:</p><ul><li>Keyboard from Sally ordered her marketing, so she had to break a new one</li><li>Sally from marketing broke her keyboard, so she had to order a new one</li></ul><p>Both sentences are made up of the exact same words in the same structure, the only difference is that one of them makes sense based on our mental model of the world and the other is nonsense. But that distinction makes a significant difference in our ability to remember it.</p><h3>Putting it into Practice</h3><p>Let’s take a very common scenario in software development: you encounter an unfamiliar error message. So, of course, you Google the error, and find a useful post with some code purported to solve the problem. Now what?</p><p>If you want to deepen your understanding, first form some hypothesis as to why the error occurred. Your guess doesn’t need to be correct, it just needs to be consistent with everything you know about the system. When you’re just starting out, that won’t be much, so your mental model will likely be simple, vague, and wrong. This is fine.</p><p>Now that you have this model, try to predict what you need to change. You probably won’t know <em>how </em>to change it, but that doesn’t matter. If you think the problem is that the process doesn’t have permission to modify a temporary file, fine. If you think the florbagorgle can’t zyphox the redux, that’s fine too. Then, when you Google the answer, try to understand what the proposed solution is <em>doing </em>to the system. Let’s say the answer says you need to pass self to the function. Why? What will that change? Then when you implement the change, observe how the system reacts. Are you surprised? Good, that means your model was wrong in some way. Try to come up with a new model that fits everything you know <em>plus</em> the new observation.</p><h3>Rinse and Repeat</h3><p>This is just science. Formulate a hypothesis, then refute it by experiment. Gradually, as you do this over and over, your mental model of the system gets less and less wrong. As a result, it becomes easier and easier to reason about.</p><blockquote><em>When people thought the earth was flat, they were wrong. When people thought the earth was spherical, they were wrong. But if you think that thinking the earth is spherical is just as wrong as thinking the earth is flat, then your view is wronger than both of them put together.</em></blockquote><blockquote><em>— Isaac Asimov, “The Relativity of Wrong”</em></blockquote><p>Error messages are just one example. Almost every interaction we have with software tools and systems affords us some opportunity to understand them better.</p><p>I should note here that even experienced programmers don’t do this <em>all the time</em>, because that would be exhausting and you’d never get anything done. Sometimes you just use the tool or remember commands by heart (I still don’t properly understand ps, I just type ps aux | grep foo every time). Sometimes you just copy/paste the snippet from StackOverflow. But that shouldn&#39;t be the default. It&#39;s ok if you&#39;ve consciously decided that something isn&#39;t worth understanding because it&#39;s not central to your job, or because you don&#39;t have time right now. But in other cases, try to build mental models when you can.</p><h3>What Next?</h3><p>This first part has mostly been about how to learn about software systems from the systems themselves. In part two we’ll look at learning from your team, colleagues, and mentors by practicing curiosity and validating your understanding.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b5a112a29dfc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>