<?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 Kat Busch on Medium]]></title>
        <description><![CDATA[Stories by Kat Busch on Medium]]></description>
        <link>https://medium.com/@katbusch?source=rss-646518ee5ad7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*vjMfzE3W6tCYXvN7kJ1g3w.png</url>
            <title>Stories by Kat Busch on Medium</title>
            <link>https://medium.com/@katbusch?source=rss-646518ee5ad7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 02:52:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@katbusch/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[TypeScript enums explained]]></title>
            <link>https://medium.com/@katbusch/typescript-enums-explained-e5f9a101afc9?source=rss-646518ee5ad7------2</link>
            <guid isPermaLink="false">https://medium.com/p/e5f9a101afc9</guid>
            <category><![CDATA[enum]]></category>
            <category><![CDATA[node]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[typescript]]></category>
            <dc:creator><![CDATA[Kat Busch]]></dc:creator>
            <pubDate>Sun, 13 May 2018 21:42:54 GMT</pubDate>
            <atom:updated>2026-08-09T13:57:25.118Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>This blog has moved! <a href="https://katbusch.substack.com/p/typescript-enums-explained-e5f9a101afc9">Find this post on Substack</a>.</blockquote><p>This article explains the difference between Typescript’s enum, const enum, declare enum, and declare const enum identifiers. Caveat: I don’t recommend you use any of these enums most of the time. See the recommendation section at the end for details.</p><p>You can follow along with these explanations in <a href="https://www.typescriptlang.org/play/#src=%2F%2F%20Transpiles%20to%20a%20lookup%20table%0D%0Aenum%20Cheese%20%7B%20Brie%2C%20Cheddar%20%7D%0D%0A%0D%0A%2F%2F%20Evaluates%20to%200%20at%20runtime%0D%0ACheese.Brie%0D%0A%0D%0A%2F%2F%20Evaluates%20to%20&#39;Brie&#39;%20at%20runtime%0D%0ACheese%5B0%5D%0D%0A%0D%0A%2F%2F%20Evaluates%20to%200%20at%20runtime%0D%0ACheese%5B&#39;Brie&#39;%5D%0D%0A%0D%0A%2F%2F%20Transpiler%20emits%20nothing%20at%20delcaration%0D%0Aconst%20enum%20Bread%20%7B%20Rye%2C%20Wheat%20%7D%0D%0A%0D%0A%2F%2F%20Emits%200%20at%20compile%20time%0D%0ABread.Rye%0D%0A%0D%0A%2F%2F%20Compiler%20error.%20const%20enums%20don&#39;t%20provide%20reverse%20lookup.%0D%0A%2F%2FBread%5B0%5D%0D%0A%0D%0A%2F%2F%20Emits%20nothing%20because%20it&#39;s%20expecting%20a%20declaration%20elsewhere%0D%0Adeclare%20enum%20Wine%20%7B%20Red%2C%20Wine%20%7D%0D%0A%0D%0A%2F%2F%20Emits%20Wine.Red%20and%20Wine%5B0%5D%20but%20these%20will%20error%20out%20at%20runtime%0D%0A%2F%2F%20without%20a%20declaration%20elsewhere%0D%0AWine.Red%0D%0AWine%5B0%5D%0D%0A%0D%0A%2F%2F%20Emits%20nothing%20at%20compile%20time%0D%0Adeclare%20const%20enum%20Fruit%20%7B%20Apple%2C%20Pear%20%7D%0D%0A%0D%0A%2F%2F%20Emits%200%20at%20compile%20time%0D%0AFruit.Apple%0D%0A%0D%0A%2F%2F%20Compiler%20error.%20const%20enums%20don&#39;t%20provide%20reverse%20lookup.%0D%0AFruit%5B0%5D%0D%0A%0D%0A%2F%2F%20Emits%20a%20lookup%20table%20with%20just%20strings%0D%0Aenum%20Beer%20%7B%0D%0A%20%20%20%20Lager%20%3D%20&#39;Lager&#39;%2C%0D%0A%20%20%20%20Ale%20%3D%20&#39;Ale&#39;%2C%0D%0A%7D%0D%0A%2F%2F%20Evaluate%20to%20&#39;Lager&#39;%20at%20runtime%0D%0ABeer.Lager%0D%0ABeer%5B&#39;Lager&#39;%5D%0D%0A%0D%0A%2F%2F%20Emits%20nothing%0D%0Aconst%20enum%20Dip%20%7B%0D%0A%20%20%20%20Guacamole%20%3D%20&#39;Guacamole&#39;%2C%0D%0A%20%20%20%20Salsa%20%3D%20&#39;Salsa&#39;%2C%0D%0A%7D%0D%0A%2F%2F%20The%20value%20&#39;Guacamole&#39;%20is%20inlined%20at%20compile%20time.%0D%0ADip.Guacamole%0D%0A%0D%0A%2F%2F%20String%20literal%20types%20are%20similar%20to%20enums%20and%20easy%20to%20use.%0D%0Atype%20Nut%20%3D%20&#39;walnut&#39;%20%7C%20&#39;almond&#39;%3B%0D%0Aconst%20nutPrinter%20%3D%20(nut%3A%20Nut)%20%3D%3E%20console.log(nut)%3B%0D%0A%0D%0AnutPrinter(&#39;walnut&#39;)%3B%0D%0A%0D%0A%2F%2F%20This%20errors%20out%20at%20compile%20time%20because%20pear%20is%20not%20a%20Nut.%0D%0AnutPrinter(&#39;pear&#39;)%3B">this TypeScript playground</a>.</p><h3>enum</h3><p>enum Cheese { Brie, Cheddar }</p><p>First, a plain old enum. The JavaScript transpiler will emit a lookup table. The lookup table looks like this:</p><pre>var Cheese;<br>(function (Cheese) {<br>  Cheese[Cheese[&quot;Brie&quot;] = 0] = &quot;Brie&quot;;<br>  Cheese[Cheese[&quot;Cheddar&quot;] = 1] = &quot;Cheddar&quot;;<br>})(Cheese || (Cheese = {}));</pre><p>Then when you have Cheese.Brie in TypeScript, it emits Cheese.Brie in JavaScript which evaluates to 0. Cheese[0] emits Cheese[0] and actually evaluates to “Brie”. The reverse lookup options is unique to enums and can be pretty convenient.</p><h3>const enum</h3><p>const enum Bread { Rye, Wheat }</p><p>No code is actually emitted for this! Its values are inlined. The following variations emit the value 0 itself in JavaScript:</p><pre>Bread.Rye<br>Bread[&#39;Rye&#39;]</pre><p>Inlining might be useful for performance reasons, although as with all performance optimizations be sure to take note of the trade-off of readability that you’re signing up for.</p><p>But what about Bread[0]? This will error out at runtime and your compiler should catch it. There’s no lookup table and the compiler doesn’t inline here.</p><p>Note that in the above case, the --preserveConstEnumsflag will cause Bread to emit a lookup table. Its values will still be inlined though.</p><h3>declare enum</h3><p>declare enum Wine { Red, Wine }</p><p>As with other uses of declare, declare emits no code and expects you to have defined the actual code elsewhere. This enum version emits no lookup table.</p><p>Wine.Red emits Wine.Red in JavaScript, but there won’t be any Wine lookup table to reference so it’s an error unless you’ve defined the actual enum elsewhere.</p><h3>declare const enum</h3><p>declare const enum Fruit { Apple, Pear }</p><p>This emits no lookup table, but it does inline! Fruit.Apple emits 0.</p><p>But as with const enum, Fruit[0]will error out at runtime because it’s not inlined and there’s no lookup table.</p><h3>strings enums and const string enums</h3><p>As of <a href="https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-4.html">TypeScript 2.4</a>, you can also create string enums. String enums are like standard int enums but you specify string initializers when you declare your enum.</p><pre>enum Beer {<br>    Lager = &#39;Lager&#39;,<br>    Ale = &#39;Ale&#39;,<br>}</pre><p>The above string enum will generate this lookup table in Javascript:</p><pre>var Beer;<br>(function (Beer) {<br>    Beer[&quot;Lager&quot;] = &quot;Lager&quot;;<br>    Beer[&quot;Ale&quot;] = &quot;Ale&quot;;<br>})(Beer || (Beer = {}));</pre><p>So Beer.Lager and Beer[&#39;Lager’] both evaluate to &#39;Lager&#39;. There are no longer any numbers associated with your enum at all.</p><p>Just as with number enums, you can declare a const string enum that will inline the string literals themselves in transpiled JavaScript.</p><h3>Recommendation</h3><p>So of the many types of enums which do I recommend using?</p><p>Trick question: none.</p><p>I recommend <a href="http://www.typescriptlang.org/docs/handbook/advanced-types.html">string literal types</a>. It’s more TypeScripty. It’s extremely readable. You can see it in the code as is. If you print the value of a variable you won’t get a mysterious 0 or 1; you’ll get the actual string itself every time.</p><p>Because of that, it’s also easily JSONifiable and produces JSON that you can read in other languages without having to maintain the enum mapping in other languages.</p><p>It also lets you easily do cool TypeScript things like <a href="http://www.typescriptlang.org/docs/handbook/advanced-types.html">mapped types</a>.</p><p>Here’s an example:</p><p>type Nut = &#39;walnut&#39; | &#39;almond&#39;;</p><p>Now, just as with enums, if your function accepts Nut, the compiler will error when a different string is passed in. Check out <a href="https://www.typescriptlang.org/play/#src=%2F%2F%20Transpiles%20to%20a%20lookup%20table%0D%0Aenum%20Cheese%20%7B%20Brie%2C%20Cheddar%20%7D%0D%0A%0D%0A%2F%2F%20Evaluates%20to%200%20at%20runtime%0D%0ACheese.Brie%0D%0A%0D%0A%2F%2F%20Evaluates%20to%20&#39;Brie&#39;%20at%20runtime%0D%0ACheese%5B0%5D%0D%0A%0D%0A%2F%2F%20Evaluates%20to%200%20at%20runtime%0D%0ACheese%5B&#39;Brie&#39;%5D%0D%0A%0D%0A%2F%2F%20Transpiler%20emits%20nothing%20at%20delcaration%0D%0Aconst%20enum%20Bread%20%7B%20Rye%2C%20Wheat%20%7D%0D%0A%0D%0A%2F%2F%20Emits%200%20at%20compile%20time%0D%0ABread.Rye%0D%0A%0D%0A%2F%2F%20Compiler%20error.%20const%20enums%20don&#39;t%20provide%20reverse%20lookup.%0D%0A%2F%2FBread%5B0%5D%0D%0A%0D%0A%2F%2F%20Emits%20nothing%20because%20it&#39;s%20expecting%20a%20declaration%20elsewhere%0D%0Adeclare%20enum%20Wine%20%7B%20Red%2C%20Wine%20%7D%0D%0A%0D%0A%2F%2F%20Emits%20Wine.Red%20and%20Wine%5B0%5D%20but%20these%20will%20error%20out%20at%20runtime%0D%0A%2F%2F%20without%20a%20declaration%20elsewhere%0D%0AWine.Red%0D%0AWine%5B0%5D%0D%0A%0D%0A%2F%2F%20Emits%20nothing%20at%20compile%20time%0D%0Adeclare%20const%20enum%20Fruit%20%7B%20Apple%2C%20Pear%20%7D%0D%0A%0D%0A%2F%2F%20Emits%200%20at%20compile%20time%0D%0AFruit.Apple%0D%0A%0D%0A%2F%2F%20Compiler%20error.%20const%20enums%20don&#39;t%20provide%20reverse%20lookup.%0D%0AFruit%5B0%5D%0D%0A%0D%0A%2F%2F%20Emits%20a%20lookup%20table%20with%20just%20strings%0D%0Aenum%20Beer%20%7B%0D%0A%20%20%20%20Lager%20%3D%20&#39;Lager&#39;%2C%0D%0A%20%20%20%20Ale%20%3D%20&#39;Ale&#39;%2C%0D%0A%7D%0D%0A%2F%2F%20Evaluate%20to%20&#39;Lager&#39;%20at%20runtime%0D%0ABeer.Lager%0D%0ABeer%5B&#39;Lager&#39;%5D%0D%0A%0D%0A%2F%2F%20Emits%20nothing%0D%0Aconst%20enum%20Dip%20%7B%0D%0A%20%20%20%20Guacamole%20%3D%20&#39;Guacamole&#39;%2C%0D%0A%20%20%20%20Salsa%20%3D%20&#39;Salsa&#39;%2C%0D%0A%7D%0D%0A%2F%2F%20The%20value%20&#39;Guacamole&#39;%20is%20inlined%20at%20compile%20time.%0D%0ADip.Guacamole%0D%0A%0D%0A%2F%2F%20String%20literal%20types%20are%20similar%20to%20enums%20and%20easy%20to%20use.%0D%0Atype%20Nut%20%3D%20&#39;walnut&#39;%20%7C%20&#39;almond&#39;%3B%0D%0Aconst%20nutPrinter%20%3D%20(nut%3A%20Nut)%20%3D%3E%20console.log(nut)%3B%0D%0A%0D%0AnutPrinter(&#39;walnut&#39;)%3B%0D%0A%0D%0A%2F%2F%20This%20errors%20out%20at%20compile%20time%20because%20pear%20is%20not%20a%20Nut.%0D%0AnutPrinter(&#39;pear&#39;)%3B">the playground</a> to see that in action.</p><h4>But what if I have to use an enum?</h4><p>If you go with an enum because you need it for some legacy reason, I recommend a string enum if that fits your needs. It’s the most similar to a string literal type. If not, a plain old enum will likely cause the least confusion. If you need to go with enums for performance reasons and you’re truly <a href="https://hackernoon.com/the-rules-of-optimization-why-so-many-performance-efforts-fail-cf06aad89099">sure that’s your bottleneck</a>, const enum is the way to go.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e5f9a101afc9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[So your website is slow? Let’s fix that.]]></title>
            <link>https://medium.com/@katbusch/so-your-website-is-slow-lets-fix-that-7c4e9e6a7131?source=rss-646518ee5ad7------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c4e9e6a7131</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[web-performance]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Kat Busch]]></dc:creator>
            <pubDate>Thu, 09 Nov 2017 05:12:33 GMT</pubDate>
            <atom:updated>2026-08-09T14:00:18.215Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*JLLTmH2dKuN_2cGHq6wwDg.jpeg" /></figure><blockquote>This blog has moved! <a href="https://katbusch.substack.com/p/so-your-website-is-slow-lets-fix-that-7c4e9e6a7131">Find this post on Substack</a>.</blockquote><p>A lot of websites are slow.</p><p>Many web developers don’t even know our websites slow because we’re on fast internet with great hardware and we live close to our servers.</p><p>But what if you have users on the opposite side of the globe from your server? What if their bandwidth is miniscule? What if they’re on a phone? It could take them ages to load your site. And users’ slow CPUs might spend an eternity computing the next animation frame.</p><p>What’s an engineer to do? Here I’ll introduce how to think about web performance and how to go about identifying and fixing web performance problems. This article will familiarize you with web performance concepts. I’ll point you in the right direction so you can figure out where to get started and where to invest your time when you’re tackling your website’s performance.</p><h3>What is a page load?</h3><p>To understand why websites can be slow, let’s go through the stages of everything that goes into loading a web page. This article focuses on page load speed, not how responsive your website is once it’s done loading, but some of the same tools apply to both stages.</p><h3>Getting connected</h3><p>Before you can start loading any website, you’ve got to open a connection between the browser and the target site. This includes DNS lookup to find your website’s IP address; a TCP handshake to establish a connection; and an SSL handshake to set up encryption (I hope!). That means you’ve already got several round trips to and from your servers before the user even begins to load your content. If your servers are on the other side of the planet from your client, each round trip is going to be over 100 milliseconds. You can’t beat the speed of light! If you’re looking for a page load of less than a second, you already have slashed off almost a third of your time with the three round trips needed to initiate a secure connection.</p><p>Note that there’s a quick fix here if your stack is up to date. HTTP/2 can use caching to reduce SSL setup to only one round trip — just one of many reasons to consider HTTP/2 if you don’t use it already.</p><h3>Server response</h3><p>Okay, you’ve connected! Now your servers have to start doing some work to deliver bytes to the user. Depending on the design and nature of your service, response time can vary wildly. Is your website a bit of static content, or do you need to do all sorts of database lookups and computation to prepare a response? Do you compute the whole page and push it at once, or do you send a shell and push other content as it becomes available? Are you rendering React on the server? Your server response could take anywhere from a few milliseconds to hundreds of milliseconds or more.</p><h3>Content download</h3><p>So some sort of response has been prepared. Now clients have to download that response from your servers. Transferring a large response could take a while on a slow or flakey connection.</p><p>The browser can quickly begin to parse the response. As soon as it starts parsing, it’ll probably receive instructions to go and download a bunch more stuff: <a href="https://hackernoon.com/tagged/css">CSS</a>, images, and <a href="https://hackernoon.com/tagged/javascript">JavaScript</a>. At this point, many websites tap content delivery networks (CDNs) that are experts at delivering static content quickly around the globe.</p><p>And thus the great download of JavaScript, CSS, and images begins. Some large modern websites tend to measure their JavaScript alone in hundreds of kilobytes to megabytes, even after compression. If you have a 100 megabit connection, that will only take tens or hundreds of milliseconds. But if you’re on a 5 megabit connection (like some mobile networks), you’re looking at over a second of content download time, and if you’re on a slower or flakier network, this could take many seconds.</p><h3>Parsing and execution</h3><p>Luckily, the browser usually parallelizes this download step with parsing and execution. Once your CSS is in, rendering begins even if JavaScript is still loading. When any JavaScript comes down, the browser begins to go through the rather expensive tasks of parsing and then executing it. It will also lazily parse JavaScript — parsing is CPU intensive and on a slow client it can add seconds to page load time.</p><h3>Everything else</h3><p>Your JavaScript might kick off requests to your server that download more data. Websites can have post-load pipelines to show you more stories on your newsfeed, more products on your store, load a new menu, download higher res images, etc. You might have some CPU-heavy JavaScript computations that need to be done while your user is interacting with your page, like if you have too much going on in a React render function. Maybe you offload some decoding to a Web Worker. Websites diverge a lot after the initial page load.</p><h3>What to do about it</h3><p>Wow! That’s a lot of stuff that goes on just to load a page! The good news is there’s a lot of great tools to help you dig in and understand your performance.</p><h3>Profile, profile, profile</h3><p>You might be tempted after reading this to go tear out a bunch of JavaScript code because your number of kilobytes of JavaScript seems high. Stop!</p><p><a href="https://hackernoon.com/the-rules-of-optimization-why-so-many-performance-efforts-fail-cf06aad89099">As with any performance problem</a>, the first step is simply to profile. No point putting your codebase through the ringer if it turns out performance isn’t a pressing problem for you.</p><p>You need to understand your performance so that you can decide whether it’s a problem. There are a lot of great tools for profiling web pages. On your own machine you can use the <a href="https://developers.google.com/web/tools/chrome-devtools/evaluate-performance/reference">Chrome</a>, <a href="https://developer.mozilla.org/en-US/docs/Tools/Performance">Firefox</a> and <a href="https://docs.microsoft.com/en-us/microsoft-edge/f12-devtools-guide/performance">Edge</a> profilers. These can give you an idea of how much time is spent in various stages of the page load, from network requests to JavaScript execution. Sometimes performance will vary wildly from one browser to the next because of implementation differences.</p><p>You can use these browser dev tools to <a href="https://developers.google.com/web/tools/chrome-devtools/network-performance/reference#throttling">emulate slower connections</a>, so you can see what some of your users might be experiencing. Pretending to be on 2G is a fun one.</p><p>Make sure you test your page with static resources both <a href="https://stackoverflow.com/questions/14969315/whats-the-difference-between-normal-reload-hard-reload-and-empty-cache-a">uncached and cached</a>.</p><p>You can also use tools like <a href="https://www.webpagetest.org/">webpagetest</a> to see what page loads are like from different browsers and different places around the world.</p><h3>Log, log, log</h3><p>On top of that, strongly consider logging page load times for your users. The <a href="https://developer.mozilla.org/en-US/docs/Web/API/Navigation_timing_API">Navigation Timing API</a> and <a href="https://developer.mozilla.org/en-US/docs/Web/API/Resource_Timing_API">Resource Timing API</a> are your friends. Send the information from these APIs on your users’ machines to your servers and collect it for analysis.</p><p>But careful when interpreting results: these APIs measure many different stages of your page load. Make sure you figure out <a href="https://www.stevesouders.com/blog/2015/08/07/dominteractive-is-it-really/">which event</a> actually lines up with when the user can view or interact with your page.</p><p>This user data will let you see the actual performance real users are experiencing and help you get a breakdown of where time is being spent. Logging will help you home in on problems by looking at which countries, browsers, and devices are suffering.</p><p><a href="https://engineering.linkedin.com/blog/2017/10/sleek-and-fast--speeding-up-your-fat-web-client">Some teams</a> find it helpful to log performance metrics on every commit or run perf tests on every commit to identify degrading performance quickly. After your profiling, you probably have a good idea of which metrics you need to track and log for each commit: bytes of JavaScript, number of images, etc.</p><h3>Now for the fun part: make your page fly</h3><p>If your investigations reveal that your website is slower than you want to be in a way that you believe is impacting user experience, it’s time to get to work. Your profiling information should already have revealed to you where to get started.</p><p>There are lots of small changes that can speed things up: <a href="https://developers.google.com/speed/docs/insights/AvoidRedirects">remove redirects</a>, <a href="https://www.w3.org/TR/resource-hints/#preconnect">preconnect to the CDN</a>, etc.</p><p>For many web pages, the main thing you can do to make your website faster is load less stuff. <a href="https://redfin.engineering/i-watched-all-of-the-chrome-dev-summit-2017-videos-so-you-dont-have-to-9b62a593c3cb">Google recommends</a> you keep your page weight to 1 megabyte uncompressed.</p><p>Minify JavaScript, compress your content, turn on <a href="https://webpack.js.org/guides/tree-shaking/">tree shaking</a>. Use <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script">async and defer</a> whenever possible to load scripts that aren’t needed right away. Remove unnecessary images. Load only the JavaScript you actually need. Remove code for inaccessible features. Redesign your page to load fewer images! Lots of huge images on your homepage might look really snazzy on your fast office internet, but what does it look like on a slower connection where they load pixel by pixel?</p><p>But be careful to keep the big picture in mind instead of only adding on some hacks that will make your code more complicated and will break in a few months. <a href="http://engineering.khanacademy.org/posts/js-packaging-http2.htm">Upgrading to HTTP/2.0 won’t solve all your problems</a> if you’re just loading too much data. On the other hand, a thoughtful rearchitecting to make your website’s performance stable for a long period might be the best investment of your time. For instance, you might want to make it so that your page’s components load <a href="https://www.facebook.com/notes/facebook-engineering/bigpipe-pipelining-web-pages-for-high-performance/389414033919/">in parallel</a>, <a href="https://open.nytimes.com/react-relay-and-graphql-under-the-hood-of-the-times-website-redesign-22fb62ea9764">use GraphQL</a> to load only necessary data, or implement <a href="https://medium.com/netflix-techblog/making-netflix-com-faster-f95d15f2e972">server-side rendering</a>.</p><h3>Eyes on the prize: user experience</h3><p>But don’t miss the forest for the trees. Your end goal should always be focused on your users and improving their experience. Performance is just one aspect of the overall experience of your website. If you’re smart about your development process, you’ll make a page that’s not only snappy but also delightful to use.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c4e9e6a7131" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Quick Tips for Gitting on a Team]]></title>
            <link>https://medium.com/@katbusch/quick-tips-for-gitting-on-a-team-33533d75aea9?source=rss-646518ee5ad7------2</link>
            <guid isPermaLink="false">https://medium.com/p/33533d75aea9</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[version-control]]></category>
            <dc:creator><![CDATA[Kat Busch]]></dc:creator>
            <pubDate>Sat, 17 Jun 2017 22:44:14 GMT</pubDate>
            <atom:updated>2023-09-29T17:04:59.516Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>This blog has moved! <a href="https://katbusch.substack.com/p/quick-tips-for-gitting-on-a-team-33533d75aea9">Find this article on Substack</a>.</blockquote><p><em>A series on best practices in large codebases for new engineers. This one focuses on version control etiquette.</em></p><p>If you’re new to using <a href="https://hackernoon.com/tagged/git">git</a> on a team instead of solo, this super fast primer will help you get started with standard workflows and etiquette.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qyb8KwjrYGrEiSAm-MTfNw.jpeg" /><figcaption>Hopefully not what your commit history looks like! By austrini [CC BY 2.0 (<a href="http://creativecommons.org/licenses/by/2.0">http://creativecommons.org/licenses/by/2.0</a>)], via Wikimedia Commons</figcaption></figure><h3>Use feature branches</h3><p>Use <a href="https://guides.github.com/introduction/flow/">feature branches</a>. Don’t push your <a href="https://hackernoon.com/tagged/work">work</a> directly to the master branch until it’s finalized and (depending on your team’s culture) code reviewed. This is basic and discussed in many great tutorials so I won’t go into detail, but it’s a precursor to pretty much all work in larger teams.</p><h3>Don’t mix bug fixes with feature work</h3><p>If there’s a bug in the master branch, it’s a good idea to create a new branch (perhaps with a name starting with “fix/”) and file a pull request. An independent branch ensures that the fix can be merged independently of other work. If you tack it on to a pull request for a less important feature you might hold up others who are waiting for the fix and create many angry team members.</p><h3>Write clear commit messages</h3><p>When you’re working on a team, the repo’s commit history is a vital record of the progress of a project and an essential tool for finding bugs and understanding code. In three weeks or three years, somebody (even you!) might look back at your commit message to figure out why you wrote something. Help them out! Try to make your commit messages as clear and concise as possible.</p><p>Not clear:</p><blockquote>“Fix bug with colors”</blockquote><p>Clear:</p><blockquote>“Fix issue #16: make send button change colors on press”</blockquote><p>Not very specific:</p><blockquote>“Add list endpoint”</blockquote><p>Specifies the relevant part of the repo:</p><blockquote>“[Photos controller] Add functionality to list recent photos”</blockquote><h3>Squash commits before merging</h3><p>Squashing commits is the process of taking several commits and rewriting them into one commit. Squashing creates a clean commit history. When you and your teammates are looking back at the log on master, instead of seeing a jumble of crap like this:</p><blockquote>Thu May 18 13:52 lint errors</blockquote><blockquote>Mon May 22 14:47 Feedback from CR</blockquote><blockquote>Thu May 18 16:04 Lololol oops</blockquote><blockquote>Thu May 18 16:03 Fix tests</blockquote><blockquote>Thu May 18 13:52 Fix lint errors</blockquote><blockquote>Thu May 18 13:39 Forgot to add file</blockquote><blockquote>Thu May 18 13:36 Start on compression</blockquote><p>They’ll only see one commit with a clear description of your change:</p><blockquote>Mon May 22 15:47 Add video compression option to uploader</blockquote><p>Squashing means you can feel free to have lots of crazy work-in-progress commits on your feature branch. Just clean it up with a squash before submitting your pull request and/or before merging with master.</p><p>There are <a href="https://stackoverflow.com/questions/5189560/squash-my-last-x-commits-together-using-git">several ways</a> to squash with git. GitHub actually now allows you to squash commits with the GitHub UI. If your repo has the correct settings turned on you’ll see a “squash and merge” button on your pull request.</p><h3>Rebase before merging</h3><p>Consider rebasing your branch on top of master before you merge. If you merge, you’re combining master and your branch by creating a new commit that corrects conflicts:</p><blockquote>[on master] Merge branch ‘video_compression’</blockquote><blockquote>[from your branch, now on master] Add video compression option to uploader</blockquote><blockquote>[from master] Fix issue #17: remove uploader exit button</blockquote><p>You could end up with a lot of merge commits this way. If instead you rebase on top of master, you correct the merge conflicts in your commit and end up with this cleaner history once you merge:</p><blockquote>[from your branch, now on master] Add video compression option to uploader</blockquote><blockquote>[from master] Fix issue #17: remove uploader exit button</blockquote><p>One warning: it’s always better to squash THEN rebase instead of rebase then squash. Git rebases commits one by one. If you haven’t squashed, you’ll need to resolve conflicts in every commit it in your branch with master. If you squash, you’ll only need to resolve one commit’s conflicts.</p><h3>And that’s it!</h3><p>Keep in mind that these tips all describe fairly common practices, but customs vary from team to team. If you’re working on a codebase with an existing repo, ask your teammates about their git conventions.</p><p>If you have any other tips for gitting on a team, feel free to leave them in a response.</p><p>Article 1: <a href="https://hackernoon.com/trust-no-one-an-introduction-to-large-codebases-for-new-engineers-100586a87a5f">Trust No One: An Introduction to Large Codebases for New Engineers</a></p><p>Article 2: <a href="https://hackernoon.com/treat-yourself-e55a7c522f71">A Beginner’s Guide to Automated Testing</a></p><p>Article 3: <a href="https://medium.com/@katbusch/quick-tips-for-gitting-on-a-team-33533d75aea9">Quick Tips for Gitting on a Team</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33533d75aea9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Software Engineer’s Essential Time Estimation Guide]]></title>
            <link>https://medium.com/@katbusch/a-software-engineers-essential-time-estimation-guide-d7328238c510?source=rss-646518ee5ad7------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7328238c510</guid>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[time-management]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[project-estimating]]></category>
            <category><![CDATA[software-estimation]]></category>
            <dc:creator><![CDATA[Kat Busch]]></dc:creator>
            <pubDate>Sat, 25 Feb 2017 01:04:34 GMT</pubDate>
            <atom:updated>2023-09-29T17:06:10.615Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>This blog has moved! <a href="https://katbusch.substack.com/p/a-software-engineers-essential-time-estimation-guide-d7328238c510">Find this article on Substack</a>.</blockquote><blockquote>Hofstadter’s Law: It always takes longer than you expect, even when you take into account Hofstadter’s Law. — <a href="https://en.wikipedia.org/wiki/Douglas_Hofstadter">Douglas Hofstadter</a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*bSv14nQ9PKjsuOLGceSD3g.png" /><figcaption>By Rogerborrell (Own work) [CC BY-SA 4.0 (<a href="http://creativecommons.org/licenses/by-sa/4.0">http://creativecommons.org/licenses/by-sa/4.0</a>)], via Wikimedia Commons</figcaption></figure><p>A Product Manager friend of mine recently told me about a problem she was having: “<a href="https://hackernoon.com/tagged/software">Software</a> engineers can never estimate how long their projects will take. What can I do?” Two CEOs recently told me the same thing.</p><p>We engineers have all witnessed this too. I once saw a project estimated at two days take four months. In that case even the “just double it” heuristic would <em>still</em> be off by an order of magnitude. This can have real implications for the business. I’ve seen a whole company move mountains for a launch event that had to be pushed out months.</p><p>At a high level the problem is a difference between what engineers mean when we estimate time and what PMs, managers, PR, and really everybody else mean. Most engineers instinctively think about the minimum time to write a working prototype if everything goes pretty much as planned. But those blocked downstream want to know when the project will be <strong>ready for launch</strong> — and that’s a totally different story.</p><p>For engineers, mastering estimation is a lifelong journey. Neglecting it will plague you and everyone you directly or indirectly interface with. Mastering estimation will set you apart and your colleagues will associate you with professionalism, stability, and quality work.</p><h3>Why we need to estimate</h3><p>Let me start by answering the question I most often get from engineers: “Why bother?” Many engineers complain (correctly) that it’s an overhead cost. “I’ll finish sooner if I just power through on it until it’s done!”</p><p>There are two main reasons: external dependencies and prioritization.</p><h4>External dependencies</h4><p>Nothing impactful operates in a vacuum. Projects often have external dependencies like coordination with non-engineering teams (comms, finance, PR, customer support), other <a href="https://hackernoon.com/tagged/engineering">engineering</a> teams, or even end-users themselves. It’s typically the job of the manager, PM, or CEO to coordinate with these external dependencies. That means that the one who is best qualified to make a time estimate (the engineer) isn’t the one who needs it most. This asymmetry leads to a fundamental tension.</p><h4>Prioritization</h4><p>Time estimates are also key for prioritizing work. “Bang for the buck” is an important metric in engineering and there’s no “buck” without real estimation. Even if the feature you’re working on is the most awesome thing in the world, if you take the time to do a full estimate, you might realize it will take way too long to finish.</p><p>Say you’re working on a project that will make the website 50% faster but in the same amount of time you could have finished two projects that will each make the website 40% faster. If you don’t take time to do an initial estimate, you’ll never know that you could have ended up with a much faster website!</p><h3>Time estimation 101</h3><p>Now that we all agree that time estimation is necessary the vast majority of the time, let’s talk about techniques.</p><p>We underestimate time because we think “How long would it take me to write a basic version of this?”</p><p>But shipping is much more than a basic version. You will need to account for the time it takes you to write, test, debug, and polish. Don’t forget the time you’ll be in meetings, interviews, doing code reviews, sending emails, etc.</p><p>Another reason we underestimate is that we almost always encounter “unknown unknowns” in the coding process itself. And those are impossible to anticipate fully and account for. Maybe your IDE will get an update that breaks your project and you’ll burn a day fixing it. There’s no way your estimate could have taken that into account.</p><p>But we can still do much better than our initial instincts. Here’s what I do:</p><h4>Step 1: Make a technical plan</h4><p>You should already have a technical plan or design doc ironed out for any nontrivial project before you begin. You use this to let others know what you’re doing and get feedback. The technical plan is the ideal place to start the time estimate. As you work through the technical details, you’ll already magically be improving your estimate as you uncover unknown unknowns. Maybe you’ll realize that you probably will need to upgrade to a new version of a library that you’re using and that could add a day. You might even realize the library you were planning to use doesn’t actually exist and you’ll need to write it.</p><p>Granularity is important here. If any step feels murky or vague you’re either hand-waving (and should learn more) or you need to break it down into smaller steps. At the same time if a step is too fine-grained it might be brittle enough to invalidate the whole plan in practice.</p><p>For a good guide on what sort of thinking should go into your technical plan, check out <a href="https://medium.com/@owlishness/what-do-you-mean-we-need-more-time-c4b7120aa707">this article</a> by <a href="https://medium.com/u/64c63c7efb34">Alicia Chen</a>. One key point is to iron out any potential ambiguities with the PM or other stakeholders so that you don’t end up building the wrong thing and having to start over.</p><h4>Step 2: Add a time estimate to each step</h4><p>Estimate how long each step in your technical plan will take to implement. This will often involve research into the details (“is there already a library to do this or not?”). Depending on the nature of the project, throwing together a simple prototype might help reveal a lot of potential future pain points.</p><h4>Step 3: Add in a bunch of extra time</h4><p>Now that you have a barebones of your estimate, there are all those things we mentioned earlier to account for.</p><ul><li>Debugging as you go: Bugs always come up. A lot of this depends on your experience with a specific codebase and the codebase’s maturity.</li><li>Meetings, interviews, vacations, etc: You probably won’t be at your desk coding the whole time. How many hours will you REALLY have to code? You should at least look at your calendar when estimating.</li><li>Final testing and bug-bashing: You should generally be <a href="https://hackernoon.com/treat-yourself-e55a7c522f71">writing tests as you go</a>, but a lot of teams need to do an extra round of polish work or integration testing before launch. Give ample budget for it in your estimates. If you’re doing a staged rollout, the initial 1% rollout will probably reveal bugs that need fixing. Account for that.</li><li>Code review: How many rounds are typical for you in this codebase? How long do they usually take? Be sure to verify an ample supply of reviewers (and maybe check their calendars). If it’s the kind of project where there’s only one possible reviewer you should solicit a commitment in advance and ask them for a backup in case they’re on vacation or way too busy at a critical point.</li></ul><p>Once you start adding in all of these costs to shipping, you’ll start to see your time estimates match up a lot better with when your projects <em>actually launch</em>. Yes, they’ll be longer. Yes, you might feel pressured to shorten them. But when people figure out they can depend on you they’ll come to appreciate your estimates.</p><h4>Step 4: Review your estimate after you’ve launched</h4><p>Yes, it sounds like a pain to go back to your time estimate after you’ve finished a project and review what you’ve done. But this review is how you learn and get better next time.</p><p>What ended up taking a different amount of time from expected? If integration testing took twice as long as you thought, write that down and leave more time for it next time. Or try to improve your integration testing system.</p><p>You’ll definitely see your estimates improve with time. You might even come up with some great insights here that will help your whole team.</p><h3>In the end, it’s all about communication</h3><p>Communicate your timetable and changes to it early and often. If you let your manager know a month before launch that there’s a new security bug in the library you were using and you’ll have to start over from scratch, they’ll in turn have time to notify PR, finance, or users that there’ll be a delay.</p><p>Communication to relevant parties also lets them give you important information that can affect your estimate. A designer might say, “Oh, if that fancy animation is going to take a whole week we can just cut it completely.” A PM might add, “This is just a prototype to experiment on in user studies. We don’t need to do much bug bashing for this iteration.” A manager might say, “You’re spending half your time in meetings? Let me fix that!”</p><p>For engineers, don’t give in to pressure to report a shorter time than is realistic to appease the higher-ups. It is more professional to be honest about your estimates and how they’re changing.</p><p>For everybody else involved, respect that estimation is hard and that it’s going to be a process. You can only cut down time estimates by sitting down and removing features or stages that aren’t actually going to be needed for launch. You can’t cut it down by nagging.</p><p>We’re never going to be able to perfectly estimate time of a project. The only way around this is an open communication, compassion, and relentless prioritization.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7328238c510" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Beginner’s Guide to Automated Testing]]></title>
            <link>https://medium.com/@katbusch/treat-yourself-e55a7c522f71?source=rss-646518ee5ad7------2</link>
            <guid isPermaLink="false">https://medium.com/p/e55a7c522f71</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Kat Busch]]></dc:creator>
            <pubDate>Sat, 03 Dec 2016 20:32:45 GMT</pubDate>
            <atom:updated>2023-09-29T17:07:28.301Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>This blog has moved! <a href="https://katbusch.substack.com/p/treat-yourself-e55a7c522f71">Find this article on Substack</a>.</blockquote><p><em>This is the second entry in my series on navigating large codebases for new software engineers. It’s not necessary to read the first article to understand this one, but you can find it </em><a href="https://medium.com/@katbusch/trust-no-one-an-introduction-to-large-codebases-for-new-engineers-100586a87a5f#.a5l573tdp"><em>here</em></a><em>.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*O3ICqMjDGMTBPKwUzvbBqQ.jpeg" /></figure><p><a href="https://hackernoon.com/tagged/software">Software</a> tests are the best gift an <a href="https://hackernoon.com/tagged/engineer">engineer</a> can give themselves. Tests make your life and everybody else’s easier.</p><p>When I started as a software engineer I had absolutely no idea why tests were important and I felt pretty lost on where to start. From my experience mentoring and teaching new engineers, I know I’m not alone. So this is where you start. Here, with real-world examples, I will make the case for automated software testing and I will explain how to get started writing tests in a disciplined and thoughtful way.</p><h3>Part I: The case for testing</h3><h4>Making your life easier</h4><p>Years ago, when I was starting on my first project in my first job out of school, I didn’t write any tests. I knew that <em>theoretically</em> tests were good (and I’d written them during my internships) but I didn’t really have a solid understanding of why. I didn’t think it mattered much if I didn’t write tests at all or at least didn’t write them until the last minute. I was on a deadline and I didn’t want to get bogged down writing all that unnecessary extra code.</p><p>I was creating a mobile A/B testing system for Dropbox’s Android app. I submitted the Java component of the system for code review, with a note: “TODO: write tests”. As I developed the code, I engaged in an incredibly tedious manual testing process that involved setting up a test server on my computer, installing the app on a test phone, and manually creating an A/B test on the test phone. Obviously I didn’t test very many code paths because it was just so tedious.</p><p>After much back and forth, the code reviewer said “You can’t merge this without tests.” So I wrote some basic tests and merged it.</p><p>Lo and behold, I soon needed to fix a small bug. I then had to test that everything worked after the fix. “Hmm…,” I thought. “I’ve written some tests for this. I suppose I could use those.” I ran the tests. Within a few seconds, I knew that everything still worked! Not just a single code path (as in a manual test), but all code paths for which I’d written tests! It was magical. It was <strong>so much faster</strong> than my manual testing. And I knew I didn’t forget to test any edge cases, since they were all still covered in the automated tests.</p><p>This gets to one of the most important reasons for tests: tests can make your development process faster. If I’d written those tests earlier then I could have frequently just run the tests in under a minute instead of tediously poking and printlning my code over and over again to verify it was doing what I expected.</p><h4>Preventing new bugs over time</h4><p>For large codebases preventing bugs over time is really the most important part of tests. In codebases with many engineers contributing, you do not necessarily have control over changes to your code and especially changes to code that your code depends on. With dozens of commits a day, just by chance one of those commits will likely inadvertently change a behavior that your code relies on.</p><p>If you haven’t written tests, then there’s no reliable way for other coders to know that their commit has impacted yours. Good tests are an explicit signal to other engineers (or a future version of yourself) of your assumptions about the behavior of your code and its dependencies. In an ever-evolving codebase of millions of lines, how else could others possibly know that your important (but only semi-related) code will no longer work because of their change? If your code is still in the codebase a year (or five) after you’ve committed it and there are no tests for it, bugs <em>will</em> creep in and nobody will notice for a long time.</p><p>I witnessed an obscure but important user-facing feature broken for weeks because of a change in a seemingly unrelated part of the code. It took a build-up of user reports to trickle through customer support to engineering before anybody noticed. Afterwards, the team wrote a post-mortem about how the unclear dependency structure allowed this seemingly unrelated code to break their feature and go unnoticed. The postmortem didn’t even mention the simple obvious thing that would have avoided the whole breakage in the first place: a test! (Of course better code structure is also very important.)</p><p>Tests are your best weapon against the complexity of large codebases. Although you try to keep your code clean and clear, something will always break. Remember the rule: <strong>If it matters that the code works you should write a test for it</strong>. There is no other way you can guarantee it will work.</p><h3>Part II: Tips for effective testing</h3><p>Here are some basic tips to make your tests maximally useful and minimally painful. I will introduce some testing concepts and terminology. This is by no means complete. There are <a href="https://www.amazon.com/gp/product/0321146530/ref=as_li_tl?ie=UTF8&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0321146530&amp;linkCode=as2&amp;tag=engineeringba-20&amp;linkId=b770575b23eef9d66aaaa021322be0ad">entire</a> <a href="https://www.amazon.com/gp/product/1617290890/ref=as_li_tl?ie=UTF8&amp;camp=1789&amp;creative=9325&amp;creativeASIN=1617290890&amp;linkCode=%7b%7blinkCode%7d%7d&amp;tag=engineeringba-20&amp;linkId=%7b%7blink_id%7d%7d%22%3eThe%20Art%20of%20Unit%20Testing:%20with%20examples%20in%20C%3c/a%3e%3cimg%20src=%22//ir-na.amazo">books</a> worth reading on the topic, but it’s a good start.</p><h4>Many small tests vs one big test</h4><p>A lot of times I come across monolithic tests like “fn integer_tests() {}” that test fifteen behaviors of Integer in a row (like this <a href="https://github.com/JuliaLang/julia/blob/271b31ddf931528149aeb2a4f0579a7439858575/test/int.jl">example</a>). I recommend having fifteen separate tests here for two reasons.</p><p>The first is purely practical: if that test fails halfway through, you won’t know whether the second half of your fifteen checks are passing or not because they won’t be run. This can make it harder to debug. If you know which three of fifteen exactly are failing, you might be able to identify the problem immediately.</p><p>The second reason is a subtler readability issue. With a glob of fifteen checks in a row, it’s harder for another engineer reading them to grok exactly what’s being tested. It’s also harder for them to see whether they need to add a new test case after a change or whether their case is already covered. If there are fifteen separate tests, it’s pretty easy to read through the neat names:</p><pre>def test_integer_addition():<br>   ...</pre><pre><br>def test_integer_subtraction():<br>   ...</pre><p>It’s also very easy for readers to look at how each function is set up and add a new test.</p><h4>Make it easy to add new tests</h4><p>It should be obvious to somebody editing your code how to test their changes. I recommend making helper functions in your test file to make set up and tear down simple. Most testing frameworks provide “before each” and “after each” helpers. If adding a new test case is extremely easy then you can be more confident that your library will have high test coverage over time. But if the author has to spend a lot of time investigating exactly how to create the appropriate inputs, etc, then if they’re in a time crunch they might decide to skip a test all together. You should always make it easy for people to do the right thing.</p><h4>Unit tests vs integration tests</h4><p><em>Unit tests </em>exercise one piece of code, like a class, module, or function. They shouldn’t need to set up an entire environment or complex dependencies (like databases). They’re usually very thorough and very quick to run.</p><p><em>Integration tests</em>, sometimes called <em>UI tests </em>or <em>system tests</em>, will test the end-to-end functionality of your project. They’re usually slower to run because they have to initialize an environment, and they’re prone to be flakier because often small changes (like fixing a UI bug) can cause them to fail.</p><p>Both kinds of tests are important, but day-to-day you should focus on unit tests because they’re more modular and maintainable and they’re cheaper to run. This usually involves faking things that your code depends on so they don’t have to be created. That way you can be pretty sure that if a test fails it’s from your code breaking, not the thing it depends on. These fake things are often called <em>mocks</em>.</p><p>Integration tests are important as a last line of defense because they usually test what the user actually sees, and in the end that’s what matters. All your unit tests could be working, but there could be a problem where your libraries aren’t interacting together as expected. You won’t catch this without an integration test.</p><h4>Which to write first: code or tests?</h4><p>There’s a formal development methodology called Test-Driven Development that dictates writing tests before any feature code. This can be hard to do, because you really don’t know exactly what your interface should look like until you start writing it and realize some of your assumptions need to be changed. On the other hand if you’re not focused on testing during development it’s easy to end up with code that’s hard to use and hard to test.</p><p>The sweet spot is to write code and test in parallel. It’s an iterative process. Bouncing back and forth between your perspective and an outsider’s in a test helps guarantee your code’s interface is usable. Think of it like a painter who stands back from the canvas and pretends to be an ordinary viewer. You’ll find that writing tests as you go makes your interfaces better and makes your code more testable. If you find yourself writing something hard to test, you’ll notice it early on when there’s still time to improve the design.</p><h4>Avoid Flakey Tests</h4><p><em>Flakey tests</em> are tests that fail some percent of the time, either because of a rare bug or because there’s a problem with the way the test is written. Say the test relies on the order things are inserted in a hashmap. Hashmaps are unordered, but maybe the iterator will return them in order 98% of the time. The other 2% of the time your test will fail. This can lead other people to think their change broke the build and waste time hunting bugs that don’t exist. If your test is flakey do whatever you can to remove the flakiness. To achieve this stability tests should be deterministic. Don’t depend on a given ordering of threads, and if you need a random number generator make sure to specify a fixed seed in your tests.</p><h4>Test the interface, not the implementation</h4><p>When you’re testing, it might seem easiest to dig into your interface and test that private variables have the right value at the right time. While this seems convenient, it has some problems:</p><ol><li>Your tests will need to be rewritten if the internal implementation is changed. That is, a tree should have the same behavior whether it’s implemented as a flat array or with pointers. If your tests are accessing the array, then if the implementation is changed to pointers you’ll need to totally rewrite your tests.</li><li>Mucking with internals of the interface takes focus away from what really matters: do the functions that the user of this interface will call work as expected?</li></ol><p>I’m not advocating that someone unfamiliar with the code writes the tests. You know the internals and you know what types of edge cases you should test for. You should haven’t to reach into private data to test that. Reaching in can cause you to butcher your interface and add functionality whose only purpose is to verify state in your test. It’s better to focus your energy on the correctness of real use-cases.</p><h3>Try it yourself</h3><p>As with all my posts in this series, my goal is to provide new engineers a practical framework for being successful in large codebases. You’ll still need to build your own intuition and learn from your own mistakes but hopefully hearing about mine will help the process go faster.</p><p>As you grow as engineer, you realize more and more that testing is a great tool, not an annoying overhead. It’s a way of helping you write your code faster, make fewer mistakes, and avoid bug creep. Next time you write code, set aside time to treat yourself with some tests.</p><p>Article 1: <a href="https://hackernoon.com/trust-no-one-an-introduction-to-large-codebases-for-new-engineers-100586a87a5f">Trust No One: An Introduction to Large Codebases for New Engineers</a></p><p>Article 3: <a href="https://medium.com/@katbusch/quick-tips-for-gitting-on-a-team-33533d75aea9">Quick Tips for Gitting on a Team</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e55a7c522f71" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Rules of Optimization: Why So Many Performance Efforts Fail]]></title>
            <link>https://medium.com/@katbusch/the-rules-of-optimization-why-so-many-performance-efforts-fail-cf06aad89099?source=rss-646518ee5ad7------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf06aad89099</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[performance]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Kat Busch]]></dc:creator>
            <pubDate>Mon, 26 Sep 2016 13:32:31 GMT</pubDate>
            <atom:updated>2023-09-29T17:08:04.982Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>This blog has moved! <a href="https://katbusch.substack.com/p/the-rules-of-optimization-why-so-many-performance-efforts-fail-cf06aad89099">Find this article on Substack</a>.</blockquote><blockquote>The First Rule of Program Optimization: Don’t do it. The Second Rule of Program Optimization (for experts only!): Don’t do it yet. — <a href="http://c2.com/cgi/wiki?RulesOfOptimization"><em>Michael Jackson</em></a></blockquote><p>In our era of modern, speedy machines with oodles of memory, performance is something that few coders ever need to think about; but we think about it anyway.</p><p>We think about performance even when we don’t need to, and it’s much to our detriment. It complicates our lives and the lives of other coders in our codebases. Thus the first rule of <a href="https://hackernoon.com/tagged/optimization">optimization</a>: <strong>Don’t do it</strong>.</p><p>In this post, I’ll illustrate the reasoning behind the first and second rules of optimization, and I’ll provide some tips for the times when you really truly do need to undertake performance improvements.</p><p><em>Note: When we talk about performance we’re often referring to the speed a program is run, but the same rules apply to optimizing memory usage, battery usage, or whatever other resource might important to your program.</em></p><h3>Part I: The Bottleneck</h3><p>My first important real-world performance problem happened during a summer of research in college. A program for helping biologists identify genes was too slow. My advisor suggested that there was a part of the <a href="https://en.wikipedia.org/wiki/Graph_coloring">graph coloring</a> algorithm that took a long time, and I should start with optimizing that.</p><p>So I did. I had a great time squeezing CPU cycles out of C++. It’s a fun form of puzzle solving. I improved the performance of the graph coloring algorithm by 70%.</p><p>After a week of intricate optimization, I ran the whole program on the full dataset. It was only 15% faster — hardly noticeable. What was going on?</p><p>I dug around a little and discovered that when a process finished, it wrote long results to a file. The program caused many processes to write at once. As the operating system’s scheduler switched among the processes, the disk had to do tons of seeks to write each file. Disk seeks are expensive.</p><p>I added a few lines of code that created a file system lock so that only one process could write to disk at once. Sequential writes are much faster than seeks, so with that change the program was about 60% faster.</p><p>With a few lines of code, I’d more than cut the runtime in half. My week of C++ optimization had not. My advisor had pointed me in the C++ direction because he’d spent the most time on it. He’d probably only spent a couple minutes writing the code that writes to files.</p><p>I can’t tell you how many times in my years of performance work across many platforms I’ve seen people waste time on optimizations that do almost nothing. The most common failed performance effort is optimizing something that’s not the bottleneck. You often think you’re optimizing the bottleneck but you’re not looking at the whole picture.</p><p>Ironically it’s often the most experienced engineers that make this mistake first . It’s easy to get caught up in our own systems and forget there’s a whole other world out there. I once saw a group of senior backend engineers spend an entire hack week rewriting a complex web endpoint to use Go instead of Python. At the end, they found out that the bottleneck for the page was on the browser side of the app (and not the server side) making their performance improvement completely irrelevant.</p><p>These were experienced engineers who knew extremely well what made the server fast and slow, but their detailed knowledge of one part of the system prevented them from looking at the bigger picture.</p><p><strong>Always ask yourself, what performance does the end-user care about? How does your code impact that?</strong></p><h3>Part II: Complexity</h3><p>Performance improvements that don’t get at the bottleneck can actively harm your codebase. Almost all performance improvements increase the complexity of the code. Unneeded complexity creates a lot of problems that are not performance-related by making code harder to understand.</p><p>Let’s take a look at another example (slightly simplified) from a friend who used to use Python for graphics:</p><pre>for i in xrange(1000):<br>    my_mesh.draw()</pre><p>Imagine that before pushing this, the author noticed that draw() is being called 1000 times. Since the Python interpreter has to look up methods on each invocation, time could be saved by caching the reference to the draw method in a local variable:</p><pre>draw_method = my_mesh.draw<br>for i in xrange(1000):<br>    draw_method()</pre><p>This seems simple enough but it’s liable to cause a lot of problems down the line. While right now it might not seem like it will cause bugs, imagine that it’s in a large code base. Over time, many new lines of code might be added to the loop by many different engineers. Eventually draw_method might be far away from <em>draw_method = my_mesh.draw</em>, and the engineer will have to skip around and lose context to figure out what that means as they read through the code.</p><p>It will definitely slow people down and it could cause bugs. For instance, somebody might add live updating:</p><pre>draw_method = my_mesh.draw</pre><pre>for i in xrange(1000):<br>    …<br>    if my_mesh.outdated():<br>        my_mesh = updated_mesh<br>    …<br>    draw_method()</pre><p>Now there is a bug. The draw method will call draw on the first mesh, not the updated one, because the wrapper to my_mesh.draw wasn’t updated.</p><p>It’s quite common to see small performance “improvements” thrown in as part of larger changes, when those improvements haven’t been evaluated for how much they help. Even what seem like simple performance improvements add a cost. The cost is complexity. Complexity means bugs and more time reading, testing, and maintaining code. <a href="https://medium.com/@katbusch/trust-no-one-an-introduction-to-large-codebases-for-new-engineers-100586a87a5f#.rfc3wuwg1">Particularly in large or long-lived code bases, complexity is the biggest impediment to progress.</a></p><p>The change above is consistently faster on my <a href="https://hackernoon.com/tagged/machine">machine</a> by about .05ms on average. Is .05ms enough of an improvement to warrant the complexity? Most of the time, no.</p><p>You are simply not in a position to evaluate whether the complexity cost is worth the improvement in performance unless you have a big picture view of the performance of the system. Maybe you can optimize, but you certainly shouldn’t do it yet.</p><h3>Part III: How to approach performance problems</h3><p>But let’s say you think your system is really too slow, and you really do need you to improve its performance for empirical reasons. Here are few rules to get you started in a disciplined way.</p><h4>Get the right metric</h4><p>A lot of the problems I covered above come from measuring the wrong things. In my project in college, I measured the time for the graph algorithm to finish and not the time for the results to be written out. The hack week team was measuring server response time and not the time for the web page to appear to a user. <strong>Measuring the wrong thing leads to solving the wrong problem.</strong></p><p>Making sure you’re measuring the right number is the single most important thing to do when you’re tackling a performance problem. Without that, you have no idea how much you’re helping. Similarly, don’t necessarily trust those more experienced than you to tell you the bottleneck. Make sure you evaluate it yourself.</p><h4>How important are marginal gains in this system?</h4><p>Once you’re measuring the right thing, it will be a lot easier to tell which improvements are worthwhile. Nonetheless, it’s worth it to spend some time thinking about what your goals are.</p><p>You need to know not only how fast (or memory-intensive, etc) the system is, but also how much marginal gain you’ll get from improvements. Do you save your company money? Do you save your users time? If it’s a script that runs once a week that nobody is dependent on, even savings of an entire minute (basically forever in computer time) might not be worth adding complexity. But if it’s a function run a million times per second across a fleet of thousands of servers, savings of microseconds could save a lot of money.</p><p>If you understand what your performance goals are before beginning your work, you can make the right call on performance/complexity tradeoffs later on. If you’re being honest with yourself, you’ll often see that you should scrap marginal gains and focus on major wins.</p><h4>Measure right</h4><p>Lots of things can affect your performance measurement. You might be a mobile developer with a slick test device that has only one program running on it. If your goal is to produce a response in &lt; 10ms on average, that’ll be a lot easier on your test device than on your user’s four-year-old phone with low battery and a hundred apps running in the background.</p><p>It could also cause you to misunderstand your program’s characteristics. You might be I/O bound on a test device, when on most devices you’re actually CPU bound.</p><p>All sorts of external factors can affect performance including:</p><ul><li>Memory usage</li><li>Server load</li><li>Network bandwidth and latency</li><li>Battery level</li><li>CPU usage</li><li>Disk usage</li><li>Various caches at all layers</li></ul><p>When you’re measuring, try to make sure as many factors as possible are held constant so you can accurately compare different approaches. But also make an effort to understand what these factors usually look like, so you can make sure your appraisal of bottlenecks is realistic.</p><p>One simple strategy for cutting out the natural ebbs and flows of resources on a machine is to run your code many times. Python’s easy-to-use <a href="https://docs.python.org/2/library/timeit.html">timeit</a> library defaults to running your sample a million times. This can help average out some fluctuations in system resource availability.</p><h4>Try to integrate performance tests into your build</h4><p>Some software projects fail their builds if a commit causes a performance regression. If performance is important for your project, consider adding performance as part of your continuous integration. It can let you prevent performance regressions before they get shipped. The sooner you are aware of regressions, the easier they are to fix. In large codebases, small regressions can build up over time unless they’re aggressively kept in check. Tests can keep them out of your system.</p><h3>Finally, the optimization</h3><p>Armed with the right philosophy and information about your system, you’re ready to begin performance optimization. Don’t do it until you’ve profiled and analyzed and figured out a coherent strategy — then go forth and code!</p><p>Once you understand the basics of how to tackle general performance problems, you can start to delve deeper into your system. This is where things can get really fun and exciting. Small systems are elegant logic puzzles. Large systems are universes of slowness whose complex interlocking parts can take months to unravel. Improving performance in both environments can be beautiful.</p><p>It’s just not often the right thing to do.</p><p><em>For my guidance on web performance see </em><a href="https://hackernoon.com/so-your-website-is-slow-lets-fix-that-7c4e9e6a7131"><em>So your website is slow? Let’s fix that</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf06aad89099" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Trust No One: An Introduction to Large Codebases for New Engineers]]></title>
            <link>https://medium.com/@katbusch/trust-no-one-an-introduction-to-large-codebases-for-new-engineers-100586a87a5f?source=rss-646518ee5ad7------2</link>
            <guid isPermaLink="false">https://medium.com/p/100586a87a5f</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Kat Busch]]></dc:creator>
            <pubDate>Fri, 22 Jul 2016 03:58:59 GMT</pubDate>
            <atom:updated>2023-09-29T17:08:39.504Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>This blog has moved! <a href="https://katbusch.substack.com/p/trust-no-one-an-introduction-to-large-codebases-for-new-engineers-100586a87a5f">Find this article on Substack.</a></blockquote><p><em>A series on best practices in large codebases for new engineers. This one focuses on how to think about large codebases via an introduction to the practice of commenting. Some variable names have been changed to protect the innocent.</em></p><p>The first thing I advise new software engineers fresh out of school is this: <strong>Trust no one</strong>.</p><p>It is certainly absurdly harsh, but I’ve found it serves a dual purpose: it gives engineers the confidence to share their own ideas (since existing assumptions are always suspect), and it helps motivate them to write robust, readable, and maintainable code.</p><p>Most engineers at the beginning of their career have coded primarily for themselves or their TAs or at most a small group. Much of that code is temporary and used only until you hand in your assignment or scrape and analyze your data.</p><p><strong>Habits that work very well for academic or personal code will bite you in the ass in a professional environment.</strong></p><p>Imagine an environment where dozens (maybe hundreds) are contributing alongside you. Your code will live on for years, and people will be trying to read it long after you’ve forgotten what you’ve written and maybe long after you’ve left the project or company.</p><p>In this <a href="https://hackernoon.com/tagged/codebase">codebase</a> things will break. Code that once worked will regress. It will regress in a thousand tiny and unpredictable ways. Your nice clean elegant API will have crap added to it, parameters slapped in and deprecated, and semantics inverted until it ends up like this real actual function from Windows XP used to create a symlink:</p><pre>BOOL br= ::DeviceIoControl(hDir, FSCTL_GET_REPARSE_POINT, NULL, 0,<br>  &amp;ReparseBuffer, MAXIMUM_REPARSE_DATA_BUFFER_SIZE, &amp;dwRet, NULL);</pre><p>Source: <a href="http://www.flexhex.com/docs/articles/hard-links.phtml">http://www.flexhex.com/docs/articles/hard-links.phtml</a></p><h3>Part 1: Comments to the rescue?</h3><p>In this article, I’m going to discuss comments as a way to illustrate how code can evolve badly and how you can try to protect against future mistakes.</p><p>Often people turn to comments to combat the uncontrolled growth of codebases. But comments are ripe for abuse. As with all code, there are good ways and bad ways to write them.</p><h3>Comments can do terrible damage</h3><p>Let’s look at a practical example. Everybody knows it’s good to comment your code to “make it readable”. Some people also know it’s bad to comment your code “too much”.</p><p>Consider this comment:</p><pre>def user_history(days=90):<br>  <strong># Do 90 days of history by default<br>  </strong>for i in xrange(days):<br>    …</pre><p>Let’s say you add this comment to your fresh new function. In a large codebase with many contributors, hundreds of people could end up reading this comment. They don’t learn anything new from reading it that they didn’t learn from the default parameter above it. That means it’s wasting engineers’ time. But it’s not just a time waster.</p><p>Over the course of a year, hundreds of programmers will make changes to your codebase. Let’s say some new code is added:</p><pre>def user_history(days=90):<br>  <strong>prep_user_history_processing()<br>  do_some_more_stuff()<br>  </strong>…</pre><pre>  # Do 90 days of history by default<br>  for i in xrange(days):<br>    …</pre><p>There are now many lines of code separating the function’s declaration from your comment. They might not even fit on the screen together at the same time.</p><p>Now let’s say that in the intervening year, the user history processing has changed so that now we often read 1000 days of user history. Eventually one of the many programmers using this function is sick of writing user_history(days=1000). They go ahead and change the default.</p><pre>def user_history(<strong>days=1000</strong>):<br>  prep_user_history_processing()<br>  do_some_more_stuff()</pre><pre>  …</pre><pre>  # Do <strong>90 days</strong> of history by default<br>  for i in xrange(days):<br>    …</pre><p>Boom. Tests pass. Code pushed.</p><p>A month later, another coder comes along and skims this function. They’re skipping through the file, and they see the comment but don’t actually look at the function declaration. They call the function with the default argument assuming it’s 90 days. Thus a bug is born.</p><p>This is how large code bases actually work. This is how many bugs are written.</p><h3>Learn to program defensively</h3><p>Comments that don’t add anything, like the one above, aren’t useful and are potentially dangerous. But more than that <strong>in a large codebase the evolution of your code is simply beyond your control</strong>. To write truly robust code you must ensure it’s not only correct (which itself can be challenging) but also resistant to skimming, misreading, carelessness, and growth.</p><p>When the author added the “90 days” comment above it was the second line of the function just below the default argument. They may have reasoned that if somebody were to change the number they would likely change the comment. They didn’t take into account that in the intervening year enough code could be added that the two would no longer even fit on the screen together at the same time.</p><p>It might seem lazy to you that someone would just skip to this part of the code without looking at the top of it. But coders are people and people make mistakes. Reading code is hard. <strong>With enough commits and enough time, mistakes are inevitable.</strong></p><p>To be a great programmer, you must take into account these future mistakes when you write your code today.</p><h3>Writing useful comments</h3><p>Thoughtful code that that keeps in mind and takes care of its many hapless readers can help turn the tide toward order in a large codebase. In our user history case, the coder can fix things by simply not having the comment in the first place. It’s not needed.</p><p>In the more general case the coder should consider for comments and for all code:</p><ol><li>How will this be useful over time?</li><li>What misinterpretations and misconfigurations will this cause?</li><li>Is this simple enough to be understood even in the face of a barrage of commits, our penchant for finding the easiest way, and our inexhaustible capacity to forget?</li><li>Who is this code for?</li></ol><p>To answer the last question it’s useful to distinguish whether a comment is for someone <em>calling</em> this function or for somebody <em>modifying</em> the function.</p><h3>Public comments</h3><p>If your function is public-facing in a large codebase then the caller shouldn’t have to read the function body to understand how to call it. A clear docstring should obviate the need to read (or likely misread) the code.</p><pre>def user_history(days=90):<br>  &quot;&quot;&quot;Remotely fetch user events for the specified number of days.</pre><pre>  Args:<br>    days (int): the number of days to fetch for, rounded down by<br>        day to 12am</pre><pre>  Returns:<br>    list(UserEvent): all events found, empty list if none are found</pre><pre>  Raises:<br>    AccessException: raised if caller does not have permission<br>        to access this data<br>&quot;&quot;&quot;<br>  for i in xrange(days):<br>    …</pre><p>This comment has useful information upfront. The reader doesn’t have to trawl through many lines of python to figure out (possibly incorrectly) something like the return type. (<em>Note that static typing or something like Python’s </em><a href="https://docs.python.org/3/library/typing.html"><em>type hints</em></a><em> can help with this.)</em></p><p>Take care with your docstring. Take time to consider whether it’s are really useful, whether and how it can be misinterpreted, and whether it’s likely to still be useful a month or a year from now, after many more commits.</p><p>The comment above is written in <a href="http://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html">Google’s python args standard</a>. If your large codebase doesn’t have a standardized format for docstrings, you should invest time in starting one. <strong>Standards help protect against laziness and mistakes by providing a correct and easy habit.</strong></p><p>Because it’s the standard used by every function and it’s parsed for use on the docs page, everybody is accustomed to updating it. You could even deploy a linter that warns you if you’ve changed a function without updating its description.</p><p>Public comments do not address the implementation of your function. People only calling the function don’t need to know about that. That’s where internal comments come in.</p><h3>Internal comments</h3><p>In theory good code should speak for itself. Variables and functions should be clearly named and control flow should be obvious. But there will always be places when the code can’t speak for itself because of something very subtle or very complex.</p><p>Internal comments are written inline with the code and won’t be parsed to show in public docs. They’re intended for somebody intimate enough with the code that they’re actually going to go through and read it line by line. Well, let’s be honest; they’ll probably skip a lot of lines.</p><p>Here’s an example of an internal comment:</p><pre># DO NOT CHANGE THIS TO A SET!!! IT WILL BREAK!!1!!<br>number_list = [number for number in xrange(10)]<br>do_something(number_list)</pre><p>This comment is pretty useful — it says something that’s very hard to glean from the code, and if other coders read it then it could prevent bugs.</p><p>But as we know, <strong>many coders won’t read it</strong> because they’ll be skimming or they’ll make a mistake. This comment would be even more useful as an assert:</p><pre>number_list = [number for number in xrange(10)]<br><strong>assert type(number_list) is list</strong><br>do_something(number_list)</pre><p>Now we have the same information, but even if the coder is lazy and skims the comments, they still can’t cause a bug. Their testing will fail. (Yes, there might not be adequate testing. That’s a subject for <a href="https://hackernoon.com/treat-yourself-e55a7c522f71">another time</a>.)</p><p>Still, we didn’t explain why, and it’s really not obvious from reading the code why we have to have a list there. Somebody might come in and try to clean up the code by removing this seemingly superfluous assert. Here you can put in a useful comment to explain what’s going on.</p><pre>number_list = [number for number in xrange(10)]<br># As of version 1.2.1, do_something has a bug that causes it to <br># crash if non-list collections are used for certain inputs.<br>assert type(number_list) is list<br>do_something(number_list)</pre><p>Now, we have a precise internal comment that</p><ul><li>tells the reader something useful that they can’t easily glean from the code</li><li>concerns the internals of the function that callers of this function don’t care about it</li><li>explains why it’s there and why you shouldn’t remove it</li></ul><p>This by no means covers all places you should use comments, but the general rules hold. Your code should be concise and explicit, and when it can’t easily speak for itself you can write a comment that tells the reader something useful. Often people won’t bother to read comments, so you shouldn’t rely on them too heavily.</p><h3>Compassion without trust</h3><p>The truth is that reading and understanding somebody else’s code is hard. Given enough people with enough code and enough time, mistakes and carelessness are guaranteed to happen regularly. Trust no one to be mistake-free.</p><p>When producing code for others you should keep these traits of your fellow coders (and yourself) in mind and defend against them as consistently as possible. By being thoughtful and concise and using well-understood standards, and by generally being aware of our own faults as we write code, we can begin to guard against our own mistakes. In future articles I’ll discuss how this applies to other aspects of software <a href="https://hackernoon.com/tagged/engineering">engineering</a> including testing and global state.</p><p>Article 2: <a href="https://hackernoon.com/treat-yourself-e55a7c522f71">A Beginner’s Guide to Automated Testing</a></p><p>Article 3: <a href="https://medium.com/@katbusch/quick-tips-for-gitting-on-a-team-33533d75aea9">Quick Tips for Gitting on a Team</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=100586a87a5f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>