<?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 Richard Lee on Medium]]></title>
        <description><![CDATA[Stories by Richard Lee on Medium]]></description>
        <link>https://medium.com/@rich-w-lee?source=rss-79b30156f62c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Rt7LubqXjA1Gysf7d1tp9w.jpeg</url>
            <title>Stories by Richard Lee on Medium</title>
            <link>https://medium.com/@rich-w-lee?source=rss-79b30156f62c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 10:35:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rich-w-lee/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[Continuous Deployment Gave Me Heartburn — Until I Understood DORA]]></title>
            <link>https://rich-w-lee.medium.com/continuous-deployment-gave-me-heartburn-until-i-understood-dora-6649e44ca520?source=rss-79b30156f62c------2</link>
            <guid isPermaLink="false">https://medium.com/p/6649e44ca520</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[dora-metrics]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Richard Lee]]></dc:creator>
            <pubDate>Sat, 31 Jan 2026 16:23:26 GMT</pubDate>
            <atom:updated>2026-01-31T17:29:47.656Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Continuous Deployment Gave Me Heartburn — Until I Understood DORA</strong></h3><figure><img alt="An AI generated image depicting Dora the Explorer as a software engineer looking at a DORA metrics Dashboard" src="https://cdn-images-1.medium.com/max/1024/1*iL0N8xq0yBvnELm5lpJK0w.png" /><figcaption>Dora The Explorer looking as a DORA Metrics dashboard. Image generated with Google Gemini.</figcaption></figure><p>My company is on a journey to implement continuous deployment in our Software Development Lifecycle (SDLC), and it’s been…contentious. The biggest reason for this, in my opinion, is the lack of understanding on not only the <em>why </em>but also some of the <em>how</em>. The second biggest reason are the proposed timelines, but that’s a whole other story.</p><p>A lot of tech leaders will declare the strategy and then delegate the how to others — and that works for a lot of problems where it’s just a lot of work that various teams have to do, and the work may be unclear but doesn’t really affect the day to day of most people.</p><p>But continuous deployment is different. It affects every developer, and is a pretty large change to the fundamentals and challenges our mental models of how we develop software.</p><p>Gone are the days of taking a Jira story, working on it for a few days between meetings, raising a PR, waiting for reviews, finally merging it after a few more days, and then slotting it for release during the next release window. It will look different now — and while the high level is still kind of the same, the specifics are pretty different. And I’ll be honest, it makes me a little uncomfortable.</p><p>Now I believe that part of our jobs as Software Engineers is to determine if that discomfort is just because of a little resistance to change, or if it’s because the strategy doesn’t seem right. I think that it’s good to push on things like these, and see if it falls apart, or holds steady. At worst, you’ll build confidence in the strategy, and at best, you’ll identify critical issues.</p><p>So let’s talk about continuous deployment, and how it’s going to change our day to day.</p><h3><strong>Continuous Deployment in a Nutshell</strong></h3><p>So the heart of what continuous deployment (CD) aims to solve is reducing risk. It’s an intuitive concept, where if you deploy more often, with less changes, the blast radius will be smaller and thus the risk of impact is lower. So more frequent, lower risk releases are preferable to less frequent but higher risk releases.</p><p>There are a few over-arching concepts that CD is built on:</p><h4><strong>Separating release from deploy</strong></h4><p>Releasing is when you enable new or changed functionality. Deploying is when you have your code sent to the production environment. <strong>The critical difference — your deployed code doesn’t have to actually run, or be feature-complete yet.</strong></p><p>One of the best solutions to accomplish this are<strong> feature toggles</strong>. They allow you to include your code in your production build behind a conditional statement, but it’s never actually run so you’re able to ship your feature one bit at a time.</p><p>What I’m not saying is that you should use a feature toggle for everything — that’s very much not true (in my opinion). Feature toggles add overhead — you have to create it, implement the conditional logic, add tests, eventually remove the conditional logic and tests, and then delete the toggle. Some changes are small enough that you may not want a feature toggle, so the deployment and release will be the same. This works especially well when there are no other changes being released because a rollback wouldn’t affect any other features. So use your best judgement on if your change needs a feature toggle or not.</p><h4><strong>Trunk Based Development</strong></h4><p><strong>The idea here is that you should use multiple small, short lived branches for your changes, and merge them into your main branch, which is the only thing you deploy.</strong></p><p>It’s built off the analogy that your version control is like a tree that has many branches, where its “trunk” of the tree is your main branch.</p><h4><strong>Small PRs</strong></h4><p><strong>Small PRs are easier to review, making them quicker to review, thus making them get reviewed and merged faster.</strong></p><p>Nobody likes huge PRs. They’re hard to review, take forever to review, and it’s very easy for bugs to get missed and slip through the cracks.</p><h3><strong>DORA Metrics</strong></h3><p>DORA (<em>DevOps Research and Assessment)</em> was basically a large scale research project that ran from 2014–2021, was acquired by Google in 2018, and was all about finding what makes organizations “high performing”. <strong>One of the big outputs were four metrics that measure speed and stability, and those have effectively become the de-facto standard in the industry for measuring team effectiveness.</strong></p><p>The four metrics it identified are:</p><ul><li><strong>Deployment Frequency</strong>: number of deployments in a given time period (i.e per day, per week)</li><li><strong>Change Lead Time</strong>: Amount of time taken to implement, test, and deliver code for a feature. Typically measured from first commit to deployment.</li><li><strong>Change Failure Rate</strong>: Percentage of failed changes, i.e. changes that required a rollback or fail-forward.</li><li><strong>Mean Time To Recover</strong>: When an incident occurs, how long does it take to recover?</li></ul><h4><strong>Why DORA?</strong></h4><p>So before DORA, metrics were almost like the Wild West, with managers tracking things like lines of code, number of commits, etc — which look like they’re a good measure of efficiency, but are easy to game and can incentivize the wrong behavior.</p><p>DORA made it more scientific — over seven years they surveyed thousands of companies and found that high performing engineering teams directly contribute to the company’s success. It’s shifting the narrative from “how much are we typing”, to “how much value are we delivering”.</p><p><strong>They also found that that speed and stability aren’t mutually exclusive, and that the best engineering teams can do both.</strong></p><p>Also, the fact that Google acquired DORA and has integrated it within Google Cloud might have something to do with it becoming so popular.</p><h4><strong>DORA Levels</strong></h4><figure><img alt="Table of the DORA levels" src="https://cdn-images-1.medium.com/max/1024/1*PKCGBcnq3jIPoWQUNhpk8Q.png" /></figure><p>DORA has 4 levels: Elite, High, Medium, and Low. Now, when you look at the metrics for Elite, it looks…potentially unrealistic for your company. That’s the way I felt — not necessarily that we could never get there, but just that it would take a while. But one thing to keep in mind is that you should always strive for excellence and shoot for the moon. So don’t think of it as an impossible task, but just a challenge to overcome. <strong>But don’t feel like you have to go directly to DORA Elite, it should be treated as a North Star.</strong></p><h3><strong>Change Lead Time</strong></h3><p>The Change Lead Time metric of DORA is what gave me the most heartburn, and even more so once I really understood it. The clock starts at the <em>first commit</em> — my first impression was that it’s asking an Elite team to effectively write all code, open a PR, get the reviews, merge it, and deploy it, all within 24 hours. I don’t know about you, but outside of urgent bug fixes, I don’t think I’ve <em>ever</em> done that.</p><p>Now you might be thinking, “what if I just don’t commit anything until the very end?” or “What if I just pop the commits and recommit once I open a PR?”. If you didn’t, well good on you, but I definitely thought it. Regardless if you thought it or not — don’t do it. While it might help you meet the metric, it’s not going to get you the outcome you’re looking for.</p><p><strong>Instead of trying to cheat to meet the metric, you should try to find actions you can do that will help you naturally meet the metric.</strong></p><h3><strong>How to Get to Elite Change Lead Times</strong></h3><p>Elite change lead time gives you 24 hours from starting coding to deployed in prod. But assuming that you don’t work around the clock, and are a human that sleeps, it more realistically leaves you 8 working hours to code your feature, get reviews, and get it deployed (keyword is <em>working</em> hours).</p><p>So given that, here are a few things you can do to help your team meet a 24 hour change lead time. But I’ll caveat that they aren’t simple “do it once” actions, but rather more cultural changes that you have to keep doing over time.</p><h4><strong>1. Small PRs, Quickly Reviewable</strong></h4><p>I mentioned small PRs earlier because they are 100% critical to low change lead times. If your PRs take hours to review, it has no shot of meeting the 24-hour target. <strong>But if your PR is able to be reviewed in under 15 minutes, then you’re in business.</strong></p><p>I don’t have a magic “changed lines” count for you to meet — use your best judgement in what you think can be reviewed in ~15 minutes. A one line import change across 100 files might be an easy LGTM, while a 10 line change of dense, recursive logic might require a deep dive. But as a general rule of thumb, the less changes you have the better.</p><h4><strong>2. Shift the design left</strong></h4><p>It’s way easier to write code when you already know how your feature will work. Starting to code without actually knowing what you want to code is a great way to waste time — something that will hurt your change lead time.</p><p>Instead, you should spend time designing your feature <em>before</em> you start coding, effectively shifting it left in the development lifecycle. <strong>The great thing about this is that any time you spend designing doesn’t count towards your change lead time.</strong></p><p>It’s also great when you get consensus on the design with your team before the PR stage, because it lets reviewers focus on the implementation of the feature, not the design of the feature.</p><h4><strong>3. Open PRs take priority</strong></h4><p>Because PRs should be smaller, there will naturally be more of them. Since we have such a tight timeline, preference should be given to open PRs first, before starting new work. This will effectively shift your team to a “review-first” culture.</p><p>Your team can accomplish this a few ways, such as habitually checking the GitHub PRs page. But what would likely work better is using GitHub to auto assign reviewers to PRs, which will help spread the load, and then a SlackBot that tags people with their assigned PRs on some cadence.</p><p><strong>But regardless of how you accomplish it, everyone on the team needs to actively participate in reviews, and prioritize getting PRs reviewed as quickly as possible so it can meet the 24 hour change lead time.</strong></p><h4><strong>4. Break down your stories and plan your PRs</strong></h4><p>If you’ve got 8 working hours to get a PR to prod, you realistically only have a few hours of that to do the actual coding, so your PR has to be able to be written in that amount of time. <strong>So when you’re creating stories, make sure that you’re breaking them down as small as you can, keeping the change lead time in mind.</strong> Personally, I discourage breaking stories down <em>too much</em>. I’m of the mindset that the more time you spend in Jira, the less time you have to do actual work. There’s a balance between how small stories should be, so do what makes sense but don’t waste time breaking it into smaller units just for the sake of it.</p><p>Breaking your stories up will require a partnership with Product, but the smaller stories will also mean more frequent “wins” for the business, even if the Jira board looks busier.</p><p>Something I want to call out too is that one story does not equal one PR — you can have multiple PRs associated with a story. So before starting your work, after you’ve determined your design, determine what chunks are able to be completed within a few hours. What I <em>don’t</em> recommend with that is splitting your tests out — I’d personally recommend having the corresponding unit tests for any of the code in your PR, but it’s okay for acceptance/integration tests to be added in later (or maybe even before, if you’re a fan of Test Driven Development).</p><h4><strong>5. Protect the flow</strong></h4><p>You get into a flow state when you have uninterrupted focus on a singular task for a period of time. The time it takes to get into that varies per person, but it’s typically about 15–20 minutes, and then can last for 30 minutes up to a couple of hours. During this flow state, you’re typically going to be more effective at your task compared to working on it in small bits throughout the day.</p><p>Paul Graham (co-founder of Y Combinator) wrote about the <a href="https://paulgraham.com/makersschedule.html">Maker’s Schedule</a>, and that Makers need at least 3–4 hours of uninterrupted time to achieve deep work, and that a single interruption (i.e. meeting) can break the flow.</p><p><strong>Protecting your flow time is critical to being effective at CD and being able to meet the 24 hour change lead time metric.</strong> There are a few ways to do this, but the main two options are:</p><ol><li>Move all the meetings to the morning (or afternoon)</li><li>Have 1–2 full days of no meetings</li></ol><p>They both achieve the end goal of giving engineers time for deep focus, but I personally prefer moving all the meetings to the morning because I think it’s more realistic than getting an entire day.</p><p>Bonus suggestion: Sometimes there are meetings that can’t be moved — so determine if you actually need to go. If you don’t think you’ll either get anything out of the meeting, or won’t provide any additional value, then don’t go. You’ll have to deal with the FOMO, but that’s way better than wasting time in a useless meeting and then losing your deep focus.</p><h3><strong>Conclusion</strong></h3><p>Continuous Deployment is a psychological shift, moving us away from the “safety” of large, infrequent releases — which turns out to not be all that safe — and toward a model of constant, incremental improvements.</p><p>It’s okay if the DORA “Elite” metrics feel uncomfortable or even impossible right now. That discomfort is just the friction of an old mental model rubbing against a new way of working. By breaking down our stories, shifting our design conversations earlier, and prioritizing reviews as a team, that 24-hour lead time stops looking like a deadline and starts looking like a natural rhythm.</p><p>The data from DORA is clear: you don’t have to choose between going fast and staying stable. You can have both. It’s a journey that requires changing our habits and our culture, but for a team that wants to deliver real value without the “release day” heart palpitations, it’s a journey well worth taking.</p><p><strong>So, the next time you’re about to open a massive PR, ask yourself: how can I make this smaller? Your lead time (and your reviewers) will thank you.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6649e44ca520" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why You Shouldn’t Be Sports Betting in 2026: The Ugly Truths]]></title>
            <link>https://rich-w-lee.medium.com/why-you-shouldnt-be-sports-betting-in-2026-the-ugly-truths-b13c7d7a838f?source=rss-79b30156f62c------2</link>
            <guid isPermaLink="false">https://medium.com/p/b13c7d7a838f</guid>
            <category><![CDATA[betting]]></category>
            <category><![CDATA[sports]]></category>
            <category><![CDATA[gambling]]></category>
            <category><![CDATA[sports-betting]]></category>
            <dc:creator><![CDATA[Richard Lee]]></dc:creator>
            <pubDate>Tue, 20 Jan 2026 23:33:03 GMT</pubDate>
            <atom:updated>2026-01-21T00:06:48.666Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*B7PviGJTLSuiIopz" /><figcaption>Photo by <a href="https://unsplash.com/@amit_lahav?utm_source=medium&amp;utm_medium=referral">Amit Lahav</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Sports betting has had a meteoric rise since it became a state-level regulation instead of federally illegal in 2018. Now it feels like every other commercial is for some sportsbook or market prediction site.</p><p>I get why it’s popular — it’s fun. It makes it more interesting to watch games, and the high of winning a bet feels amazing. But that high wears off quickly, and doesn’t outweigh the negative feelings when you inevitably lose.</p><p>So whether you’re already sports betting or considering getting into it, here are some things to keep in mind.</p><h3>Only 3% of bettors are profitable</h3><p><em>Note: This is a common datapoint that’s available online, but the data itself isn’t actually available, so I can’t verify it’s factual.</em></p><p>Assuming this datapoint is accurate (which I do), the odds are overwhelmingly not in your favor to be profitable long term, especially if you’re a casual bettor. It’s important to recognize that this datapoint includes professional sports bettors, who likely have more data, time, and money than you when making sports bets.</p><h3>The “Big Beautiful Bill” changed how taxes work for bets</h3><p>Pre-2026, the tax code for betting was relatively simple: you only owe taxes on your <em>net profit</em>.</p><p>But that’s not true anymore. The Big Beautiful Bill added a provision that starting for the 2026 tax year (so applicable for the 2027 tax return), you can only deduct 90% of your losses, not 100%. <strong>This means that even if you’re down for the year, you’re still going to owe taxes.</strong></p><p>I can’t say for sure why this was added in, but I’d guess it’s there to curb the rise of sports betting.</p><h3>It’s straight up addictive</h3><p>If you’ve been on a sportsbook app before, you’ve seen the warnings about gambling addiction. They’re legally obligated to put those there because of how addictive betting can be.</p><p>It’s way too easy to tilt when you’re on a losing streak. You might accept higher risk in an attempt to claw your way out of the hole you’ve found yourself in, only to (most likely) dig yourself in deeper.</p><p>And if you find yourself scrolling for games to bet on at 12am, and betting on some weird sports market that you don’t follow, only because it’s the only game available at that time of day — you might have a problem.</p><p><strong>So if you think you might have addictive tendencies, sports betting could be very dangerous for you and cause a lot more harm than good.</strong></p><h3>The sportsbooks are smarter than you</h3><p>When you’re betting via a sportsbook, it’s a you vs. them scenario. They set the betting lines and associated odds, and you pick a side. If you win, they lose money. And if you lose, they win money.</p><p>The sportsbook is using data for this, and have teams of people dedicated to making models that can ingest the data and output highly accurate predictions and probabilities, and then they make betting lines based on that.</p><p>But how are <em>you</em> picking your bets? Vibes? <strong>Even if you’re using data to drive your decisions, the chances are the sportsbook has more data, better data, and more time to analyze it.</strong> They use that to their advantage, trying to maximize the money they make. As a causal better, it’s hard to find an edge.</p><h3>Cheating is hard to prove, but definitely happening</h3><p>Have you have had a bet that was an absolute sure thing, and then it misses. It’s hard to know whether it was just a stroke of bad luck, or if the team/players were intentionally altering their behavior to ensure a bet went a certain way.</p><p>I mention this at a time when multiple cheating scandals have been reported on, such as the <a href="https://www.nytimes.com/athletic/6788069/2025/11/25/nba-players-coaches-gamblers-betting-investigation/">NBA in 2025</a>, and the <a href="https://www.reuters.com/world/us/us-charges-20-people-with-rigging-college-chinese-basketball-games-nbc-reports-2026-01-15/">NCAAB in 2026</a>. So it’s definitely happening, and those are just the people that got caught.</p><h3>Sportsbooks will limit your account if you win enough</h3><p>This was one of the bleakest realizations for me personally. Even if you are successful and find a profitable strategy (aka “edge”), books will realize this and limit your account to where you can only bet up to a certain limit, sometimes as low as single-digit dollars or cents.</p><p>If you’re consistently profitable, getting limited isn’t an <em>if</em> — it’s a <em>when</em>. The house doesn’t just want to win; they refuse to lose. Sportsbooks have to make money in order to operate, and if they find someone that’s consistently beating them at their own game, they’ll stop the bleeding.</p><p>It’s like if you’re counting cards at a Casino and are up big, security might come and kick you out. Despite being perfectly legal, the casino (and sportsbook) don’t have to take your business, and you are not entitled to it. So sportsbooks are perfectly within their rights to stop allowing profitably bettors from using their services, as unfair as that may be.</p><p><strong>So even if you do find an edge, you’ve got a ceiling on how high you can scale the profitability, and how long it will last. It might be weeks, maybe months, but it won’t last long.</strong></p><h3>Cappers exist for a reason</h3><p>In the world of sports betting, cappers are people who sell their bet picks. You might ask yourself — if their picks are so good, why don’t they just bet on them and profit from it directly?</p><p>My take is that they’ve realized the volatility of sports betting themselves (see the above reasons), and found a more profitable path — selling picks. It’s a risk-free hustle for them, since they don’t risk any of their own money. They still need to ensure they have an edge, and maintain a positive ratio of wins to losses to ensure that people buy their picks.</p><p>Cappers are similar to sportsbook in that they likely have more data, time, and money than a casual bettor does. So if they realized they couldn’t beat the game, why do you think you can?</p><h3>Conclusion</h3><p>My overall take on sports betting is simple — <strong>it’s not worth it</strong>. I’ve spent probably hundreds of hours doing things like market research, data scraping, and creating machine learning models, and I still couldn’t be profitable. That time could have been better served on so many other things, and likely brought me more enjoyment.</p><p>So be realistic — <strong>sports betting is not a get rich quick scheme</strong>. If it was, everyone would be doing it, and everyone would be rich, but that’s not the world we live in.</p><p><em>Whether this article has convinced you or not, if you do decide to keep sports betting it’s important to bet responsibly — know your limits and never wager something that you’re not okay with losing. If you think you might have a problem, call the National Problem Gambling Helpline at </em><strong><em>1–800–522–4700</em></strong><em>, or visit </em><a href="https://www.ncpgambling.org/help-treatment/"><strong><em>https://www.ncpgambling.org/help-treatment</em></strong></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b13c7d7a838f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Explaining it to my parents: AI]]></title>
            <link>https://rich-w-lee.medium.com/explaining-it-to-my-parents-ai-d595fc2bb5a2?source=rss-79b30156f62c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d595fc2bb5a2</guid>
            <category><![CDATA[explainable-ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[genai]]></category>
            <dc:creator><![CDATA[Richard Lee]]></dc:creator>
            <pubDate>Wed, 31 Dec 2025 15:44:21 GMT</pubDate>
            <atom:updated>2025-12-31T15:44:21.416Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fIPMqCcz7PtnZWLF" /><figcaption>Photo by <a href="https://unsplash.com/@growtika?utm_source=medium&amp;utm_medium=referral">Growtika</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><em>In this series, I write like I’m explaining topics to my parents — adults who know a lot of things, but maybe not much about some specific topics. I’ll give mostly high level information on it, try to keep it short and sweet, and try to keep it as unbiased as possible, but also share some of my personal opinions. I’m not perfect, so feel free to comment with any corrections or alternative view points!</em></p><p>So the term AI (Artificial Intelligence) isn’t new, it’s actually been around since the 1950s, believe it or not. It’s been used as a catch-all phrase that that describes any logic that a computer is doing, in an attempt to mimic a human mind. This could be simple automations, more complex algorithms, modern interpretations like Machine Learning and Generative AI, and of course the omnipresent sci-fi example where we try to model a human brain and consciousness digitally (that may or may not try to take over the world).</p><h3>Types of AI</h3><p>For the sake of this article, I’m going to focus on the two types that are more prevalent in modern times: Machine Learning and Generative AI.</p><p><em>Note: Technically, Machine Learning is a subfield of AI, and Generative AI is a subfield of Machine Learning. But practically, I think it’s easier to see them as two distinct, but related, things.</em></p><h4>Machine Learning</h4><p>Machine Learning (ML) is really just using really fancy math to process data and make decisions about it, such creating a prediction or classifying data. What’s great about it is that it can take a whole bunch of data that a human couldn’t possibly interpret, and find patterns and similarities in order to create some insights.</p><p>In ML, a “model” is created by passing data to one of those fancy math algorithms (i.e. Linear Regression or Random Forest), and tuning it in various ways (data cleaning, hyperparameters) until it’s able to give the desirable output. This is a process called “training”.</p><p>It’s important to note that it’s very common that models aren’t able to give the desired output. This could be due to insufficient data, too much data, or the lack of a discernible pattern between X variables (input data) and Y variable (output prediction). For example, I likely can’t use the passing and receiving data of the Baltimore Ravens to predict the price of real estate in California. But I might be able to use that data to predict if they’d win their next game, but I’d likely also need the opposing teams data.</p><p>ML is one of the reasons why you’ve probably heard about “data” so much in the past decade — it’s what powers the models and society has basically decided it’s easier to just capture as much data as possible to feed into these models.</p><p>ML models have been around for a while (over 20 years), and are used for a whole bunch of things — some common examples include fraud detection for your credit card, personalization in social media feeds, and even for medical diagnosis for analyzing things like X-ray and MRI results.</p><p>A very simple use case for Machine Learning would be training on a dataset of images containing bananas, to create a model that can tell if a given image contains a banana.</p><p>The big thing to remember here is that ML models are taking various data points as an input, and returning some prediction or classification about the result, usually some discrete value like true/false, a number, or some category.</p><h4>Generative AI</h4><p>Generative AI (GenAI) is basically Machine Learning on steroids. It still does the same basic process of “take data and give output”, except that output is what’s substantially different — instead of generating something simple like true/false like traditional ML models, it’s <em>generating</em> more complex output, like large blocks of text, images, video, music, etc. GenAI models are typically interacted with via a “prompt”, which is human language that might tell it what to do, or ask a question.</p><p>Under the hood, it still takes in data — in fact, it takes in a whole lot more — basically the entire internet. This is still through the “training” process that traditional ML models use. This is a very difficult (and expensive) process and require specialized equipment (GPUs), so it’s not something just anyone can do on their laptop.</p><p>Even further under the hood, another difference between GenAI and ML is the magic that makes it happen — instead of fancy algorithms like Linear Regression, GenAI uses a Large Language Model (LLM) to make it work. I’m not even going to bother trying to explain how LLMs work, partly because it’s extremely complicated and partly because I don’t really understand it myself. As far as I’m concerned, it’s basically magic.</p><p>A very simple use case for Generative AI that showcases the difference between it and Machine Learning is training a model with a similar dataset of images of bananas. But instead of just telling if a given image contains a banana or not, instead the goal is to have the model be able to <em>create</em> new images of bananas, potentially based off a description.</p><p>While many traditional ML models are custom-built, it’s not practical for every person that wants to use GenAI in their application to make one themselves. So instead they’ll typically use a <em>foundational model</em>, which is a pre-trained model that another company has created and made available (sometimes for free, but usually for a price). Since the training is done at a point in time, these models will be updated periodically and published by the provider.</p><p>Depending on the use case, some applications can use the foundational model as-is, for simpler tasks like summarizing text or acting as a basic chat-bot. But for more complex needs, there are two common approaches to provide a more bespoke experience for users:</p><ol><li><strong>Supplemental Training</strong>: This is when a model is partially “re-trained” with some use case specific data that’s needed to accomplish it’s task. For example, a company training with internal process documentation and data in order to create new training documents for new employees.</li><li><strong>RAG (Retrieval Augmented Generation)</strong>: Essentially, documents are embedded into a prompt to provide extra context to the model to generate it’s output. For example, passing company training documentation to a chat model in order to ask very specific questions about company procedures that wouldn’t have had answers available on the public internet. <em>Note: this isn’t actually how RAG works, but it’s close enough and easier to understand.</em></li></ol><h3>Who are the big industry players in AI</h3><h4>OpenAI</h4><p>Unless you’ve been living under a rock, you’ve probably heard of ChatGPT. It was the first mainstream GenAI tool that was available, providing a chatbot experience. It’s based on their GPT model, which is proprietary to OpenAI. They’re also known for their DALL-E and Sora models, which can be used to make images and videos respectively.</p><h4>Meta</h4><p>Among other things, they’re known for producing the Llama model, which is open sourced (free).</p><h4>Microsoft</h4><p>Known for their Copilot product, which integrates into their various Microsoft tools like Windows, Excel, PowerPoint, etc. They’re also a significant investor in OpenAI.</p><h4>Google</h4><p>Known for Google Gemini, which has a chat experience like ChatGPT, and also integrates with various Google Drive products.</p><h4>Anthropic</h4><p>Known for their “Claude” models, which is a very high-performing model. They stand out because they’re a young AI-firm (only 4 years old as of 2025), and have made a lot of progress in the industry.</p><h4>NVIDIA</h4><p>Last but not least, Nvidia is popular not because of making models, but making the things that make models — GPUs and computer chips. Those are the hardware that goes into the servers that are needed to train AI models. They’ve had explosive growth in the past 5 years (~1300%), and some might say the entire AI industry relies on them (and their quarterly earnings reports).</p><h4>Others</h4><p>There are a lot of other players that I don’t have space to go into depth about, but most large companies are doing some form of investment in AI. Some honorable mentions are Apple, Amazon, IBM, xAI, and Palantir.</p><h3>How can I use AI?</h3><p>So you likely already use it and don’t know it, through behind-the-scenes integrations in existing products. Apart from that, some common tools are ChatGPT and Google Gemini for chatbot experiences — I use them very frequently to ask all kinds of questions from woodworking to programming questions.</p><p>Outside of that, the other ways to use it are pretty technically advanced and need those expensive servers to run, the best bet is looking for products that provide some AI based function (which is a lot of them right now).</p><h3>What are the downsides?</h3><h4>Energy and Environmental Impacts</h4><p>AI requires a lot of computing power, which in turn requires a lot of energy to run and cool them. In many areas, this ends up driving up the cost of energy for the residents, something nobody really wants.</p><p>This also means everyone’s favorite thing — data centers. From what I’ve heard and seen, these are pretty divisive among residents and tends to have a lot more benefit to the big companies rather than the local municipality that hosts them.</p><p>A huge implication here too is where that energy comes from. A friend of mine says “every time you use ChatGPT a tree is cut down”. While that’s not necessarily true, there are a lot of environmental impacts due to the energy production needs, as well as e-waste from the underlying hardware, and impacts from mining the metals and minerals required to go into the chips and semiconductors (silicon and other rare earth metals) of that hardware.</p><h4>Jobs</h4><p>Another huge concern is how AI impacts the job market — in some cases, some jobs may be able to completely replaced. In others, they may be augmented or reduced. Even previously highly-sought jobs like Software Development have a huge risk due to AI-generated code.</p><h4>Human Over-Reliance</h4><p>Many people use AI for all sorts of tasks — whether it’s for homework or actual work, there’s concern that it reduces the critical thinking ability of humans and we’ll be too dependent on it in our daily lives.</p><h4>Accuracy</h4><p>AI models are known to “hallucinate”, where they effectively make up an answer that might be completely wrong. This has risks of users using inaccurate information when making decisions or performing tasks.</p><h4>Authenticity</h4><p>You’ve probably seen some videos and thought “is this AI?”. Well, you’re not alone. We’re getting to a point where we won’t know if something is real or not. Previously irrefutable means of evidence like photo and video can now be completely useless unless we can prove it’s not AI.</p><h4>Government Regulation</h4><p>Some say that that AI industry is moving too fast for it to be effectively regulated. We all know it can take a long time for our lawmakers to make new laws — and rightly so because of the challenge of making the laws fair and effective. But it risks the government constantly playing a catch-up game and not making sure that AI is being used and produced safely.</p><h4>Copyright</h4><p>AI models basically took the entire internets data for its training — which carries some massive copyright risks for data like music, books, articles, etc. There’s been a lot of backlash from artists about their works being used without consent.</p><h4>Safety</h4><p>AI models have a ton of information, which can be used for potentially unsafe or nefarious reasons. Chatbots have to have certain precautions to make sure they’re not doing things like helping users commit crimes, or even drive users to commit suicide.</p><h3>My Opinions</h3><p>Right now, I think AI is a bit over-hyped and feels a little like it’s being shoved down our throats at every turn.</p><p>There’s also some suspicious financial stuff going on like how Nvidia invested in OpenAI, who then used that capital to acquire infrastructure from Oracle, who then used that money to buy chips from Nvidia — the money flowed in a circle and somehow everybody&#39;s stock went up. While apparently legitimate, it seems fishy nonetheless.</p><p>But at the end of the day AI is a revolutionary technology. It makes a lot of things easier, but not without its costs and risks. I don’t know what changes we’ll see to it in the coming years, but I hope that they’re made with the benefit of society in mind and aren’t just going to line the pockets (even more) of the corporate elites.</p><p><em>Thanks for reading! If you liked it, please give it a clap and share with anyone you’d think would like it — it helps me be able to write more articles like this. And comment with anything you liked (or didn’t) about the article, or even with other topics you’d like to read about.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d595fc2bb5a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[(S)AD #1: Presentations & Delivery Issues]]></title>
            <link>https://rich-w-lee.medium.com/s-ad-1-presentations-delivery-issues-5e794600f937?source=rss-79b30156f62c------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e794600f937</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[work-stories]]></category>
            <category><![CDATA[presentations]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Richard Lee]]></dc:creator>
            <pubDate>Mon, 30 Sep 2024 23:48:29 GMT</pubDate>
            <atom:updated>2024-09-30T23:48:29.821Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’re new here and don’t know what this series is about, checkout the <a href="https://rich-w-lee.medium.com/software-architectural-digest-978a22f156ff">series homepage</a>!</p><p>This article’s themes will cover presentations and delivery issues, both of which are things that we all have to deal with whether we like it or not.</p><h3>Presentations</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*olV3_Z9Nq95s1dJV" /><figcaption>Photo by <a href="https://unsplash.com/@productschool?utm_source=medium&amp;utm_medium=referral">Product School</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I remember when I used to despise presentations, I used to get so nervous and spent so much time trying to get everything perfect. I still vividly remember one such presentation from a few years ago, which was probably my first “big” presentation. The audience was my manager, a few Directors, and a few Distinguished Engineers, and I was trying to convince them that the internal code framework we used to build REST APIs sucked, and we should use an open source framework instead. Oh, and the creator of the sucky framework was in the meeting.</p><p>Prior to the presentation, I spent weeks doing research. I sent out surveys to my fellow engineers who used it to collect various issues people had with it, and to bolster the fact that it wasn’t just a me issue. I looked into open source frameworks and compared them and worked with my team to pick one, and then did a POC to make sure everything actually worked with the additional corporate requirements we had.</p><p>Then I put together a presentation to try to nicely convey the problems with the internal tool, how we fixed it with the open source tool, and the benefits it would give if other teams migrated. I practiced the presentation with my manager, had my teammates review it, and did many practice runs until I was confident enough. And when giving the actual presentation, I of course stumbled over words, said “uhm” probably a million times, and definitely did not sweat through my undershirt…</p><p>But overall, it went surprisingly well. In the meeting people asked questions and several said could see the value (save for the creator of the internal framework who saw nothing wrong with it), and expressed gratitude for the innovation. But after the meeting, while nobody opposed it, nobody strongly supported it either. It became a battle of priorities and this unfortunately fell on the bottom. So it basically died in committee.</p><p>Now that was a bit of a rabbit hole, but I think the point I was trying to make was that I prepped a lot for it, was incredibly nervous, and then didn’t get the output I wanted. Which is honestly a great experience to have. Not every presentation will go your way; whether it’s because of the content, or the delivery, you will mess up at some point.</p><p>But that’s okay! Because it’s a learning experience — figure out what you did wrong or what could have been better, and try to keep that in mind for next time.</p><p>That presentation was about 5 years ago, and I’ve given a ton of presentations since then. This week, I had to give a presentation to some partners in another department about a technical design I was working on to solve a business problem they were having. Did it go perfect? Nope. I still said “uhm” a lot, and probably gave a little too much detail for certain things. But I did communicate the details pretty effectively, really focusing on the what, why and how — what’s the problem, why it matters, and here’s how the solution works. Our partners asked thoughtful questions, and even pointed out some issues related to edge cases that we didn’t know about. Compared to that first presentation, I felt more confident both going in to the presentation and coming out.</p><p>So my final parting thought is to not be scared of presentations because it’s such a necessary part of software architecture, but rather openly embrace presentation opportunities to get the practice, and eventually you’ll get better (probably).</p><h3>Delivery Issues</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xHlX8QxkZlxM_zEy" /><figcaption>Photo by <a href="https://unsplash.com/@gunaivi?utm_source=medium&amp;utm_medium=referral">ahmad gunnaivi</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>So contrary to the previous section, there won’t necessarily be a point to this section other than me ranting about some total “ugh really??” moments that happened this week. For the sake of my job, I’m generalizing and changing details so that HR won’t get mad at me.</p><p>So my team is working a really big cool feature that our customers will absolutely love, and naturally, this means that there are a lot of moving parts in the architecture and involves changes in multiple services across multiple teams across multiple departments…what can possible go wrong?</p><p>To give some context, these are the different components that our fake generalized system contains:</p><ul><li><strong>BottleRegistry</strong>: Contains metadata about bottles.</li><li><strong>BottleService</strong>: Creates bottles, uses the BottleRegistry to know what type of bottle is being created.</li><li><strong>FountainService</strong>: Creates requests for the creation of bottles and fills them with liquids, contains mapping of what liquid type goes in what bottle type.</li><li><strong>DispenserService</strong>: Listens for asyncronous events, and will interact with various downstreams based on the event — the DrinkRequest event will interact with FountainService, but the SnackRequest event may interact with some other SnackService.</li><li><strong>SodaService</strong>: User interface that tells DispenserService when a drink is requested</li></ul><p>This example may seem redundant, but that’s because I had to translate a real life example to a fake example, and it’s harder than it looks.</p><p>So I’ll fast-forward through the whole development phase and get to this week — we’re deploying it all. We have a weekly working session and a few weeks ago we went through what the exact delivery plan will be, and came up with:</p><ol><li>On Tuesday, <em>Team Gatorade</em> would then create new configurations to the <strong>BottleRegistry.</strong></li><li>Next, new configuration had to be added to <strong>FountainService</strong>, which needs to know what liquid type goes in what bottle type. This was done by <em>Team Soda</em>, because they were adding configuration for soda liquid types.</li><li>Next, <em>Team H2O </em>would then deploy new code for the <strong>DispenserService</strong>, which would “send traffic” to the <strong>FountainService</strong> to start creating bottles.</li></ol><p>So we had that plan, it wasn’t complicated, the order made sense, we’d done a full suite of QA tests and we were confident we didn’t miss anything.</p><p>So now let’s talk about what went wrong:</p><ul><li>When Team Gatorade was trying to create the new configs in <strong>BottleRegistry</strong>, but there was some access issue and they weren’t actually able to call the service to create them! So they engaged out API Gateway team to resolve the issue, but we weren’t sure if they’d be able to release this on Tuesday or if it would be delayed.</li><li>In Team H2O, we had other changes in <strong>DispenserService </strong>that needed to go out, but had also merged the code that would start sending traffic to the <strong>FountainService </strong>for DrinkEvents. We didn’t really want to delay our release for that one change, but also didn’t want to have to revert the change. We pulled up and determined that if we deployed our code and the liquidType to bottleType mapping config (step 2 from above) wasn’t in place, then the requests we sent to <strong>FountainService</strong> would just be ignored. And then once we added the mapping config, it would just start to work.</li><li>So Team H2O deployed <strong>DispenserService</strong>…and immediately started getting alerts for errors. We found out that we were calling the wrong <em>version</em> of <strong>FountainService</strong> in prod. QA was pointed to V2, but Prod only had V1 — the reason for the discrepancy was that V1 was created in QA during the development phase and had issues that required version increases, but the prod version wasn’t created until all those issues were ironed out, making it so that prod only had V1. Luckily this ended up having no impact to us, because the requests that were now failing to send would have been ignored anyways. The fix was quick, but it was the end of the day on Tuesday so we decided to wait to deploy it until Wednesday morning. Luckily, we were able to get this resolved while Team Gatorade was still working on their access issue.</li><li>Wednesday morning after Team H2O deployed the version fix in <strong>DispenserService</strong>, we then started seeing errors in <strong>FountainService</strong>! For this one, <strong>FountainService</strong> was using the QA URL of <strong>BottleService </strong>instead of the Prod URL, and the firewall rules prevented the network traffic from going through. Fortunately, this was the same impact as the issue in <strong>DispenserService</strong>, where any traffic to create bottles for the specific liquids would just throw an error and be ignored. So again, we quickly got that fix out. At this point, Team Gatorade had resolved their access issue and were in the process of creating the bottle configurations now!</li><li>So it’s about Wednesday at noon, and both of Team H2O’s fixes are out, and Team Gatorade was able to create the bottle configurations. They give Team Soda the bottle type ids, and Team Soda adds the configuration to <strong>FountainService</strong>, telling it what liquid types map to what bottle types. But oh no, now we’re seeing errors in <strong>FountainService</strong> again! This time we find out that it’s because FountainService was never told the type of liquid to use (the field was <em>null</em>), and so it couldn’t find the bottle type from it’s mapping configuration, so it ignored the request.</li><li>This time we realize that <strong>SodaService</strong> wasn’t actually sending the type of liquid correctly! Luckily for us, Team Soda owns that, and they were able to resolve that very quickly. Following that, we were able to see requests to <strong>FountainService</strong> come through with the type of liquid, and that it’s able to resolve to the correct bottle type and call <strong>BottleService</strong>. But guess what — more errors! We’re seeing request timeouts from <strong>BottleService</strong>.</li><li>So we once engage Team Gatorade (the owner of <strong>BottleService</strong>) to see what’s up. They end up realizing it’s a connection issue to their database. I was a little annoyed at this point because BottleService had been deployed to prod for weeks, but was apparently not validated to actually work. I’m told it was an issue with the fact that it couldn’t be tested without the bottle configurations, which were created earlier on Wednesday, but nonetheless it sucks when it’s the clients that’s pointing out the error rather than the service owner. As of writing this, <strong>BottleService</strong> is still not fully working in Prod.</li></ul><p>So I’m hopeful that tomorrow, the issues with <strong>BottleService </strong>will be resolved, and we’ll be able to successfully create new bottles of soda!</p><p>So who’s at fault here? My take is everyone. We all had misses, and most of them were small and easy to overlook. If anything, some teams were just faster at addressing them. Feel free to leave a comment with the team you feel is most at fault, and I’ll make sure to let them know that random internet people think so!</p><p>I hope y’all enjoyed those two topics! As promised in the <a href="https://rich-w-lee.medium.com/software-architectural-digest-978a22f156ff">series homepage</a>, as a reward for making it to the end, here’s a picture of my dog Stella.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PD9Sw3OpkylXKnx1zxDs7w.jpeg" /><figcaption>Stella sleeping on a fuzzy blanket.</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e794600f937" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[(Software) Architectural Digest]]></title>
            <link>https://rich-w-lee.medium.com/software-architectural-digest-978a22f156ff?source=rss-79b30156f62c------2</link>
            <guid isPermaLink="false">https://medium.com/p/978a22f156ff</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[work-stories]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[work]]></category>
            <dc:creator><![CDATA[Richard Lee]]></dc:creator>
            <pubDate>Mon, 30 Sep 2024 23:45:45 GMT</pubDate>
            <atom:updated>2024-10-01T13:18:01.108Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*v4Po1n2y3XCZ5LPU" /><figcaption>Photo by <a href="https://unsplash.com/@d_mccullough?utm_source=medium&amp;utm_medium=referral">Daniel McCullough</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I may be weird, but I love talking about work. Partly because it helps me process things and learn, and partly because I love to yap™, and unfortunately for me and my friends, my work stories are typically my most interesting stories.</p><p>I envision writing articles on some sort of cadence, maybe monthly, maybe not. In those articles I’ll talk about some recent things I’ve worked on, and some will be reflections from the past. This page will be a makeshift homepage where I’ll link all the other articles I write.</p><h3>Who even am I?</h3><p>Well my name is Richard, but I go by Rich when there are multiple Richards in the room. I’m a Senior Lead Software Engineer at a financial services company that you’ve probably heard of (we’re the one with the best commercials).</p><p>I joined my company right out of college, and have been there for over 7 years as of 2024. I started out as a typical junior engineer (who didn’t know shit about anything) on a team that was primarily frontend, and learned a lot on the job. That primarily involved making mistakes and having to fix them, over and over. Over time I kept learning, and growing my development and leadership skills, and after 4 years I became <a href="https://leaddev.com/personal-development/what-tech-lead-first-among-equals-developer-team">tech lead</a> of my team.</p><p>About a year and half after that, my scope increased and I started working with 2 teams, and doing a transition to full-stack. A few months after that, I started helping a 3rd team and was now working with multiple tech stacks. A few months later, I was officially horizontal within my department and belonged to no one team. Not long after, the 3 teams became 4 teams, and I became on of the “senior <a href="https://honehq.com/glossary/individual-contributor/">ICs</a>” in our department. And that’s where I’m at now 🤷.</p><h3>Why should you care about what I have to say?</h3><p>Well I <em>hope</em> people reading this will get some value out of my stories by reading about my learnings without having to make the same mistakes. I hope that all of my stories are entertaining in some way, whether it’s through my love of incorporating humor into everything I write, or the shared annoyance of hearing about something dumb a colleague of mine did.</p><p>And if that doesn’t convince you, as a reward for making it to the end of each article I will include a picture of my dog Stella, who’s a 5 pound Yorkie/Chihuahua mix. She’s smol, cute, and sassy (and sometimes a little crusty looking when we don’t cut her hair for a while).</p><h3>Catalogue</h3><ul><li><a href="https://rich-w-lee.medium.com/s-ad-1-presentations-delivery-issues-5e794600f937">(S)AD #1: Presentations &amp; Delivery Issues</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=978a22f156ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Georgia Tech OMSCS Retrospective]]></title>
            <link>https://rich-w-lee.medium.com/georgia-tech-omscs-retrospective-ae5dfa5bc10d?source=rss-79b30156f62c------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae5dfa5bc10d</guid>
            <category><![CDATA[omscs]]></category>
            <category><![CDATA[graduate-school]]></category>
            <category><![CDATA[georgia-tech]]></category>
            <category><![CDATA[computer-science]]></category>
            <dc:creator><![CDATA[Richard Lee]]></dc:creator>
            <pubDate>Sat, 07 Jan 2023 17:38:08 GMT</pubDate>
            <atom:updated>2023-01-07T17:54:31.111Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uUKbXoPoUEmXgCL9WG55Lg.jpeg" /></figure><p><strong><em>Disclaimer</em></strong><em>: The point of this article is to talk about my experience with OMSCS. Maybe you’ll find it interesting, maybe it will help you decide if you want to do that program, or maybe it will just give you something to do for 10 minutes.</em></p><p>I started OMSCS in Fall of 2020, and completed it in the Fall of 2022 after 2.5 years. Overall, it was a really rewarding program and I highly recommend it to anyone considering it. The only downside was the time commitment, especially if you’re an over achiever like me.</p><h3>Background</h3><p>For a little background on myself, I graduated with my Bachelor’s in Computer Science from a public university in Virginia, and immediately started working at a large financial services company as a software engineer. After graduation, I didn’t want to pursue my graduate degree because I was tired of classes, homework and exams and wanted to start making money and be a real adult. To be honest, at that time I didn’t think I would ever pursue my graduate degree. But after about 2 and half years I reconsidered and applied.</p><p>There were a few reasons that ultimately swayed me to apply:</p><ol><li><strong>My company paid for it.</strong><br>The OMSCS program was cheap enough that it was covered in the yearly allotment of education funding that employees were given by my company. The stipulations were that I had to get a B or higher, and it was a reimbursement model. Even if my company didn’t pay for it, the whole program is cheap enough that I would have been fine paying for it myself. For me the whole program was under $10,000. Specifically, it was $7,313 for 10 classes across 7 semesters.</li><li><strong>Given the point of my life I was in, there would only going to be a worse time to do it if I put it off.</strong><br>I started when I was 25 and was already married, where kids were in the not-so-distant future. I didn’t want to be doing grad school while also raising children, or have the new time commitment of a family completely exclude me from doing the program. Additionally, I knew that as my career progressed I would have additional responsibilities and that would inevitably take up additional time, which would have the same impacts as a family.</li><li><strong>I felt it would help my career.</strong><br>This applies both in a resume-boosting aspect and in the actual knowledge I would get from the program.</li><li><strong>I would be lying if I didn’t say money wasn’t a factor.</strong><br>It’s a well known fact that having a Master’s degree typically leads to higher earnings, and the prospect of a higher salary is very enticing.</li><li><strong>This one doesn’t really count, but sibling rivalry.</strong><br>My older brother recently got his Master’s degree, and I didn’t want to have a lower degree than him. He’s not the kind of person to hold it over my head, but I’ve always strived to be at least as good as him.</li></ol><h3>Picking Classes</h3><p>One of the aspects of OMSCS is the “specialization”. It’s effectively like concentrations in undergrad, where you can pick an area of focus in a broad major. At the time, OMSCS had 4 specializations available:</p><ol><li>Computational Perception &amp; Robotics</li><li>Computing Systems</li><li>Interactive Intelligence</li><li>Machine Learning</li></ol><p><strong><em>Note</em></strong><em>: You don’t have to officially choose the specialization until near the end of the program, and a lot of classes will apply to several specializations or can be counted as a general elective. So it’s okay to not know which specialization you want to do and you’re able to take classes in different areas to see what interest you before choosing.</em></p><p>I chose to do the Computing Systems specialization, and I was pretty set on that from the beginning. The reasoning for this was I felt it best applied to my career in software engineering, where I’ve worked on building web applications. While ML is technically a subset of software engineering, it’s kind of its own niche and has never really interested me. Ultimately, I felt I would get the most practical knowledge out of the Computing Systems specialization.</p><p>After choosing a specialization, I was required to do 6 classes in that specialization, and 4 classes as free electives which could be any class in the OMSCS program (all of which are listed on the courses page).</p><p>I ended up choosing the following specialization classes:</p><ul><li>Software Analysis</li><li>Computer Networks</li><li>Software Architecture and Design</li><li>Introduction to Operating Systems</li><li>Software Development Process</li><li>Introduction to Graduate Algorithms</li></ul><p>And the following electives:</p><ul><li>Video Game Design</li><li>Human Computer Interaction</li><li>Game AI</li><li>Digital Marketing</li></ul><h3>Time Management</h3><p>It was heavily recommended by the OMSCS advisors to only take one class the first semester, especially if you’ve taken time between finishing undergrad. This is what I did and I think it was a great decision, the shift in time management was something that I had to get used to and just having one class to start with let me play around with different configurations for doing the coursework alongside other things in my life. A side effect of taking one class the first semester is that, because of course limits per semester, you’ll get another one class semester that you can use at any time.</p><p>On that note, I found what worked best for me was allocating specific days where I would do schoolwork, and setting aside multiple hours on those days (after my day job of course). For example, I would do school work on Mondays and Wednesdays from 6pm-11pm with a break for dinner and then leverage the weekend as needed. I would focus the weekdays on completing lectures for my classes, and then would do any assignments for that week.</p><p>An alternative that I tried was doing 1–2 hours a day, each day of the week. I ended up finding that less effective and I would often be running behind. Having the large blocks in the week really let me deep dive into topics, and the day in between them was critical to not get burned out.</p><p>I will note, that the large time blocks was a suggestion from my spouse. She found that doing to 1–2 hours a day resulted in not a lot of quality time together, and she’d rather have the larger blocks so she could at least get a few nights a week of decent quality time. I would suggest having a conversation with any partners when making your schedule, because they’re also affected by the time commitment.</p><p><strong><em>Note</em></strong><em>: In almost every case, a graduate degree is not worth destroying a relationship over. If you find the time commitment is causing strain with a partner, friend or family, I suggest dialing back for a semester or two. This was the case for me around the 2 year mark. I found that I was very stressed from work, personal life, and maintaining my relationship with my wife and just needed a breather. So I ended up cashing in that one-class semester I mentioned earlier, and made sure to take a lighter workload class. This afforded me some breathing room and helped prevent burn out, and let me start the next semester in the headspace that I needed.</em></p><p><em>Rather than dropping the number of classes, you could alternatively take an entire semester off. I personally don’t do well with stopping completely and starting up again, so I knew just dropping to one class would ensure I was still on track to finish.</em></p><h3>Course Reviews and Experiences</h3><p>In this section I’ll talk about the general experience I had in the classes I took.</p><p><strong><em>Note</em></strong><em>: The earlier classes won’t be as detailed since I’m writing this article over 2 years after taking them.</em></p><p><strong>CS6340: Software Analysis (Fall 20)</strong></p><p>This was an interesting class where we were able to study both the why and how of analyzing and testing software. Having several years of professional programming under my belt, I was already aware of the benefits of testing code and static analysis (<em>spoiler: less bugs</em>). This course dove deep on the <em>how</em>, which was pretty interesting. For most of the projects, we used C++ and a framework called LLVM to assess code coverage when running tests, and perform both static and dynamic analysis on code. Another project that stuck out to me was on the value of type systems. We were given a snippet of JavaScript code that was used by millions users via the library it was implemented in. The goal of the project was essentially to “convert it to TypeScript, add types and find the hidden bug”. Looking at the JS code, I though of this South Park meme:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*9WTDgIYpSbKPQAN3vfT-bg.jpeg" /><figcaption>If you try to find the bug using only JavaScript, you’re gonna have a bad time.</figcaption></figure><p>Needless to say, after converting to TS and adding types, the bug became glaringly obvious in a matter of minutes. To this day, I use this example as a reason to use TypeScript in production-grade systems.</p><p>Overall I had a very positive experience with the class and while I can’t say I’ll be using LLVM in my day job anytime soon (nor would I want to), it’s cool to know how tools like Sonar work under the hood.</p><p><strong>CS6250: Computer Networks (Spring 21)</strong></p><p>This was a very interesting class that expands in something we all use almost every day: <em>the internet</em>.</p><p>Before this class, I knew technology powered the internet and had heard of differing terms like routers, switches, protocols, and packets, but I didn’t have a good understanding of how it all fit together.</p><p>And that’s basically what I walked out of this class with: a decent understanding of how the internet (which is just one big computer network) works, and decent depth into the different parts that power it.</p><p>While I can’t recall the specifics of the projects, I do remember they all used python, only took 1–2 hours each, and we’re all fairly interesting.</p><p><strong>CS6310: Software Architecture and Design (Spring 21)</strong></p><p>This course really focused on the low levels of writing software, and why design and architecture is so important (<em>spoiler: maintainability</em>). We learned about different types of design patterns, and had several projects along the way as well. I felt the class was absolutely worth it, and had a moderately light workload.</p><p><strong>CS6200: Introduction to Operating Systems (Summer 21)</strong></p><p>Oof, this was a tough one. I really like the material for this class, way more than I thought I would, especially after I had a very lackluster undergrad OS class. The material was easy to understand, and the lectures were very enjoyable. But the projects…they were tough. They were valuable though, and really taught you how to implement the concepts you learned in the lectures.</p><p>For the projects, we were tasked with implementing some OS feature that you’ve probably used at some point. This included things like making an FTP server from scratch, or sending messages across running processes. They were all cool, but took me a ton of time. Since it was a summer class, the course was shorter than a normal fall/spring class, so we only had a week to do each project. This resulted in me spending 30+ hours a week on this class.</p><p>What made the projects hard for me was they were all written in C, and used a lot of C APIs to perform functions. I hadn’t worked much with C, nor had any experience with the different APIs offered by the language. Pointers were a bitch, but you get the hang of them. But, at the end of the project when you finally get it working — huge sense of accomplishment.</p><p>Despite the time commitment, I thoroughly enjoyed this class. While taking it in Summer was definitely hard, it was nice because it was the only class I had to worry about. So if you plan to take this in the fall or spring semesters, I suggest pairing it was a light workload class.</p><p><strong>CS6457: Video Game Design (Fall 21)</strong></p><p>This was probably the most disappointing class I took in the program. Don’t get me wrong, it was interesting as a whole, but there were certain parts of VGD that just didn’t interest me, such as the character animation.</p><p>The lectures were long, and the professor talks slow, so make sure to put it on at least 1.5X speed. Even with that, there’s still like 6–8 hours of lectures a week, which seemed a little overbearing. However, I will give credit where it’s due — this was an in person class that was transitioned to also be online in 2020 and included in OMSCS (I assume as part of the shift to online during COVID), so it’s not as high fidelity as some other courses in OMSCS. Due to the popularity of the course, I would expect that to change in the future and it get some additional polish.</p><p>The first half of the course has you do weekly projects that tie in with the lectures, such as character animation, movement, and behavior (“AI”). They were all designed as a tutorial-like project with bits you need to figure out for yourself. They were all pretty easy and able to be completed in a few hours.</p><p>The second half of the class has you work in a group, creating a new game from scratch. We’re explicitly told to keep it simple since there’s only a few weeks to do it. Group assignment is ultimately up to students, and there’s a forum where you can post in, with different threads for the different themes of games you’re interested in. The professor does reserve the right to adjust groups to make sure everyone has a group of 3 or more.</p><p>A big warning for picking your group: time zones suck. I was initially paired with 2 others who were in PST, while I was in EST. 3 hours isn’t a big deal and I felt confident we could make it work. But we had 2 others added to our group by the professor, both who where in China Standard Time, which was 13 hours ahead of me and 16 hours from the 2 in PST. This made it impossible for us all to meet on a call, and coordination became a huge problem. We also had a mix of skills, both in programming and general collaboration as well. We made it work, but this was definitely a source of stress that semester.</p><p>For the assignments and team project we use Unity, a popular game engine. It was fun to use, but definitely takes some processing power to run effectively, so make sure your computer is up to the task. I used a mid-tier 2015 MacBook Pro during this class, and it <em>ran</em>, but would stutter at times. Also, it’s a lot easier with multiple monitors so you can have the code editor up on one screen and the Unity scene editor up in another. Switching on one screen is fine, but gets annoying quickly.</p><p>Overall the course was okay — worth taking and not particularly difficult, but at the end of the class, I ended up realizing that I like playing video games way more than I like making them.</p><p><strong>CS6300: Software Development Process (Fall 21)</strong></p><p>This class was basically the same as the one most CS students take in undergrad. It was really easy and there were no tests, just graded assignments.</p><p>The worst part of the class for me was the group project. The instructors separate groups based on skill, trying to get every group with around the same average skill. This means that you’ll typically end up having a mix of people who have programmed professionally, and those who haven’t. The later is where it was difficult, especially in an online classroom environment where everyone has different schedules and time zones. We found it difficult to meet frequently and some people underperformed. Some issues that we had were that teammates would either not finish their tasks on time, didn’t implement the functionality correctly, wouldn’t ask for help, or would bring up issues too late (such as the night before we have to turn in our code for a checkpoint). This could have definitely been remediated with better coordination, but it’s hard when most people also have a full time job that comes first.</p><p><strong><em>Thought</em></strong><em>: One of the nice aspects of working for a company is that you know every employee had to be interviewed and meet the required expectations set by that company. So you can assume teammates have a similar skill level as you, which makes it easier to rely on them. You also know that if they don’t meet the bar, they’re typically let go.</em></p><p><em>When it comes to group projects in University, that assumption doesn’t carry over. It’s not that the bar for entry is lower, it’s just looking at different criteria. Getting admitted into the school is mainly based on academic history, and not their practical skill in a technical interview for example. Additionally, poor performance on a group project can be easily made up by good grades in coursework. So doing poorly on group projects doesn’t have as high of an impact as it would in a professional environment.</em></p><p>Ultimately this was an easy class, and good to reinforce the concepts. The biggest tip it’s to put effort into the group project.</p><p><strong>CS6750: Human-Computer Interaction (Spring 22)</strong></p><p>This class focuses a lot on the psychology of designing interfaces for humans to use computers, and then an overview the technology we can use to achieve that. It was really interesting and I thoroughly enjoyed it, especially since my day job involves creating web applications.</p><p>Throughout the class we have a project that we iterate on. We start by choosing some problem that we’d want to solve by technology. We then perform research, create a prototype, test those prototypes, adjust the prototype from feedback, test again, and then finally implement a version. This format was really cool, although the first stages required a lot more writing that I’m used to for a CS class.</p><p>I’d definitely recommend this class to everyone. The workload was very manageable and I left with a lot of knowledge.</p><p><strong><em>P.S.</em></strong><em> One article we read as part of the class was about how unintuitive doors are. You may think, “but doors are so simple”. But think hard on the issues you’ve had: do you push or pull? Is it a sliding door, is it automatic, maybe you don’t event know where the door is if it’s made of glass and the wall is glass. This article just really goes to show how important intuitive design is, and also how hard it can be.</em></p><p><strong>CS7632: Game AI (Summer 22)</strong></p><p>I decided to give video game design one more chance. This class is an unofficial follow up on the Video Game Design class I had taken earlier, and focuses more on the “AI” in games. Specifically we learned about movement, behavior, and procedural content generation.</p><p>This one was way better for me than VGD. It involved more programming, which I liked a lot. The projects were really fun and memorable. One of them was implementing character movement using different search algorithms — such as BFS, DFS, A-star, Dijkstra’s and more.</p><p>There was no group project in this one, just solo projects that were all very manageable.</p><p>It was taught by the same professor as VGD, so the lectures had the same issue of being slow and long. Taking it over summer didn’t help either, making it feel like hours and hours of lectures each week.</p><p>There was an exam for this class, but it was open notes. It wasn’t hard, but there were a few tough questions that you would need to have watched the lectures for.</p><p><strong>CS6515: Introduction to Graduate Algorithms (Fall 22)</strong></p><p>No surprise, this was another tough one. Objectively the hardest class I took in the whole program.</p><p>I have another article outlining this class and tips to get an A in it, so I won’t go into too much detail here. I will say that despite this class being hard (maybe even NP-Hard), it was incredibly interesting and ended up being one of my favorite classes.</p><p>This classes ended up taking a lot of time due to the concepts. They weren’t super hard to understand conceptually, but in order to solve the homework and exam problems you need to practice.</p><p>I’m pretty sure this is a class that’s required for all specializations, so it’s hard to get into. It’s also around a 1000 person class, and they make sure that graduating students get in it. I ended up only being able to get into the class during my final semester, which made it hard considering the senioritis I was inevitably feeling.</p><p>I originally planned on having this be my solo-class semester, but ended up having to use that earlier in the year in order to catch my breath. I’d absolutely recommend taking this class solo. I ended up taking a very easy class with it, and I was able to front load a lot of its work so it seemed like I was only taking Algorithms for most of the semester.</p><p>Really cool class, but also really tough. But because it’s tough, you feel really accomplished when you cross that finish line at the end.</p><p><strong><em>Link</em></strong><em>: </em><a href="https://medium.com/@rich-w-lee/tips-to-get-an-a-in-omscs-graduate-algorithms-6bf0af13b4e1"><em>Tips to get an A in OMSCS Graduate Algorithms</em></a></p><p><strong>MGT6311: Digital Marketing (Fall 22)</strong></p><p>This class was technically in the school of business, under the MGT course section. It’s traditionally offered through the OMS-Analytics program, but is also offered through OMSCS as an elective.</p><p>It was hands down the easiest class I took. I was able to complete the entire first half of the class and the midterm in a week. I had to wait for the midterm to close before the final opened, and then the second half of the class only took a week as well.</p><p>Despite being easy, the course was super interesting. I really enjoyed the lectures, and the assignments were valuable. We would have weekly “mini case studies”, and have to answer a few questions in a paragraph or two. We also had 5 “full case studies”, were we’d read a case from Harvard Business Review and similarly answer questions in 2–3 pages.</p><p>It was really different than other classes, but one that I think I learned a lot in. What’s nice is that I have friends that work in the Digital Marketing department of the company I work at, and when we talk about work I actually have a thorough understanding of what they do now!</p><h3>Conclusion</h3><p>Now that I’m done with all of my classes, I can proudly say I have a Master’s in Computer Science from one of the top schools in the country.</p><p>I really enjoyed the program and think it gave me immense value. I would highly recommend it to anyone who is on the fence, just was long as you are able to provide the time commitment.</p><p>I’d also recommend that you have a technical background of some kind. A CS undergrad isn’t required, nor is professional programming experience, but I think it would be very difficult without at least one of those two due to the nature and requirements of the classes.</p><p><strong><em>P.S.</em></strong><em> Special Thanks to Sean Jepson and Craig Larson, both of whom wrote recommendation letters for the application to this program. I wouldn’t be writing this if not for you two.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae5dfa5bc10d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tips to get an A in OMSCS Graduate Algorithms]]></title>
            <link>https://rich-w-lee.medium.com/tips-to-get-an-a-in-omscs-graduate-algorithms-6bf0af13b4e1?source=rss-79b30156f62c------2</link>
            <guid isPermaLink="false">https://medium.com/p/6bf0af13b4e1</guid>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[graduate-school]]></category>
            <category><![CDATA[omscs]]></category>
            <category><![CDATA[computer-science]]></category>
            <dc:creator><![CDATA[Richard Lee]]></dc:creator>
            <pubDate>Sat, 17 Dec 2022 17:17:09 GMT</pubDate>
            <atom:updated>2022-12-17T17:17:09.600Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*sao6K3zslMVdUzn_rfrD5w.png" /></figure><p>I was pretty nervous going into Graduate Algorithms (CS6515) in OMSCS, but after many hours of studying and hard work, I ended up not only with an A in the class, but an A on all of the exams. I’ve thought through some things that worked well for me wanted to share them in case it helps any future students.</p><p>Before I dive into the tips, I wanted to touch on the general structure of the class. The class is extremely exam focused — there are 3 exams and they count for ~75% of the final grade. There’s also an optional final exam, which can replace your lowest exam grade (only if it is better). There are weekly homework assignments, weekly 1-question “polls” that are essentially participation quizzes, and a few coding projects throughout the semester. There are also 2 weekly office hour sessions, one held by the professor and the other by the TAs.</p><h3><strong>Tips</strong></h3><p><strong>Disclaimer</strong>: These are tips that I found helpful for me and I can’t guarantee that they’ll work for you.</p><ol><li><strong>Use Joves’ notes</strong><br> Joves (pronounced<em> “Joe-viz”</em>) is one of the TAs and an OMSCS alum. He shares his notes on the topics as the semester progresses and they’re great at summarizing lecture content and also include practice problems and solutions. I don’t recommend only using his notes, but they’re good for reinforcing concepts and looking things up when studying.</li><li><strong>Go to Office Hours or watch the recordings</strong><br> I’m specifically talking about the office hours with the TAs. They go over important lecture content and answer questions that students have. They also go over homework answers, polls, exam study materials, and exam answers. I started going to these after the first exam and felt a lot more prepared for exams 2 and 3.<br> Note: I didn’t go to office hours with the instructor, so I can’t say how valuable those were. If you have the time, I’d recommend going to those too.</li><li><strong>Start the homework early and leverage the class forum for ideas<br> </strong>When still learning the materials the homework questions can seem difficult, so I recommend starting them earlier in the week to start thinking of solutions. The class forum can also be used to share high level approaches (not the exact solutions), which are helpful for finding inspiration and getting unstuck.</li><li><strong>Do the practice problems</strong><br> The course content is difficult and can take time for things to start clicking. The practice problems are a tremendous help to prepare you for the homework and exams. Some of the exam questions I had were very similar to the practice problems, so if you know how to solve that practice problem it’s easy to find a solution to the exam problem. If you’re not sure which practice problems to do, the homework assignments have recommended practice problems, and the wikidot for the page has good recommendations as well.</li><li><strong>Review comments on homework and exams</strong><br> The homework questions and the exams need the answers formatted in a specific way, and to include the right level of detail for explanations. So I suggest looking at feedback on homework to figure out if there are parts that you’re consistently losing points on and correcting those so you don’t lose points on the exam. It’s also good to check the feedback on the exams in case you need to take the final.</li><li><strong>Study on exam week<br> </strong>One thing I did to prepare for an exam was watch any assigned lectures the previous week, this let me use the entire week for studying. This helped a ton and made me feel very prepared going into exams.</li><li><strong>Be prepared to take the final<br> </strong>Getting an A on the 3 normal exams is difficult, and it’s perfectly normal to bomb one. In this scenario, the final is your friend since it will replace your lowest exam grade, so be prepared to take it.</li></ol><h3><strong>Bonus: Exam Week Study Routine</strong></h3><p>I did this routine for Exams 2 and 3 and got very close to perfect scores on them.</p><ul><li><strong>Monday</strong>: Make an outline of the materials covered in the exam, and the practice problems correlated to the materials</li><li><strong>Monday — Wednesday</strong>: Summarize the materials using existing lecture notes, Joves’ notes, and watching lectures again to clarify any things you’re not sure about</li><li><strong>Wednesday</strong>: Go to the TA office hours for exam prep</li><li>Note: The date may change for your semester</li><li><strong>Thursday — Friday</strong>: Do all the practice problems, and re-do the homework questions</li><li><strong>Saturday Morning</strong>: Make a one page study guide that puts all of the super important notes on one page. This will reinforce all of the material and keep it fresh.</li><li><strong>Saturday Afternoon/Evening</strong>: Take the exam.</li></ul><p>Planning to take the exam on Saturday allows you an extra day of studying in case something comes up, or you’re not feeling ready.</p><h3>References:</h3><ul><li>Textbook: <a href="http://algorithmics.lsi.upc.edu/docs/Dasgupta-Papadimitriou-Vazirani.pdf">http://algorithmics.lsi.upc.edu/docs/Dasgupta-Papadimitriou-Vazirani.pdf</a></li><li>WikiDot: <a href="http://omscs.wikidot.com/courses:cs6515">http://omscs.wikidot.com/courses:cs6515</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6bf0af13b4e1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Interesting Tech Articles]]></title>
            <link>https://rich-w-lee.medium.com/interesting-tech-articles-816bd3db1c57?source=rss-79b30156f62c------2</link>
            <guid isPermaLink="false">https://medium.com/p/816bd3db1c57</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Richard Lee]]></dc:creator>
            <pubDate>Thu, 02 Dec 2021 18:44:41 GMT</pubDate>
            <atom:updated>2022-01-07T21:32:24.459Z</atom:updated>
            <content:encoded><![CDATA[<h3>Interesting Tech Articles You Should Definitely Read</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6pa1nCLtMC7SJG0vjVt7jg.jpeg" /></figure><p>In addition to producing content, I’m also an avid consumer of content. I get a daily feed of tech related articles from Medium along with stumbling across them while researching various topics. So in the spirit of sharing, here is a list of some articles that I’ve found helpful and interesting. I will be updating this list as I find new articles that interest me, so check back in the future to see if there’s anything new!</p><h3>Latest Additions</h3><ul><li><a href="https://betterprogramming.pub/how-to-transform-javascript-functions-into-memory-efficient-generators-e402af77cdc4">How To Transform JavaScript Functions Into Memory-Efficient Generators</a></li><li><a href="https://medium.com/geekculture/blockchain-explained-in-50-lines-of-code-1dbf4eda0201">Blockchain Explained in 50 Lines of Code</a></li><li><a href="https://javascript.plainenglish.io/i-asked-senior-programmers-about-the-kind-of-programmers-that-annoy-them-at-work-c24dd1272b73">I Asked Senior Programmers About the Kind of Programmers that Annoy Them at Work</a></li></ul><h3>Code Principles</h3><ul><li><a href="https://blog.bitsrc.io/code-principles-every-programmer-should-follow-5e25e2cd10c7">Code Principles Every Programmer Should Follow</a></li><li><a href="https://javascript.plainenglish.io/9-simple-programming-tips-from-a-senior-programmer-to-a-junior-a7f96078822b">9 Useful Programming Tips from a Senior Programmer</a></li></ul><h3>Career</h3><ul><li><a href="https://victor.medium.com/demystifying-how-promotions-work-in-software-engineering-7c696ad75ef0">Demystifying how promotions work in software engineering</a></li><li><a href="https://levelup.gitconnected.com/as-a-software-engineer-here-is-why-you-should-stay-in-a-company-for-a-long-time-c643e0f31fe8">As a Software Engineer, Here is Why You Should Stay in a Company for a Long Time</a></li><li><a href="https://betterprogramming.pub/why-i-declined-an-offer-to-work-at-a-big-tech-company-21ee3177b38">Why I Declined an Offer To Work at a Big Tech Company</a></li><li><a href="https://curtiseinsmann.medium.com/soft-skills-help-developers-level-up-here-are-the-10-id-tell-my-junior-self-e8daaa26ad8e">Soft skills help developers level up. Here are the 10 I’d tell my junior self</a></li><li><a href="https://javascript.plainenglish.io/14-better-ways-for-programmers-to-stand-out-in-their-career-11d88c1159c4">14 Better Ways for Programmers to Stand Out in Their Career</a></li></ul><h3>JavaScript and TypeScript</h3><ul><li><a href="https://medium.com/coderats-llc/finally-the-end-of-javascript-aed1739961cc">Finally — the end of JavaScript!</a></li><li><a href="https://medium.com/geekculture/writing-clean-javascript-es6-edition-834e83abc746">Writing Clean JavaScript — ES6 Edition</a></li><li><a href="https://medium.com/@mmoshikoo/event-loop-in-nodejs-visualized-235867255e81">Event Loop in NodeJS — Visualized</a></li><li><a href="https://blog.softwaremill.com/typescript-mistakes-to-avoid-d3ab240c90eb">15 Typescript Mistakes To Avoid</a></li><li><a href="https://blog.bitsrc.io/secret-behind-javascript-performance-v8-hidden-classes-ba4d0ebfb89d">Secret Behind JavaScript Performance: V8 &amp; Hidden Classes</a></li><li><a href="https://levelup.gitconnected.com/dependency-injection-in-typescript-5fd1f6207f2">Dependency Injection in TypeScript</a></li></ul><h3>Architecture</h3><ul><li><a href="https://abdulrwahab.medium.com/api-architecture-best-practices-for-designing-rest-apis-bf907025f5f">API Architecture — Design Best Practices for REST APIs</a></li><li><a href="https://medium.com/geekculture/12-front-end-performance-patterns-you-need-to-know-def550620464">12 Front End Performance Patterns You Need to Know</a></li></ul><h3>Agile</h3><ul><li><a href="https://rigidity.medium.com/agile-waste-story-points-pt-1-a9df2572d0a3">Agile Waste: Stop Using Story Points. Now.</a></li></ul><h3>Git</h3><ul><li><a href="https://www.atlassian.com/git/tutorials/merging-vs-rebasing">Merging vs. Rebasing</a></li></ul><h3>Peer Review</h3><ul><li><a href="https://mtlynch.io/code-review-love/">How to Make Your Code Reviewer Fall in Love with You</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=816bd3db1c57" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Use Versioning in NestJS]]></title>
            <link>https://javascript.plainenglish.io/how-to-use-versioning-in-nestjs-45d7c413e72b?source=rss-79b30156f62c------2</link>
            <guid isPermaLink="false">https://medium.com/p/45d7c413e72b</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[nestjs]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Richard Lee]]></dc:creator>
            <pubDate>Sat, 08 May 2021 20:53:46 GMT</pubDate>
            <atom:updated>2021-07-24T18:54:50.591Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*G0RUcAMHvyQ_RZNX0_-N-Q.png" /></figure><p><strong>Update (7/24/2021): This article was updated to use the latest versions of NestJS packages.</strong></p><p>When developing REST APIs, it’s not uncommon that there are breaking changes that need to be made, potentially affecting the contract or behavior of the endpoint.</p><p>The issue with making breaking changes is that consumers will be affected, whether they need to quickly change their application to address your breaking changes, or have unexpected behavior that previously didn’t occur. Regardless of the impact, it’s not practical to make breaking changes without supporting the previous version.</p><p>That is where versioning comes in. Versioning allows you to have different versions of endpoints that are simultaneously active. It allows developers to make a new version that includes breaking changes, while still being able to support the previous version(s). This allows consumers to upgrade on their own timeline and overall reduces headaches.</p><p>NestJS is a framework for building <a href="https://nodejs.org/en/">Node.js</a> server-side applications. I won’t cover the details of what NestJS is and why to use it in this article, but I recommend checking out their <a href="https://docs.nestjs.com/">docs</a>!</p><p>Versioning has been added to v8 of NestJS, which was released in July of 2021, so we will be using that version in the examples of this article.</p><p>Within NestJS, there are 3 types of versioning that are supported:</p><ol><li>URI Versioning: The version is passed within the URI of the request</li><li>Header Versioning: A custom request header will specify the version</li><li>Media Type Versioning: The Accept request header will specify the version</li></ol><p>For the focus of this article, we’ll be using Media Type Versioning .</p><h4>Setting up your NestJS application</h4><p>This section will walk you through setting up a new NestJS application with the required setup for versioning.</p><p>First, ensure that you have node v10.13.0 or higher installed, as well as npm, which should be installed with node automatically.</p><p>Next, we’ll install and use the NestJS CLI to generate a new application.</p><pre>$ npm i -g @nestjs/cli<br>$ nest new nest-versioning-demo</pre><p>Choose the package manager of your preference and wait for dependencies to be installed.</p><p>You can start the application with the following command:</p><pre>$ npm start</pre><p>And validate that it’s up and running with the following command:</p><pre>$ curl localhost:3000<br>Hello World!</pre><h4>Enabling versioning in your NestJS application</h4><p>In order to use versioning, you have to enable that functionality on the application. This will enable versioning for the entire application, including all controllers and routes.</p><p>Update your main.ts file to include the enableVersioning(...) function call:</p><pre>import { VersioningType } from &#39;@nestjs/common&#39;;<br>import { NestFactory } from &#39;@nestjs/core&#39;;<br>import { AppModule } from &#39;./app.module&#39;;</pre><pre>async function bootstrap() {<br>  const app = await NestFactory.create(AppModule);<br>  app.enableVersioning({<br>    type: VersioningType.MEDIA_TYPE,<br>    key: &#39;v=&#39;,<br>  });</pre><pre>  await app.listen(3000);<br>}</pre><pre>bootstrap();</pre><p>The enableVersioning function takes an object parameter that includes the type of versioning to use and any configuration that type requires.</p><p>For this article, we’ll be using the Media Type versioning described earlier. We can use the VersioningType enum (imported from @nestjs/common) to indicate that. Media Type versioning requires one extra configuration, key , which should exist in the Accept header as the prefix of the value that we should use for the version.</p><p>For this article, we will use the key v= , and our Accept header will look like Accept: application/json;v=1 or Accept: application/json;v=2 .</p><h4>Adding a versioned route</h4><p>After enabling versioning for our application, the next step is to add a versioned route.</p><p>Run the following command to generate a new controller:</p><pre>$ nest g controller Hello</pre><p>After the files are generated, update the src/hello/hello.controller.ts file to include the following methods:</p><pre>import { Controller, Get } from &#39;@nestjs/common&#39;;</pre><pre>@Controller(&#39;hello&#39;)<br>export class HelloController {<br>  @Get()<br>  getHelloV1() {<br>    return &#39;Hello World V1!&#39;;<br>  }</pre><pre>  @Get()<br>  getHelloV2() {<br>    return &#39;Hello World V2!&#39;;<br>  }<br>}</pre><p>If we were to run the application now and make a request to localhost:3000/hello , we would see the response Hello World V1! regardless of the version we send in the Accept header. This is because we haven’t told NestJS which function should be used for which version, so it defaults to the first one.</p><p>To specify a version, we have two options:</p><ol><li>Specify a version for the entire controller</li><li>Specify a version for a specific route/function</li></ol><p>We’ll start with adding a version to the routes. For this, we use the @Version decorator (imported from @nestjs/common ). Update the src/hello/hello.controller.ts file to include the respective version on the functions:</p><pre>import { Controller, Get, Version } from &#39;@nestjs/common&#39;;</pre><pre>@Controller(&#39;hello&#39;)<br>export class HelloController {<br>  @Version(&#39;1&#39;)<br>  @Get()<br>  getHelloV1() {<br>    return &#39;Hello World V1!&#39;;<br>  }</pre><pre>  @Version(&#39;2&#39;)<br>  @Get()<br>  getHelloV2() {<br>    return &#39;Hello World V2!&#39;;<br>  }<br>}</pre><p>Now we can make requests to both versioned routes and validate the responses that are returned:</p><pre>$ curl localhost:3000/hello -H &quot;Accept: application/json;v=1&quot;<br>Hello World V1!<br>$ curl localhost:3000/hello -H &quot;Accept: application/json;v=2&quot;<br>Hello World V2!</pre><p>And there we go, we have a versioned route!</p><p><strong>Note</strong>: If a request was made without a version, or with a version that did not have a matching route, the application would respond with a 404 Not Found.</p><h4>Adding a versioned controller</h4><p>In addition to applying a version to a specific route, we can have a version apply to an entire controller and all routes within that controller.</p><p>We’ll do this by generating two new controllers:</p><pre>$ nest g controller HolaV1<br>$ nest g controller HolaV2</pre><p>After the files are generated, we’ll update both controllers to use the same route path of hola , and add their respective version.</p><p>src/hola-v1/hola-v1.controller.ts :</p><pre>import { Controller, Get } from &#39;@nestjs/common&#39;;</pre><pre>@Controller({<br>  path: &#39;hola&#39;,<br>  version: &#39;1&#39;,<br>})<br>export class HolaV1Controller {<br>  @Get()<br>  getHola() {<br>    return &#39;Hola Mundo V1!&#39;;<br>  }<br>}</pre><p>src/hola-v2/hola-v2.controller.ts :</p><pre>import { Controller, Get } from &#39;@nestjs/common&#39;;</pre><pre>@Controller({<br>  path: &#39;hola&#39;,<br>  version: &#39;2&#39;,<br>})<br>export class HolaV2Controller {<br>  @Get()<br>  getHola() {<br>    return &#39;Hola Mundo V2!&#39;;<br>  }<br>}</pre><p>Now we can make requests to both versioned controllers and validate the responses that are returned:</p><pre>$ curl localhost:3000/hola -H &quot;Accept: application/json;v=1&quot;<br>Hola Mundo V1!<br>$ curl localhost:3000/hola -H &quot;Accept: application/json;v=2&quot;<br>Hola Mundo V2!</pre><p>And there we go, we have versioned controllers now!</p><p><strong>Adding a Version Neutral route</strong></p><p>For scenarios that don’t require being versioned, NestJS has a “Version Neutral” pattern which indicates that a specific function should be used regardless of the version in the request, or if there no version in the request.</p><p><strong>Note</strong>: For URI versioning, Version Neutral routes will not have a version included in the URI. Due to this, NestJS will not be able to match to the URI if a version is sent on a Version Neutral route.</p><p>For Version Neutral, we’ll generate a new controller:</p><pre>$ nest g controller Health</pre><p>To indicate that a controller or route is version neutral, we will use the VERSION_NEUTRAL symbol that is imported from @nestjs/common . We’ll also add a GET route to the controller:</p><pre>import { Controller, Get, VERSION_NEUTRAL } from &#39;@nestjs/common&#39;;</pre><pre>@Controller({<br>  path: &#39;health&#39;,<br>  version: VERSION_NEUTRAL,<br>})<br>export class HealthController {<br>  @Get()<br>  getHealth() {<br>    return &#39;Healthy!&#39;;<br>  }<br>}</pre><p>To validate the version neutral route, we can test it with and without versions:</p><pre>$ curl localhost:3000/health -H &quot;Accept: application/json;v=1&quot;<br>Healthy!<br>$ curl localhost:3000/health<br>Healthy!</pre><p>And now we have a version-neutral route too!</p><h4>Conclusion</h4><p>In this article, we’ve shown how to enable versioning on a NestJS application and create a versioned route, controller, and a version neutral controller.</p><p>Versioning is an extremely useful feature to have within an API framework in order to react to changing requirements and make breaking changes while still being able to support previous versions that may be used by consumers. This recent addition to NestJS adds to the many reasons why to use it for your Node.js REST API.</p><p>I hope that this article helps you on your journey of using NestJS!</p><p><strong>Note:</strong> You can check out a sample versioning application <a href="https://github.com/rich-w-lee/nest-versioning-demo">here on GitHub</a>.</p><p><em>More content at </em><a href="http://plainenglish.io/"><em>plainenglish.io</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=45d7c413e72b" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/how-to-use-versioning-in-nestjs-45d7c413e72b">How to Use Versioning in NestJS</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>