<?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 Jared L Wong on Medium]]></title>
        <description><![CDATA[Stories by Jared L Wong on Medium]]></description>
        <link>https://medium.com/@jaredlwong?source=rss-4de2098ba907------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*jpkVr3NBbQkMTXU0j6KpsQ.png</url>
            <title>Stories by Jared L Wong on Medium</title>
            <link>https://medium.com/@jaredlwong?source=rss-4de2098ba907------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 03:58:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jaredlwong/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[Migration Strategies: A Comprehensive Guide for Effective System Evolution]]></title>
            <link>https://medium.com/@jaredlwong/migration-strategies-a-comprehensive-guide-for-effective-system-evolution-b28dc4ce9f08?source=rss-4de2098ba907------2</link>
            <guid isPermaLink="false">https://medium.com/p/b28dc4ce9f08</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[infrastructure]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Jared L Wong]]></dc:creator>
            <pubDate>Fri, 17 Mar 2023 11:01:30 GMT</pubDate>
            <atom:updated>2023-03-17T11:01:30.919Z</atom:updated>
            <content:encoded><![CDATA[<p>The following framework provides an overview of various migration archetypes, each carrying different risk profiles, user impacts, speeds, and costs. Bear in mind that every migration is unique and may necessitate a combination of these archetypes.</p><p>Additionally, different strategies may be applied to various parts of the stack. For example, higher up the stack, developers might opt for riskier but simpler approaches, while more conservative methods may be employed further down the stack due to their broader impact.</p><h3><strong>Big Bang Migration</strong></h3><p>A big bang migration is a type of system migration strategy where an organization makes a complete and immediate switch from an old system to a new one, without any transition period or parallel operation.</p><p><strong>Pros</strong></p><ul><li>Simplifies the migration process by eliminating the need for parallel systems</li><li>Reduces the time and effort required to manage and maintain multiple systems</li><li>Provides a clear and definitive deadline for the migration</li><li>Can be more cost-effective in the long run by reducing ongoing support costs for outdated systems</li></ul><p><strong>Cons</strong></p><ul><li>Increased risk of failure due to the lack of a transition period and learning opportunities for users</li><li>High-pressure situation for teams to ensure everything is working correctly for the big cutover</li><li>Possible business disruptions or downtime during the migration process</li></ul><p><strong>When to Consider</strong></p><ul><li>When the old and new systems cannot coexist or run in parallel</li><li>When compatibility concerns are less of an issue</li><li>When the organization can tolerate some downtime or business disruptions during the migration process</li><li>When there is a clear and urgent need to move to the new system, such as the old system being outdated or unsupported</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*x0ZZ6RVAel7uOOc_" /></figure><h3><strong>Parallel Migration</strong></h3><p>Parallel migrations run both an old system and a new system that have feature parity simultaneously for a period of time. There are several flavors. In a <strong>blue-green migration</strong>, a duplicate system with new features is set up, and traffic is gradually shifted from the old to the new system. Parallel deployments and canary deployments differ in their approach to traffic shifting. With <strong>parallel deployments (also known as shadow deployments)</strong>, both systems run concurrently, receiving the same requests to compare results. In canary deployments, a subset of traffic is tested before rolling out to all traffic.</p><p><strong>Pros</strong></p><ul><li>Reduces risk by being able to compare the old and new systems simultaneously</li><li>Allows for thorough testing and verification of the new system before fully transitioning</li><li>Minimizes downtime during the migration process</li><li>Clients do not need to change the semantics of how they code</li></ul><p><strong>Cons</strong></p><ul><li>Requires moving clients to use an abstraction layer</li><li>Must ensure that the new system provides exactly the same features as the old system, even for new use cases</li><li>Requires creating and running a costly duplicate system</li></ul><p><strong>When to Consider</strong></p><ul><li>When the organization cannot tolerate downtime during the migration process</li><li>When the new system requires extensive testing and verification before fully transitioning</li><li>When compatibility concerns are a significant issue</li><li>When involving client teams more would cause additional management overhead; so making it transparent to them would be beneficial</li><li>When there are limited novel use cases of the old system; if there are many novel uses of the old system it will be hard to reach feature parity in an ongoing fashion.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uNSvPqcRcxiCCW8C" /></figure><h3><strong>Phased Migration</strong></h3><p>A phased migration is a method of software migration where individual features or modules are migrated incrementally instead of a full-scale migration at once. This approach often requires collaboration between teams because the underlying semantics of the systems may be subtly changing in a way that cannot be hidden behind an abstraction layer.</p><p><strong>Pros</strong></p><ul><li>Gradual transition that reduces risk by only taking on one module or subsystem at a time</li><li>Easier to troubleshoot and identify issues since the migration is done in steps</li><li>Allows for incremental value delivery</li><li>Builds team confidence and momentum</li></ul><p><strong>Cons</strong></p><ul><li>Requires more cross-team collaboration</li><li>Can be time-consuming depending on complexity</li><li>Possible inconsistencies during the migration process</li></ul><p><strong>When to Consider</strong></p><ul><li>When underlying system semantics change</li><li>When a more controlled, incremental approach is necessary</li><li>When the project requires collaboration between multiple teams</li></ul><p><strong>Levels of Support</strong></p><p>The migrating team can provide different levels of support to client teams from being completely hands off to providing automation. Providing automation will always be easiest for client teams.</p><ul><li><em>Documentation</em>: Provide a detailed document outlining the migration process, common patterns, and steps for client teams to follow.</li><li><em>Tooling</em>: Offer tools to automate code translation, making the migration process easier for the client team. Provide dashboards and verification features.</li><li><em>Partial Migration</em>: Migrate the code as the migrator, but involve the client team in verifying the results and signing off on the cutover.</li></ul><p><strong>Migration Order: Stemming the Bleeding</strong></p><ul><li>Start with new use cases and then migrate existing use cases from easy to hard.</li><li>Can you provide a new system with a limited feature set that provides value to many new use cases? Since this isn’t a parallel migration, you may benefit from delivering small incremental value in a new system to further stem the bleeding.</li></ul><p>Benefits</p><ul><li>Prevents new use cases from being added to the old system</li><li>Delivers incremental value to the organization</li><li>Builds momentum and confidence in the team</li></ul><p>Alternative approach</p><ul><li>If faced with an existential crisis or urgent need, tackle the most complex use case first to address immediate issues.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*h5plCP6kU5JHqCfm" /></figure><p><strong>Summary</strong></p><p>In summary, when deciding on a migration strategy, consider asking the following questions:</p><ol><li>Can you stem the bleeding and force all new use cases to use the new system?</li><li>How much involvement do you need (or can you get) from client teams?</li><li>What are the resource constraints (budget, team size, etc.) for the migration project?</li><li>Are you fundamentally changing the semantics of the underlying system or are you doing it transparently?</li><li>How hard will it be to migrate future use cases if people continue to use the old system?</li><li>How will you verify that you have feature parity? What are the compatibility concerns between the old and new systems?</li><li>How can you provide incremental value to your organization?</li><li>How much downtime can the organization tolerate during the migration process? What is the risk tolerance of the organization?</li><li>What is the desired migration order, starting with new use cases or tackling existing use cases from easy to hard?</li><li>Can you add any abstraction layers to make migrations easier for your clients?</li></ol><p>By asking these questions, you can make an informed decision on the most suitable migration strategy. Often you will have to combine these strategies at different levels of the software stack.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b28dc4ce9f08" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Study Plan For Your Next Coding Interview]]></title>
            <link>https://medium.com/@jaredlwong/a-study-plan-for-your-next-coding-interview-ffc1ab8d46b9?source=rss-4de2098ba907------2</link>
            <guid isPermaLink="false">https://medium.com/p/ffc1ab8d46b9</guid>
            <category><![CDATA[leetcode]]></category>
            <category><![CDATA[interview-tips]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[programming-interviews]]></category>
            <category><![CDATA[coding-interviews]]></category>
            <dc:creator><![CDATA[Jared L Wong]]></dc:creator>
            <pubDate>Tue, 24 May 2022 13:31:08 GMT</pubDate>
            <atom:updated>2022-05-24T13:31:08.911Z</atom:updated>
            <content:encoded><![CDATA[<p>As much as coding interviews have trended away from “Leetcode-style,” they are still a very unique skillset that is far from your day-to-day job as a software engineer.</p><p>Think about coding interviews like a certification exam. It might not be what 90% of your job is like, but you need to master the fundamentals to get a job.</p><h3>The Spectrum of Coding Interviews</h3><p>Coding interviews come in a variety of flavors:</p><ul><li>2–3 Leetcode-style problems, usually these are distinct and have nothing in common.</li><li>Practical problems with 2–3 parts, usually these build on one-another. They are self-contained and focus on data structures and algorithms.</li><li>Debugging interviews—Given a codebase and some bugs, figure out where the bug is and fix it.</li><li>Coding Assignment—Implement some sort of API or library that does something, usually having to make some sort of remote call. For example, calling an API, a DB, or just another socket.</li></ul><p>Coding interviews seemed to have trended away from Leetcode-style towards practical. In 2022, even though Leetcode-style is becoming less favorable its still a great way to practice. You need to practice coding these types of problems and you simply can’t get that practice at work.</p><h3>Grind Leetcode</h3><p>This is the quickest way to get better at data structures and algorithms. Problems are well-scoped. Solutions are widely available. And you have a lot to practice.</p><p>Here are some great starting resources:</p><ul><li>Blind75 — This is the basis for the following lists</li><li><a href="https://neetcode.io/">https://neetcode.io/</a></li><li><a href="https://seanprashad.com/leetcode-patterns/">https://seanprashad.com/leetcode-patterns/</a></li><li><a href="https://www.youtube.com/c/NeetCode">https://www.youtube.com/c/NeetCode</a></li></ul><p>Do a first pass of the listed problems. If you don’t immediately understand how to do the problem, it’s okay to look at the Discuss section and see how other people have solved it.</p><p>Some problems may have impenetrable solutions. If you get stuck, try to find more solutions on Leetcode, YouTube, Medium, or Github. You might notice a pattern or find a different approach to the problem that comes easier to you. For example, I always preferred solving problems in recursively because it made more sense in my head. So I always sought out the recursive solutions when I was stuck. Try to diagram the solution. Diagramming and visualizing code can unstuck yourself.</p><p>Try to implement a solution based off of what you read but without copying it line by line. At a later point, go back over the problems and try to do them from memory without looking at the solutions.</p><p>If you find yourself banging your head over the same type of problem try doing a lot of different problems in that area. Leetcode organizes problems by tags. It’s really helpful to do other similar problems so that you can pick up a general pattern to apply to those same types of problems.</p><p>Some of my the tags I spammed include:</p><ul><li><a href="https://leetcode.com/tag/depth-first-search/">https://leetcode.com/tag/depth-first-search/</a></li><li><a href="https://leetcode.com/tag/topological-sort/">https://leetcode.com/tag/topological-sort/</a></li><li><a href="https://leetcode.com/tag/monotonic-stack/">https://leetcode.com/tag/monotonic-stack/</a></li><li><a href="https://leetcode.com/tag/union-find/">https://leetcode.com/tag/union-find/</a></li><li><a href="https://leetcode.com/tag/divide-and-conquer/">https://leetcode.com/tag/divide-and-conquer/</a></li></ul><p>Once you do similar types of problems enough, try to come up with some mental shortcuts and templates. How can you name variables similarly so that you don’t have to decide how to name them in the interview?</p><p>Come up with templates for the most common algorithms—BFS and DFS. And understand the ways to transform them for your needs—Dijkstra’s, Backtracking.</p><p>A non-exhaustive list of some algorithms and data structures to memorize</p><ul><li>BFS—Iterative and Recursive</li><li>DFS—Iterative and Recursive</li><li>Union-Find</li><li>Tries</li><li>Stacks—Parse and execute a simple arithmetic expression</li></ul><h3>Know your language and ecosystem</h3><p>Coding your solution can be made much simpler if you know some useful libraries available in your language of choice. Interviewers commonly look for whether or not you have mastery of your language of choice.</p><p>The best way to learn new tricks of your language is to look at other peoples’ solutions on Leetcode.</p><p>Here are some common libraries I use in Python:</p><ul><li>Format Strings f-strings</li><li>Objects and Tuples collections.namedtuple</li><li>Memoization functools.cache</li><li>Data Structures frozenset, defaultdict</li><li>Binary Searching: bisect.bisect_left and bisect.bisect_right</li><li>Min/Max Heap: heapq.heap, heapq.mergify</li></ul><p>Besides core data structures and algorithms, know how to interact with basic IO. Know how to make HTTP requests and read and write files.</p><ul><li>Web requests—In python know the requests library</li><li>Read, write, and parse files—In python know open,split,json.loads, and json.dumps.</li></ul><p>An extra good-to-have (especially if your interviewer is themselves an expert at the language), know how to write idiomatic code in the language of your choice:</p><ul><li>How to set default values in function arguments or dictionaries</li><li>How to write multi-line strings</li><li>How to handle exceptional cases</li><li>How to name your variables—Global, Instance, Snake, Camel</li><li>How to write for-loops—Over an integer range and over collections</li><li>How to specify data tags—privacy, const-ness</li><li>How to assign multiple variables or unpack values</li></ul><h3>Debugging Process</h3><p>If you have to debug your code or you’re given a debugging problem I strongly prefer littering your code with print statements over using a debugger. I always print all intermediate data structures until I isolate where the problem is happening. I don’t delete any print statements until I’ve found the bug.</p><p>I recommend print statements over a debugger for three reasons:</p><ol><li>Iteration speed—You can quickly retry with new fixes or inputs</li><li>Portability—You can do this in browser editors</li><li>Context—You can see everything that’s happening all at once</li></ol><p>One caveat: A debugger can be helpful if there are ✨ magical ✨ functions. Most debugging interviews won’t have dynamically generated methods or decorators. But in this one case a debugger can give you more information about the execution path of your program.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ffc1ab8d46b9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Preparing For Your Next Interview? An Interviewee’s Framework and Some Tips]]></title>
            <link>https://medium.com/@jaredlwong/preparing-for-your-next-interview-an-interviewees-framework-and-some-tips-fc0fc003ba7a?source=rss-4de2098ba907------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc0fc003ba7a</guid>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[interview-questions]]></category>
            <category><![CDATA[career-advice]]></category>
            <category><![CDATA[job-hunting]]></category>
            <category><![CDATA[careers]]></category>
            <dc:creator><![CDATA[Jared L Wong]]></dc:creator>
            <pubDate>Tue, 03 May 2022 15:13:09 GMT</pubDate>
            <atom:updated>2022-05-03T15:13:09.112Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xgAk26Bb7UAoMadGaxgoOg.png" /></figure><p>There are four key areas of the interview process: Mindset, Preparation, Execution, and Refinement.</p><p><strong>Your mindset determines how you show up to your interview.</strong></p><p>Remember to be the person you would want to work with. The small things matter: smile, acknowledge holidays, ask how they’re doing, connect with them and what they do.</p><p>Your mindset determines how you deal with difficult interviews and rejections. Go into the interview being curious and trying to see what you can learn. If it was a difficult interview, ask the interviewer what they currently do or would have done. Think about how you could improve your answer next time.</p><p><strong>You need to prepare for two things: problem solving questions and past experience questions.</strong></p><p><strong>Problem solving questions</strong> like coding challenges and product design interviews can be practiced. Find a list of common questions in your field and come up with your own solution for them. Check your answer against answers you can find on the internet.</p><p>Practice will keep you sharp. Just like math problems in high school, you will lose your speed the less you practice. Notice the patterns and find common ways of solving similar problems.</p><p><strong>Past experience questions</strong> benefit from two forms of prep: Storytelling (STAR/CAR Format), and Portfolio Presentations.</p><p>Find a common list of behavioral questions for the role you’re interviewing for and write out answers in a STAR (Situation, Task, Action, Result) or CAR (Context, Action, Result) format. Writing out your stories ahead of time will help you stick the landing. If someone asks you about a challenge, also tell them about what you learned, and how you improved the next time.</p><p><strong>Portfolio presentations</strong> are a great tool to add to your interview kit. Prepare diagrams and figures of the past projects you worked on (don’t break your NDA). When interviewers asked me relevant questions I’d prepared for I just asked “Can I show you a visual aide?” And they were all more than happy to view a diagram. It made explaining complex systems much easier. My primary slides answered the question: tell me about a project you worked on?</p><p><strong>Execution is about nailing your stories, nailing the problem solving, and making a good impression</strong>.</p><p>Remember to connect with the interviewer. When you tell your stories don’t tell them robotically. Pause. Connect your past work to the interviewer’s work.</p><p>Problem solving shows the company how you would operate day to day. Create checklists to remember all the steps they might be looking for. Always clarify the question. Clarify the need. Pay attention to the details. Talk about tradeoffs. And if possible tie it to past work.</p><p>Be kind to your interviewers. Try to be optimistic and try not to talk poorly of past experiences or people. Show your excitement in potentially working for the company.</p><p><strong>Refinement is critical to get better: treat every interview as a learning experience.</strong></p><p>Write down all the questions you get (at least until you start hearing the same questions). Think of better answers after the fact. Write down those answers and try to break your answers down into 2–4 things.</p><p>When you do mock interviews, record yourself or just your voice and listen to yourself. Record your stories with your phone and listen to yourself. You’ll quickly find what isn’t working.</p><p>When you get past the onsite, ask the recruiter for as much information as possible about what you did well and could improve. (Before the onsite, ask the recruiter common reasons people don’t make it past the onsite in case you get rejected and they can’t give you any feedback).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc0fc003ba7a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[¬Software Project Communication: 7 Discussions To Revisit]]></title>
            <link>https://medium.com/@jaredlwong/software-project-communication-7-discussions-to-revisit-50245987cb94?source=rss-4de2098ba907------2</link>
            <guid isPermaLink="false">https://medium.com/p/50245987cb94</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[project-management]]></category>
            <dc:creator><![CDATA[Jared L Wong]]></dc:creator>
            <pubDate>Sat, 05 Feb 2022 14:03:22 GMT</pubDate>
            <atom:updated>2022-02-05T14:03:22.837Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aR44Z35SNGG03HJ5_6XpRg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@kaleidico?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Kaleidico</a> on <a href="https://unsplash.com/s/photos/whiteboard?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p><strong>This is part 3 in a series on project management for software engineers.</strong></p><p>It’s easy to fall into the trap of using informal conversations to drive your project.</p><p>The problem is when those informal conversations don’t scale. Either there’s too many people involved on the project. Or, as during the pandemic, there are no informal conversations. Instead conversations need to be scheduled and formalized.</p><p>We need to be intentional to work collaboratively.</p><p>I like to keep in mind the anti-brilliant-jerk spirit. An anti-brilliant-jerk:</p><ul><li><strong>Shares</strong> what they’re working on — they don’t suppress information</li><li><strong>Helps</strong> other engineers on the team — especially junior ones</li><li><strong>Accepts feedback</strong> from people who may disagree with them — and changes their opinions</li><li><strong>Collaborates</strong> with other engineers — they don’t work alone or hoard the “good” parts</li></ul><p>Here are 7 discussions to revisit with this in mind:</p><h3>1. Design Reviews</h3><p>A design review is a great place to share what you’re working on and get feedback from other engineers.</p><p>When I’ve shared my projects, I’ve learned of more potential use cases. Other folks on the team have said, “Oh, that would be useful, can we use it for this other thing?” A similar situation that I’ve experienced is the, “we were going to build something like that, this is great” or “I know somebody else built something similar, maybe you can use their system?”</p><p>The obvious utility of design reviews is to avoid pitfalls. It’s great when a war-torn engineer can explain, “I saw something similar in the past, and then they had to fix it in this other way.”</p><p>Do your best to incorporate feedback — don’t bury your head in the sand.</p><h3>2. Communication Channels</h3><p>Two main communication channels for projects are slack channel’s and email groups.</p><p>I only create email groups for large cross functional projects. But every project gets a slack group.</p><p>I use project-specific channels to share what I’ve been working on, work through operational issues, help teammates, and help customers.</p><p>Whenever someone comes to me with a project question, I redirect them to the project channel. I want my answer to live on after I’m gone. I also want my teammates to see the question and answer. Sometimes they have stuff to add to the conversation.</p><p>Avoid knowledge hoarding by showing your work and holding discussions in public.</p><h3>3. Project-focused Standups</h3><p>“I don’t need you to tell me to have standups.”</p><p>Yeah, you don’t. You probably have standups which feel like a waste of time. Or maybe you’re trying the new fad to write your standup updates (tried that too, didn’t work).</p><p>The most effective standups I’ve been part of have been project specific. They focused on a single project where everyone was actively collaborating. What I worked on yesterday effects what you’re doing today.</p><p>Someone might say, “I’ve been trying to get this to run, but I keep getting this error.” And I can tell them, “Here’s the wiki I wrote on how to fix that problem. Sorry, I didn’t tell you sooner.”</p><p>Standups work best when they are actionable and focused on the nitty gritty details.</p><h3>4. Peer One-on-ones</h3><p>Before COVID, you could walk over to your teammates desk to work out a problem.</p><p>We would be discussing something over slack, then ask, “are you free to chat about this problem?” “Sure.” I’d walk over. Maybe take them to the closest whiteboard and draw out the system design.</p><p>Or we’d talk through a problem over lunch. “Can you explain that thing you’re working on? I still don’t get it.” And I’d leave saying, “Ohhh, that’s how it works.”</p><p>Peer one-on-ones are an unfortunately unnatural way to collaborate.</p><p>My advice is to keep them informal and treat them as an opportunity to mutually learn.</p><h3>6. Design Discussions</h3><p>The team huddle around the whiteboard is a classic collaboration tool.</p><p>Now that we’re working remotely, we have to be intentional. I like to make time to flesh out the details. Design discussions aren’t meant to slow anyone down. They’re meant to collaborate and get feedback so we produce better software.</p><p>Document ongoing design decisions so engineers in the future will know why certain decisions were made.</p><h3>7. Project-focused Sprint Planning</h3><p>Just like standups, unfocused sprint planning meetings can make you bored to tears.</p><p>The key to great sprint plannings is being laser-focused on one project.</p><p>We have a two dozen tasks we need to estimate and prioritize. We go task by task, “How many points, 1, 2, 3…” Someone raises 1 finger, another 3. “Okay, why do you think it’s 3? And why do you think it’s 1?” “The last time I did something similar I ran into this problem…” Great! We estimate our tasks quickly because everyone has context. Everyone on the project now has more context about another problem we might run into.</p><p>If everyone is working on a separate project with little overlap or context, sprint planning isn’t effective.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50245987cb94" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 Key Components Of Software Design Docs]]></title>
            <link>https://medium.com/@jaredlwong/5-key-components-of-software-design-docs-67126ea50f1e?source=rss-4de2098ba907------2</link>
            <guid isPermaLink="false">https://medium.com/p/67126ea50f1e</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[project-management]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Jared L Wong]]></dc:creator>
            <pubDate>Tue, 01 Feb 2022 06:12:00 GMT</pubDate>
            <atom:updated>2022-02-01T06:12:00.572Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CPMEugrO3tDybHt4Y8jEwg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@medbadrc?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Med Badr Chemmaoui</a> on <a href="https://unsplash.com/s/photos/design?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p><strong>This is part 2 in a series on project management for software engineers.</strong></p><p>A design doc is…</p><ol><li>A roadmap that shows how we’ll get from where we are today, to a future where all our users’ needs are met.</li><li>A blueprint of how our software system is built.</li><li>A living document of what we’ve built and why.</li><li>A specification of engineering requirements.</li></ol><h3><strong>1. Develop a high-level system design</strong></h3><p>The design doc lays out everything we’re going to build.</p><p>These are the main components:</p><ul><li>Data schemas</li><li>APIs</li><li>Databases and Caches</li><li>Services</li><li>Asynchronous Jobs</li><li>Big Data Jobs</li></ul><p>Use real metrics and data to inform your design. Do back of the envelope calculations of QPS, latency, and data size. Do the math for the worst case latency and the best case latency. What if everything is uncached? What if everything is already in the cache? What’s your estimated cache hit rate?</p><p>A lot of thought will go into this component.</p><p>In my experience, this is also where engineers tend to spend too much time. I’ve seen engineers go off and work on a design for 2–3 weeks or more. But I encourage them, “let’s get some feedback and design it iteratively.”</p><p>The design doc is just like a piece of code. It’s not meant to be perfect on the first time. And no one will judge you negatively for create imperfect designs.</p><p>Get it out there and iterate.</p><h3><strong>2. Define your SLAs</strong></h3><p>Codify your non-functional requirements into SLAs.</p><p><strong>Availability:</strong> How many nines of availability are your APIs? A good starting point is 99.9% for write APIs and 99.99% for read APIs.</p><p><strong>Latency:</strong> What are your median, 90th percentile, and maximum latency targets? These will be the latency in the best-case when everything is cached, the latency in the worst-case when data isn’t cached, and the failure case when you consider it too slow for your clients.</p><p>You should be able to measure your SLAs.</p><p>When I built a video and image platform, we measured the time from media upload to media encoding completion with a log processing pipeline. We had to think ahead, to design and build a system to measure our SLAs.</p><h3><strong>3. Estimate your milestones</strong></h3><p>Three reasons why:</p><ul><li>Know whether your on track</li><li>Coordinate with other teams</li><li>Prioritize your project among other work</li></ul><p>This isn’t intended to be a <a href="https://en.wikipedia.org/wiki/Waterfall_model">waterfall method</a>. I advocate for using an iterative <a href="https://en.wikipedia.org/wiki/Agile_software_development">agile method for software development</a>. Software engineering is too messy to plan everything ahead of time.</p><p>Milestones are big shippable product goals.</p><p>Estimate milestone scope (number of engineers and how long) with T-Shirt sizing or SWAG estimates: <a href="https://en.wikipedia.org/wiki/Scientific_wild-ass_guess">Scientific wild-ass guesses</a>. It’s hard to estimate precisely, but you can iteratively improve your own <a href="https://en.wikipedia.org/wiki/Fudge_factor">fudge factor</a>.</p><p>Every week there are people at the company that make sure the OKRs are going to be met. They need to know if there’s any projects that could put a top level goal at risk. We routinely evaluate our progress against our estimated milestone deadlines to see if we’re on schedule.</p><p>We use milestone deadlines to set expectations with other teams. I can tell the manager for the other team to set aside time next month for integrating with our service.</p><p>Finally, milestones help sequence the many projects that a team executes. We might build the service first, then put the project on hold while the other team integrates. After the other team integrates we can pick back up on the second milestone. In the meantime, it’s more useful for the folks on that project to transition to other work.</p><h3>4. Write a Press Release &amp; FAQ (PRFAQ)</h3><p><strong>A Press Release</strong> is a high level overview of your project. Here’s what you should cover:</p><ul><li>What problem are you solving?</li><li>What is your project and its benefits?</li><li>How does your project solve the problem?</li><li>How can a customer use this project?</li></ul><p>The aim is to connect your project to the product requirements. Are you actually solving your customers problems?</p><p>This is a sanity check-point. I’ve started designing projects but in the process realized that they didn’t actually solve the problem. In those cases, we stopped. I talked to both my manager and our customers then we reevaluated.</p><p><strong>The FAQ</strong> has two readers: external customers and internal stakeholders.</p><p>As you talk to customers, write down their questions and provide your written answers. When you present your design, write down any questions you get from stakeholders.</p><h3>5. Callout the risks</h3><p>Risks can take two forms:</p><ul><li>Risk to scope — something that will make our project take longer or require more resources</li><li>Risk to impact—something that might cause the project to be less effective than our target</li></ul><p>Ask yourself two questions:</p><ul><li>What’s likely to go wrong?</li><li>What’s the impact if it goes wrong?</li></ul><p>For high probability high impact risks, create a plan to prevent them from happening.</p><p>A risk mitigation plan could be as simple as doing some investigative pre-work. Talk to people in your company. Query your data. Do more in-depth back of the envelope calculations.</p><p>What’s the lower bound of potential impact? Estimate the impact before you code.</p><p>High risk changes could severely affect the whole application. When I built systems that touched every single request, we planned for more operations controls and testing. We added in shutoff switches for all of our dependencies. We added a plan to test our system in a degraded state.</p><p>Keep your design doc up to date as you build out your project. Future engineers should be able to come back to it to understand why decisions before their time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67126ea50f1e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Write A Product Requirements Document (PRD) For Software Engineers]]></title>
            <link>https://medium.com/@jaredlwong/how-to-write-a-product-requirements-document-prd-for-software-engineers-acb18f6a38cf?source=rss-4de2098ba907------2</link>
            <guid isPermaLink="false">https://medium.com/p/acb18f6a38cf</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[product-development]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[project-management]]></category>
            <category><![CDATA[product-management]]></category>
            <dc:creator><![CDATA[Jared L Wong]]></dc:creator>
            <pubDate>Sun, 30 Jan 2022 21:33:42 GMT</pubDate>
            <atom:updated>2022-01-30T21:33:42.497Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wU_G93oPyDOItrazCKj_sw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@markuswinkler?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Markus Winkler</a> on <a href="https://unsplash.com/s/photos/goals?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p><strong>This is part 1 in a series on project management for software engineers.</strong></p><p>The goal of a PRD is to establish the new features and behaviors of our product.</p><p>Product requirements documents are usually drawn up by product managers. If you don’t have a PM or if you’re trying to take on this role yourself, think like a product manager and not as much as an engineer. It’s not a document to discuss the implementation details, that’s for the design document.</p><pre>💡 I’m using project and product goal interchangeably. In Scrum, the outcome is a product goal. In the engineering teams I’ve worked on, we’ve usually referred to these as projects. I’m not advocating for waterfall. I’m defining a simple method to execute projects in a modern tech company.</pre><pre>💡 The PMI (Project Management Institute) calls this work a project charter. Most tech companies call something very similar a PRD.</pre><h3><strong>Before you write a line of code, understand the problem you’re solving.</strong></h3><p>When I’m given a project, I dig into what my manager or product manager hoped it would accomplish.</p><p>This has varied from, “I thought it could help move the metric on this OKR” to “our vision for the service is to have to be a black box with a single API.”</p><p>When I’ve been tasked with moving an OKR metric, I dig into it. I ask myself, “is this project really the best way to move this metric?” If it isn’t, I go back to my manager and product manager and take us on a different path.</p><p>Software systems should be simple, elegant, and easy to maintain. Many of my team’s projects aim to polish the system for these qualities. If the root concern is simplicity, ask yourself, “are we actually making the system more simple for our customers?”</p><p>Customers regularly ask us for improvements they think will solve their problem. They don’t come to us with their root problem, they come to us with their proposed solution.</p><p>I always ask my teammates to dig into the actual problem our customers are facing. A customer once said, “I’d like you to combine these APIs so we only have to make one call.” Sounds super reasonable. But the real problem was that the two API calls returned inconsistent results. Combining them might have solved their problem, but the real problem we had to solve was why our data was inconsistent.</p><p>Identifying the problem you’re solving will help you both build an effective solution and avoid unnecessary work.</p><h3><strong>Decide metrics of success.</strong></h3><p>How are you measuring the success of your project and communicating its impact?</p><p>At my previous job, our OKRs rolled up to higher level product OKRs. For example, my team would have its own OKRs that connected to organization-wide OKRs (the organization combined all the teams in the same functional area, 4 teams), and those further connected to pillar OKRs (a fancy name for how the product organization organized themselves).</p><p>Identifying the chain of key results helps in two ways. One, you can clearly state for everyone involved the impact of your work. Two, you can identify if there’s any smarter ways of solving the problem to have a greater impact on the key result.</p><p>Make sure your key results and metrics of success are measurable. For example, “how much did you improve the load time?”</p><h3>Define functional and non-functional requirements.</h3><p>Functional product requirements are things like, “a user should be able to report this piece of content.” Or “when someone reviews an image and removes it, it should be removed from the platform immediately.”</p><p>These are the features your end users care about.</p><p>Non-functional requirements are things like, “we care about availability over consistency. It’s okay if things don’t happen immediately as long as we don’t have any downtime.”</p><p>Draw out the state diagrams of how one thing feeds into the next. If you have a complex state machine map out how different user interactions will affect the system.</p><p><strong>Plan the project’s scope.</strong></p><p>The scope determines the cost of your project.</p><p>How many other teams need to be involved? How many people from our team need to be involved. At this stage we don’t want to get overly specific, but it’s helpful for managers and product owners to get a sense of the size of the project. Is this a small project for one person? A medium sized project for 2–3 people on the team for one month? Or is this a large project that needs a core set of folks for a quarter?</p><p>A project’s scope is it’s rough size:</p><ul><li>How many people from our team need to be involved? For how long?</li><li>How many other teams need to be involved?</li></ul><h3><strong>Connect the project to your teams’ vision.</strong></h3><p>I didn’t used to think about this on my own teams. But over time I’ve discovered the value in telling the story of my team’s future utopia.</p><p>“In the future, we’re going to have a single API that all our customers can call. The system will be completely self-service. We’ll be able to debug and fix any problem in an hour. We will have 99.99% availability.”</p><p>Keep these ideals in mind when you plan your product requirements. You’re never going to get that utopia, but you can get closer. Your project should align with these ideals. How can we ensure that the project is easy to debug and is highly available?</p><p>These ideals will inform our system design.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=acb18f6a38cf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Simple Scaled Scrum Framework For Teams With Multiple Products]]></title>
            <link>https://medium.com/@jaredlwong/soul-sucking-scrum-meetings-try-this-framework-af82f1de1b01?source=rss-4de2098ba907------2</link>
            <guid isPermaLink="false">https://medium.com/p/af82f1de1b01</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[scrum]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[organizational-culture]]></category>
            <dc:creator><![CDATA[Jared L Wong]]></dc:creator>
            <pubDate>Fri, 28 Jan 2022 06:47:03 GMT</pubDate>
            <atom:updated>2022-01-28T22:44:22.428Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zbRKqNgWisNim3Rxm4YXzQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@villxsmil?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Luis Villasmil</a> on <a href="https://unsplash.com/s/photos/bored?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p><strong>Engineers abhor “useless” meetings.</strong></p><p>“Why do we need this meeting? I could be coding.” I’ve heard this dozens of times. One of my teams voted to stop scrum planning because they thought it wasted time. Meetings aren’t useless. The problem is that engineers attend meetings which aren’t high enough value to them.</p><p>But the reality is teams can only function if people communicate.</p><p><strong>Here’s the trick: create smaller, focused meetings with only the necessary people.</strong></p><h3>The Leads Meeting</h3><p>The first meeting you need is a meeting between the leaders of your team.</p><p>In a software engineering team this will usually be the manager, your tech lead, and your product manager. Hold this meeting every week.</p><p>In this meeting you will cover 3 key areas: Projects, People, and Communication.</p><h4>1. Projects</h4><p>Keep a list of all the projects your team is working on or is going to work on. Bring any external requests that other teams are asking for to this meeting. There is one trick that makes this extremely useful: <strong>stack rank your projects</strong>.</p><p>Consider urgency, impact, effort, and risk. Here are the questions you should be asking:</p><ul><li><strong>Urgency</strong>: Are there any external deadlines?</li><li><strong>Impact</strong>: Will a project help you achieve your quarterly goals?</li><li><strong>Effort</strong>: How much time will a project take? Can you split it up into deliverable phases?</li><li><strong>Risk</strong>: What needs to be sequenced first? Will a project get you more clarity about future projects?</li></ul><p>Decide between every project which one is more important and why. Explain the stack rank to your team and why one project is more important than another. Engineers will speak up if your assumptions are wrong.</p><p>Split up your projects into deliverable phases. If you have a big project split it up into a planning phase and an execution phase. As you investigate during the planning phase you can replace the execution phase with more specific projects.</p><h4>2. People</h4><p>When you decide who works on which projects consider growth, experience, and equity.</p><p>Every project should have a DRI (Directly Responsible Individual). When matching people to projects consider experience, growth, and equity:</p><ul><li><strong>Experience</strong>: The DRI for a project should match their level of experience. The riskiest problems should be handled by someone with proven capabilities.</li><li><strong>Growth</strong>: Push team members a little beyond their current capabilities to help them grow.</li><li><strong>Equity</strong>: Ensure there’s an equitable distribution of project ownership.</li></ul><p>Here’s what you want to avoid:</p><ul><li>Don’t put people beyond their capabilities. You’ll set them up to fail.</li><li>Don’t keep someone on the same types of projects or simple projects. It won’t help them grow.</li><li>Don’t give all the most impactful projects to the same set of people. Everyone needs an opportunity to lead. Equitable distribution ensures everyone feels valued.</li></ul><p>Not everyone is going to be leading a project at the same time. Have at least two people on every project. You should have a backup in case that person goes on vacation or leaves the team. Teams work better when they work together instead of simply being a collection of individuals on the same oncall rotation.</p><p>Pair experienced team members with junior teammates. The experienced teammate gets an opportunity to be a mentor. The junior member gets help learning the ropes.</p><p>The two questions you should be considering for every team member:</p><ul><li>Where are they going?</li><li>What are you doing to help get them there?</li></ul><h4>3. Communication</h4><p>The final use of the leads meeting is to communicate upwards and sideways (to your stakeholders).</p><p>You need to be communicating <strong>status</strong>, <strong>issues</strong>, and <strong>risks</strong>.</p><ul><li><strong>Status</strong>: Are you on track? Are there setbacks? Is something complete and ready to be handed off?</li><li><strong>Issues</strong>: Did something unexpected come up? Are you spending a lot of time on bugs and incidents? Do you need to adjust your goals?</li><li><strong>Risks</strong>: Do you have enough people? Do you need help from other teams? After investigating do you need to increase the scope of a project?</li></ul><p>Discuss these questions and figure out plans for projects that need help.</p><h3>The Project Meeting</h3><p>The project meeting is where the bulk of the planning should be done.</p><p>If the project is cross-functional you should invite people from other teams to this meeting. At the minimum you should also have the manager, product manager for the project, and your tech lead at this meeting. In a matrix organization you may have different product managers for different projects.</p><p>Hold this meeting every other week or every week depending on the velocity of the project. Some will need more coordination than others.</p><p>A project doesn’t have to be about one project, it can contain multiple projects within the same functional area. You will have to play with the scope to find what works for your team. You may call these functional area meetings. The teams I’ve worked on the past have had 1–6 of these areas at any given time.</p><p>Before the meeting starts have your engineers write down tasks that they think should be included in the next sprint.</p><p>Here’s the agenda:</p><p><strong>1. Project: Take a high level overview of the project</strong></p><ul><li>Which parts should you sequence first? Will some part unblock other teams? Will some part allow more parallelization on the team?</li><li>Can you subdivide the project into deliverable stages?</li><li>What’s the status of the project? What issues that have come up? Any risks?</li></ul><p><strong>2. Tasks: Do the traditional scrum tasks</strong></p><ul><li>Backlog grooming: Remove outdated tasks and plan what to bring into the next sprint</li><li>Stack rank tasks: Order your tasks so that you know what to cut first when you run out of story points</li><li>Planning poker: Use planning poker to estimate the size of each task. I’ve used 1 point equal to half a day or a day in the past. The scale doesn’t matter much. The point is to ensure similar tasks are pointed the same.</li></ul><p><strong>3. People: Who’s Doing What By When</strong></p><ul><li>Similar to how you assign projects, assign tasks based on experience, growth, and equity.</li><li>Mix up the type of tasks people work on to ensure that they’re not always stuck with the boring work.</li><li>Consider assigning a hard task to a junior engineer and pair them with a more experienced mentor.</li></ul><p>In a successful project meeting everyone is engaged. People that aren’t engaged don’t need to attend. Engineers’ most frequent complaint about sprint planning meetings is that they don’t have the context of the project being discussed so their time is being wasted. Sprint planning is not an effective way to keep all team members up to date with what’s happening on a team.</p><p>Be open with who you invite, but ensure that the people invited are active participants.</p><h3>The Sprint Retrospective</h3><p>The sprint retrospective is where you assign bug and incident work, finalize tasks, and improve the process.</p><p>Everyone on the team should attend. Hold this every week or two weeks depending on your sprint cadence. I find every two weeks to be best for most software teams.</p><h4>1. KTLO: Manage Bugs and Incidents</h4><p>Software teams are persistently fighting bugs and incidents.</p><p>A good rule of thumb is to spend no more than 30% of your time working on KTLO (Keeping The Light On) work. If you are doing too much KTLO work, see if there’s any projects that you could implement that would fix the root problem. Pay down your tech debt.</p><p>Spread the bugs and incident remediations across the team.</p><p>In this meeting, point the bugs and incident remediations. Have everyone on the team discuss their best estimate for how long it will take.</p><p>Avoid putting all the KTLO work on your oncall. To be as equitable as possible, try putting the same amount of story points for KTLO in every team members’ sprint.</p><h4>2. Tasks: Cut The Fluff</h4><p>Go over everyone’s tasks for the sprint and ensure that the number of story points matches your teams’ velocity. If anybody has too many story points or if the team has too many story points use your stack ranked tasks to cut the lowest priority ones.</p><p>I’ve used a mix of assigning people tasks ahead of time, and pooling tasks into functional areas or projects and leaving them unassigned. Both methods work, you just have to do the story point math.</p><p>Be ruthless in cutting tasks.</p><p>Engineers get attached to tasks, but it’s best to drop them to the backlog and promise them that if they finish everything assigned to them in the sprint they can pull up the next tasks. This helps keep the sprint focused on the most important work.</p><h4>3. Process: Process Is The Product</h4><p>The trick to getting feedback from a software team is using thumb votes.</p><p><strong>Ask: How did you feel about the last sprint? Thumbs up, down, or somewhere in between.</strong></p><p>Have everybody cast their vote.</p><p>For people that put a thumbs up ask them what went well. For those that were down or ambivalent ask them what made it difficult.</p><p>I also use the thumb vote technique for team and project decisions. If there’s a proposal, I like to get everyone to vote. People are typically slow to speak up, but they’ll cast their vote faithfully.</p><p><strong>Ask: What’s one thing you want to do differently?</strong></p><p>Take one of those changes and try it the next sprint. It could add more to the process, remove part of the process, or change the process. What’s important is that these ideas are coming from the team and that you keep iterating.</p><p><strong>How you’ll know it’s working:</strong></p><ul><li>Team members consistently feel good about the sprint</li><li>The changes being proposed are minor</li><li>Your projects are running like clockwork</li><li>Your team accomplishes its OKRs and manages its KTLO work</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af82f1de1b01" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[One  Crucial Tip To Escape Code Review Hell]]></title>
            <link>https://medium.com/better-programming/1-crucial-tip-to-escape-code-review-hell-ae59cb3baa47?source=rss-4de2098ba907------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae59cb3baa47</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Jared L Wong]]></dc:creator>
            <pubDate>Wed, 19 Jan 2022 05:44:53 GMT</pubDate>
            <atom:updated>2022-01-20T07:09:07.070Z</atom:updated>
            <content:encoded><![CDATA[<h3>One Crucial Tip To Escape Code Review Hell</h3><h4>How to have quicker and more effective code reviews</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O8ka3YKUeClSXmbjqF8SZA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@alvarordesign?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Alvaro Reyes</a> on <a href="https://unsplash.com/?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>I put up my code for review two weeks ago. It still hadn’t been approved.</p><p>I was on the sixth revision of the code. The day before, I had fixed the comments left by the staff engineer responsible for the codebase I was modifying. Today, there were another round of comments on new parts.</p><p><em>Why didn’t he just review all the code?</em></p><p>I was tired. I messaged him. “Hey, can I chat with you in person about my PR?”</p><p>“Sure, come over to my desk any time.”</p><p>I walked to his window desk and pulled up a chair. He pulled up my code review. He helpfully walked me his comments and thanked me for the changes I made so far.</p><p>Then we discussed the actual design of my code.</p><p>I explained to him what I was trying to do. He pointed out a different way of structuring the code that he thought was better since it followed his codebase’s style. “It looks pretty good. Just make that change and I’ll approve it.”</p><p>I plopped down on the nearest couch, made the changes, and sent it back. He approved it within minutes.</p><h3><strong>The one tip to boost your code reviews is doing them face-to-face (or by video call).</strong></h3><p>Since that experience, I’ve had that same opportunity—reviewing client-facing API code for the whole company. I reviewed at least one code review a day from different people.</p><p>Many code reviews don’t require any interaction. They’re simple and straightforward. A function change. A logic change.</p><p>But whenever I got a review which really tried to change things—implement some new functionality or modify the core framework—I went out of my way to have a chat with the author.</p><p>I’d understand what they were trying to do and why, and then propose some bigger structural changes. After the big refactor was out of the way we would do the small code style nits.</p><p>Code review time can be cut in half.</p><h3><strong>Your reviews are slow because reviewers don’t understand your goal.</strong></h3><p>Code tells you literally what is happening but it doesn’t tell you why.</p><p>But there’s always multiple solutions to a problem. I’ll ask someone what they’re actually trying to do. Once I know the why, I can propose better solutions.</p><p>It will take you longer to fix the forest if you only focus on the trees. You need to get the structure right before you fix all the code style problems. Code review tools aren’t always the best to understand the context. Sometimes people link whole specification documents. But your reviewer shouldn’t have to read about your whole project to review your code—they’re doing you a service.</p><p>When you talk to someone face-to-face your communication bandwidth goes from 1 Mbps to 1 Gbps.</p><h3><strong>Your reviews are slow because they’re asynchronous.</strong></h3><p>Asynchronous communication is convenient. But it’s not efficient.</p><p>I’m not advocating that you need a meeting for every code review. You can make it non-intrusive and quick.</p><p>When we were back in an office, if I reviewed code from a coworker who sat near me, I would just turn my chair around to do the review. Now that everyone’s working remote, I bet more people are stuck in code review hell because there’s not as many quick face-to-face chats.</p><p>Normalize quick slack calls. Code reviews don’t have to take a long time.</p><p>Try pair programming code reviews.</p><h3><strong>People are kinder face-to-face than over text.</strong></h3><p>This is a truism of the internet.</p><p>Code reviews aren’t as bad as online chatrooms, but you do lose empathy and tone through text. When people only nitpick at your code, you might believe they’re a grouch or that they’re trying to prove their superiority. You’re better talking to someone face-to-face than getting into a pissing match and leaving passive aggressive code review comments.</p><p>This advice works both ways.</p><p>If you’re given a frustrating code review, or if you’re the one frustrated by a reviewer, talk to the human on the other side.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae59cb3baa47" width="1" height="1" alt=""><hr><p><a href="https://medium.com/better-programming/1-crucial-tip-to-escape-code-review-hell-ae59cb3baa47">One  Crucial Tip To Escape Code Review Hell</a> was originally published in <a href="https://betterprogramming.pub/">Better Programming</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 Steps To Build Safer Apps]]></title>
            <link>https://medium.com/@jaredlwong/dont-forget-to-build-the-mod-tools-5-steps-to-safer-apps-d05468fdffec?source=rss-4de2098ba907------2</link>
            <guid isPermaLink="false">https://medium.com/p/d05468fdffec</guid>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[product-development]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[social-media]]></category>
            <category><![CDATA[community]]></category>
            <dc:creator><![CDATA[Jared L Wong]]></dc:creator>
            <pubDate>Sun, 16 Jan 2022 16:06:06 GMT</pubDate>
            <atom:updated>2022-01-16T16:54:03.321Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7kzjUNZlAQam4d-h3uyApw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@paucasals?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Pau Casals</a> on <a href="https://unsplash.com/collections/8690805/spam-red-door?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>You need mod tools if your app lets people upload anything, write text, or talk.</p><p>Harassment is a problem on every messaging platform. If you let people upload images, you’re going to get porn. If you let people form communities, people will spread misinformation or discuss self-harm.</p><p>We can’t ignore these problems: there are harms of unprotected internet usage.</p><h3>Step 1: Review your users by hand</h3><p>You want to beta test your product to get feedback.</p><p>But you don’t want to deal with spam and content problems early on — it’s just going to slow you down. By being selective, you’re giving your feature the best shot at starting off with quality content. It’s a lot of manual work to start, but it’s actually a lot cheaper than building out a whole moderation system.</p><p><strong>Do the simple, manual thing first.</strong> Once you’ve proven out your product you can automate more.</p><p>Tip: Make sure to look a the content your users are posting to see early signs of unintended use.</p><h3>Step 2: Let trusted users add friends</h3><p>If you want to grow your user base, let your users add trusted friends.</p><p>For example, Clubhouse grew by giving out three invites to each user. You vouched for your friend by inviting them.</p><p>Your product is going to be safer if you use real identification. Clubhouse verified phone numbers which is a classic way of limiting spam. Anonymity makes it harder to catch bad actors and keep them off your product.</p><p>A buddy system is a good middle ground before you open up the firehose.</p><h3>Step 3: Add report buttons and a review tool</h3><p>Every user created thing in your app should have a report button.</p><p>If you let people upload avatars, you’ll get porn. If you let people upload images for anything, you’ll get porn. If you let people write, you’ll get harassment. If it can be abused, it will be abused, and you need to know.</p><p>Reporting is one of the most critical features that people forget.</p><h3>Step 4: Set up simple filters and block duplicate junk</h3><p>Keyword block lists and databases of known junk are the simplest ways to get ahead of the problem.</p><p>There’s a reason why every game has a banned keywords list: it works. Once you manually review something, you don’t want to look at it again. That just wastes everyone’s time and can lead to inconsistent decisions.</p><p>Manually populate these systems with keywords you select and things that you’ve reviewed.</p><p>Again, do the simple thing first. Automate later.</p><h3>Step 5: Train machines to filter and flag users</h3><p>Once you have the basics in place, then you can build an automated system.</p><p>You’ll have a lot of good data from your review system to train a classifier. Start with users before content. Finding bad users is easier than finding bad content. You have a lot more datapoints for each user than you do for a piece of content.</p><p><strong>Automatic detection takes a lot of work to avoid classification errors: don’t start here.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d05468fdffec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[3 Vital API Metrics You Should Monitor]]></title>
            <link>https://medium.com/better-programming/software-engineers-standardize-and-simplify-your-alerts-3-vital-signs-you-need-to-monitor-75802058ea23?source=rss-4de2098ba907------2</link>
            <guid isPermaLink="false">https://medium.com/p/75802058ea23</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Jared L Wong]]></dc:creator>
            <pubDate>Fri, 14 Jan 2022 02:57:56 GMT</pubDate>
            <atom:updated>2022-01-14T05:58:42.283Z</atom:updated>
            <content:encoded><![CDATA[<h4>Standardize and simplify your alerts</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IGwqvzgLvly8Wi15" /><figcaption>Photo by <a href="https://unsplash.com/@dlerman6?utm_source=medium&amp;utm_medium=referral">Daniel Lerman</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Alerts shouldn’t be reinvented for every application.</p><ul><li>Having a lot of alerts gives a false sense of security. Incidents go undetected because the basics aren’t covered.</li><li>More alerts mean more tuning. Often they aren’t tuned and they cause alert fatigue.</li><li>Standardized vital signs make communication with other engineers easier. Everyone can understand them without knowledge of your application.</li></ul><p>The three vital signs you need to monitor for every API are: Success Rate, Latency, and QPS.</p><h3>1. Success Rate (SR) is the metric you need to monitor failures</h3><p>The success rate is comparable across APIs because it normalizes QPS.</p><p>The alert volume will change over time with QPS. Your success rate should stay stable.</p><p>Remember to set expectations and document the SLA for your API. Most APIs should have an SLA of 3-nines (99.9%) or 4-nines (99.99%). Upstream customers of your API should know that their SLA can’t be higher than yours unless they have a fallback.</p><p>The best way to measure success rate is by exporting success and failure counts. Use this formula:</p><pre>success_rate = success / (success + failure)</pre><p>I prefer this formula versus success / qps because this formula can never be over 100%. If your monitoring system is slightly off in exporting timestamps for your metrics, you may well end up with success &gt; qps in which case your success rate will be over 100%.</p><p>Three advanced tips:</p><ol><li>Any errors from invalid input should not be counted as failures (they’re not errors in your application)</li><li>If slow requests are higher than your SLA, count them as errors (your customers will timeout and consider it a failure — so should you).</li><li>Measure your success rate over a period with at least 100 requests. If your API isn’t called more than 100 times per second, then you need to do a rolling success rate over a longer window (1–10 minutes).</li></ol><h3>2. Latency: Use it to catch bad code, bad hosts, and bad downstream dependencies</h3><p>Latency can summarize how each host is behaving and how downstream hosts are behaving.</p><p>Bad code will increase latency on all your hosts. Bad hosts will increase the maximum latency in your cluster. Bad downstream dependencies, like databases, cause a few servers in your cluster to act up.</p><p>The best metrics to monitor are multipurpose and help you avoid mental overload.</p><p>The latency of your service is calculated using two aggregations that you need to tune:</p><ol><li>How you aggregate the latency of requests for one server</li><li>How you aggregate per server metrics (1) for a cluster</li></ol><p>Each server will aggregate the latency of requests over some time period. Then your monitoring system will aggregate those per-server metrics into a summary statistic for your cluster.</p><p>I recommend monitoring four statistics per server: p50, p90, p99, p999. When you aggregate these from all servers in a cluster, think about how many servers you can tolerate being in a bad state. For example, if you have a 100 server cluster and you can tolerate a 10 being bad, aggregate them using a p90. If you can’t have a single one misbehaving use the maximum.</p><p>Latency dashboards and alerts frequently measure an average or median (p50) of all the latencies from all the hosts in a service fleet. Neither of these summary statistics can reliably catch bad hosts or downstream dependencies.</p><h3>3. Queries Per Second (QPS): Unexpected QPS drops and spikes are leading indicators of incidents.</h3><p>Always measure your QPS.</p><p>QPS is one of the most important metrics you need to communicate with other engineers. How much QPS is your use case? How much can my application handle?</p><p>QPS drops and increases are normally caused by other systems. But you need to be aware of drops because it may your fault if your service is unavailable. And a QPS increase may overload your service or its dependencies.</p><p>Applications need to be built and scaled differently depending on their QPS.</p><p>Don’t measure the queries per minute, per hour, or per ten seconds: only per second. QPS is a helpful metric to compare across services. If your service isn’t taking less than 1 request per second, aggregate it, then normalize to seconds.</p><p>The best way to alert on QPS is to compare it with historical data. In the past, I’ve monitored day-over-day and week-over-week measurements to catch incidents.</p><p>Standardizing on QPS will help you maintain your sanity when working across multiple APIs and services.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75802058ea23" width="1" height="1" alt=""><hr><p><a href="https://medium.com/better-programming/software-engineers-standardize-and-simplify-your-alerts-3-vital-signs-you-need-to-monitor-75802058ea23">3 Vital API Metrics You Should Monitor</a> was originally published in <a href="https://betterprogramming.pub/">Better Programming</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>