<?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 Federico Lanzani on Medium]]></title>
        <description><![CDATA[Stories by Federico Lanzani on Medium]]></description>
        <link>https://medium.com/@lanzani?source=rss-b253c9a0e52d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*QZMJGY58zU3Ra15_brIhwQ.png</url>
            <title>Stories by Federico Lanzani on Medium</title>
            <link>https://medium.com/@lanzani?source=rss-b253c9a0e52d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 13:32:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@lanzani/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[5 Rules for Testing Software: Lessons from a Bar]]></title>
            <link>https://levelup.gitconnected.com/5-rules-for-testing-software-lessons-from-a-bar-d4ee189f9de0?source=rss-b253c9a0e52d------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4ee189f9de0</guid>
            <category><![CDATA[rule-of-thumb]]></category>
            <category><![CDATA[best-practices]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-testing]]></category>
            <dc:creator><![CDATA[Federico Lanzani]]></dc:creator>
            <pubDate>Tue, 27 Aug 2024 16:37:10 GMT</pubDate>
            <atom:updated>2024-08-27T22:44:52.733Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7ExE681RHELd_ZR6qW8CnQ.png" /></figure><p>Picture this: You’re a developer, bleary-eyed at 2 AM, staring at a mess of spaghetti code. Bugs are popping up faster than you can swat them down.</p><p>Sound familiar?</p><p>It sure was to me when my startup’s codebase started to be held together with duct tape.</p><p>There I was, leading a team of sleep-deprived developers:</p><ul><li>Real-time video analysis on the edge? Check.</li><li>A mobile app that needed to work flawlessly? You bet.</li><li>A central server that couldn’t afford to crash? Absolutely.</li></ul><p>Our software had grown more complex than a hipster’s coffee order.</p><p>Let’s be honest: I’ve never met a developer excited to write tests. Yet, everyone seems to agree it’s a “very good practice.” It’s the vegetables of the coding world — nobody wants them, but we all know we should eat them.</p><p>So, what’s a startup founder with a rapidly expanding codebase to do? How do we balance the need for robust development and testing with the reality of limited time and resources?</p><p>In this article, I’m going to share with you five rules of thumb that I always keep in mind when I write and test code.</p><h3>Happy Path: The Perfect Order</h3><p>Imagine you walk into a bar, approach the bartender, and ask for a beer.</p><p>The bartender smiles, nods, and promptly pours you a perfectly chilled beer.</p><p>You pay, grab your drink, and find a spot to enjoy it. No fuss, no muss — just a smooth transaction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*jVwIPzX8ruM9jXZyiLmFVg.png" /><figcaption>Illustration by Kitbee</figcaption></figure><p>In the world of software testing, this scenario represents the “Happy Path” — the ideal flow <strong>where everything works exactly as intended</strong>.</p><p>It’s the backbone of your application, the scenario you demo to investors, and the experience you hope every user has.</p><h4>Testing Tip</h4><p>Automate your Happy Path tests and run them <strong>frequently </strong>— ideally with every code change.</p><p>These tests should be your <strong>first line of defense</strong> against unexpected behaviors. These tests should be consistently perfect, every single time.</p><p>Start with those.</p><h3>Incomplete Request: The Silent Customer</h3><p>Picture this: A customer walks into the bar, approaches the counter, and just… stands there. No words, no gestures, just silent expectation.</p><p>Our bartender, sensing the customer’s hesitation, gently prompts, “Can I get you something to drink? Perhaps a beer?”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*Tn9YMF5Gr0RyzEMnIEuHsQ.png" /><figcaption>Illustration by Kitbee</figcaption></figure><p>In the software world, this scenario represents the “Incomplete Condition” — when a user provides <strong>partial or no input</strong>, leaving your system to figure out what to do next.</p><h4>Testing Tip</h4><p>Implement tests that send empty or partial inputs to your system to ensure your application responds with appropriate prompts, default values, or error messages.</p><p>Your goal is to<strong> guide the user towards completing the action</strong>.</p><h3>Broken Request: The Messy Order</h3><p>Imagine a customer stumbles up to the bar, saying something that sounds like “breere”, and looks at the bartender. Our bartender, gently asks, “I’m sorry, did you mean a beer?”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*S5X9kbnrLZ2yzMGj0sr9ZQ.png" /><figcaption>Illustration by Kitbee</figcaption></figure><p>In the software realm, this scenario represents the “Broken Condition” — when a user provides <strong>input that’s invalid, malformed, or nonsensical</strong>.</p><p>The Broken Condition occurs when your application receives inputs that are syntactically or semantically incorrect. It’s the login form faced with an email address without an ‘@’ symbol, the age field populated with “old enough”, or the API call with malformed JSON.</p><p>It’s important to give feedback to the user and <strong>guide him back</strong> to the happy path.</p><h4>Testing Tip</h4><p>Ensure the system identifies malformed inputs or invalid parameters and responds with meaningful error messages or even better: <strong>suggestions for correction</strong>.</p><p>Ensure that these error messages are user-friendly and <strong>provide guidance</strong> on how to provide the correct input.</p><h3><strong>Unsatisfiable Request</strong>: The Unavailable Drink</h3><p>A customer enters a small bar in Italy and orders a specific beer from a specific German beer maker. The bartender, though willing to help, has to inform the customer that they don’t have that particular beer, and asks the client if he likes to try a local Italian beer instead.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*5ALFOpnaKy9amGUMKq3Bpg.png" /><figcaption>Illustration by Kitbee</figcaption></figure><p>This scenario represents the “Bad Condition” — when a user provides input that’s <strong>technically valid</strong> but leads to an <strong>unavailable</strong> or <strong>non-optimal outcome</strong>.</p><p>It’s the equivalent of asking for something that’s just not on the menu.</p><p>In this case, it is important to provide clear feedback to the user, and possibly <strong>some alternative options</strong>.</p><h4>Testing Tip</h4><p>Ensure your application responds with clear explanations or helpful alternatives if the input is not exactly what expected.</p><p>Your goal is to<strong> guide the user</strong> towards a successful outcome, providing the steps that are needed.</p><h3>Edge Cases: The Unexpected Request</h3><p>It’s a typical evening at the bar. A customer walks in, approaches the bartender, and instead of ordering a drink, asks, “Where’s the bathroom?” The bartender, without hesitation, points the door of the toilette.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*bRcpNqXRmEIIF2HDkwYrrw.png" /><figcaption>Illustration by Kitbee</figcaption></figure><p>This is an edge case — an unusual request that’s <strong>still valid</strong> but <strong>outside the typical flow</strong> of interaction.</p><p>In software, edge cases represent uncommon, extreme, or unexpected scenarios that might not be immediately obvious, but are still important to be handled correctly.</p><h4>Testing Tip</h4><p>Brainstorm and implement tests for scenarios that are uncommon, unexpected or follows unusual sequences of operations.</p><p>Ensure your application can handle these gracefully, either by accommodating the request or by providing clear, helpful responses.</p><p>Your goal is to make your system as <strong>versatile </strong>and user-friendly as possible.</p><h3>Conclusion</h3><p>Let’s recap:</p><ul><li><strong>Happy Path</strong>: Ensure your core functionality works flawlessly every time</li><li><strong>Incomplete Request</strong>: Be ready to guide users, just as a bartender helps an indecisive customer</li><li><strong>Broken Request</strong>: Handle errors gracefully, like understanding a misspelled drink order</li><li><strong>Unsatisfiable Request</strong>: Inform or offer alternatives when the ideal solution isn’t available, like suggesting a local brew when you’re out of an imported beer</li><li><strong>Edge Cases</strong>: Be prepared for the unexpected, like giving directions to the restroom in a bar</li></ul><p>By implementing these testing principles, we move beyond simply verifying that our code works under ideal circumstances. We create <strong>resilient systems</strong> capable of <strong>handling the unexpected</strong>.</p><p>Your users will appreciate the smooth, reliable experience — and you’ll rest easier knowing your code can handle whatever comes its way.</p><p>Not tested code is “done”, tested code is “ready”.</p><figure><img alt="Two icons, one is done but not refinished, the other is ready." src="https://cdn-images-1.medium.com/max/720/1*HwMx7WHMLbvtsTpJolaXIg.jpeg" /><figcaption>Image by the author. Wave icons by <a href="https://www.youtube.com/@TheVectorLab">TheVectorLab</a></figcaption></figure><p>As software developers, our goal isn’t just to write code that works, but to <strong>craft solutions</strong> that <strong>stand up</strong> to the complexities and unpredictabilities of real-world use.</p><p>Make great things.</p><p>If you like this article, <strong>leave a clap</strong> (or more than one) and let me know what are your testing principles, I’m curious to see what other developers find effective :)</p><p>Also, you might be interested in my other article about building software from scratch:</p><p><a href="https://levelup.gitconnected.com/what-ive-learned-about-building-things-cd6c4a026e5a">What I’ve Learned About Building Things</a></p><p>Thank you!</p><p>~ Federico Lanzani</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4ee189f9de0" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/5-rules-for-testing-software-lessons-from-a-bar-d4ee189f9de0">5 Rules for Testing Software: Lessons from a Bar</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Poetry With Docker]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://levelup.gitconnected.com/poetry-with-docker-eca8682da020?source=rss-b253c9a0e52d------2"><img src="https://cdn-images-1.medium.com/max/1080/1*PtzRaSdmXomROelUVhUrdA.png" width="1080"></a></p><p class="medium-feed-snippet">A marriage between two awesome tools</p><p class="medium-feed-link"><a href="https://levelup.gitconnected.com/poetry-with-docker-eca8682da020?source=rss-b253c9a0e52d------2">Continue reading on Level Up Coding »</a></p></div>]]></description>
            <link>https://levelup.gitconnected.com/poetry-with-docker-eca8682da020?source=rss-b253c9a0e52d------2</link>
            <guid isPermaLink="false">https://medium.com/p/eca8682da020</guid>
            <category><![CDATA[python-poetry]]></category>
            <category><![CDATA[docker-multi-stage]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[dependency-management]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Federico Lanzani]]></dc:creator>
            <pubDate>Fri, 05 Jul 2024 13:47:27 GMT</pubDate>
            <atom:updated>2024-07-05T16:56:41.271Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[AI on the edge with Jetson Nano!]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/jetson-docs/ai-on-the-edge-with-jetson-nano-e82270e7e5d9?source=rss-b253c9a0e52d------2"><img src="https://cdn-images-1.medium.com/max/1920/1*I7rptlN3RZzBAZeWcNbfrw.png" width="1920"></a></p><p class="medium-feed-snippet">Unboxing of Seeed reComputer J10 (Jetson Nano 4GB full system)</p><p class="medium-feed-link"><a href="https://medium.com/jetson-docs/ai-on-the-edge-with-jetson-nano-e82270e7e5d9?source=rss-b253c9a0e52d------2">Continue reading on jetson-docs »</a></p></div>]]></description>
            <link>https://medium.com/jetson-docs/ai-on-the-edge-with-jetson-nano-e82270e7e5d9?source=rss-b253c9a0e52d------2</link>
            <guid isPermaLink="false">https://medium.com/p/e82270e7e5d9</guid>
            <category><![CDATA[seeed-studio]]></category>
            <category><![CDATA[edge-computing]]></category>
            <category><![CDATA[nvidia-jetson-nano]]></category>
            <category><![CDATA[edge-ai]]></category>
            <category><![CDATA[jetson-nano]]></category>
            <dc:creator><![CDATA[Federico Lanzani]]></dc:creator>
            <pubDate>Sat, 04 May 2024 17:15:02 GMT</pubDate>
            <atom:updated>2024-05-04T17:15:02.429Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Epepe was right next to me]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@lanzani/epepe-was-right-next-to-me-e3aab8dfd1ee?source=rss-b253c9a0e52d------2"><img src="https://cdn-images-1.medium.com/max/1920/1*RBFrFi01FMXzcaDJe7-C6w.jpeg" width="1920"></a></p><p class="medium-feed-snippet">More or less a book review: Metropole by Ferenc Karinthy</p><p class="medium-feed-link"><a href="https://medium.com/@lanzani/epepe-was-right-next-to-me-e3aab8dfd1ee?source=rss-b253c9a0e52d------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@lanzani/epepe-was-right-next-to-me-e3aab8dfd1ee?source=rss-b253c9a0e52d------2</link>
            <guid isPermaLink="false">https://medium.com/p/e3aab8dfd1ee</guid>
            <category><![CDATA[mindfulness]]></category>
            <category><![CDATA[book-review]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[meditation]]></category>
            <category><![CDATA[inspirational]]></category>
            <dc:creator><![CDATA[Federico Lanzani]]></dc:creator>
            <pubDate>Sat, 30 Mar 2024 23:31:07 GMT</pubDate>
            <atom:updated>2024-03-30T23:31:57.070Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Docker Compose v2 on Jetson Nano]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/jetson-docs/docker-compose-v2-on-jetson-nano-91db0c02493c?source=rss-b253c9a0e52d------2"><img src="https://cdn-images-1.medium.com/max/1920/1*bXb0hCnJrsMOdsj0y_3q_g.png" width="1920"></a></p><p class="medium-feed-snippet">With the release of Docker Compose v2, users can take advantage of new features and improvements such profiles and secrets.</p><p class="medium-feed-link"><a href="https://medium.com/jetson-docs/docker-compose-v2-on-jetson-nano-91db0c02493c?source=rss-b253c9a0e52d------2">Continue reading on jetson-docs »</a></p></div>]]></description>
            <link>https://medium.com/jetson-docs/docker-compose-v2-on-jetson-nano-91db0c02493c?source=rss-b253c9a0e52d------2</link>
            <guid isPermaLink="false">https://medium.com/p/91db0c02493c</guid>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[docker-compose]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[jetson-nano]]></category>
            <category><![CDATA[nvidia]]></category>
            <dc:creator><![CDATA[Federico Lanzani]]></dc:creator>
            <pubDate>Sat, 10 Feb 2024 22:29:58 GMT</pubDate>
            <atom:updated>2024-02-10T22:29:58.677Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Starter Configuration for Nvidia Jetson Nano]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/jetson-docs/starter-configuration-for-nvidia-jetson-nano-e7dd4241b297?source=rss-b253c9a0e52d------2"><img src="https://cdn-images-1.medium.com/max/1920/1*MyZ-9prcqouFWSgFBu6hyQ.png" width="1920"></a></p><p class="medium-feed-snippet">Required time: 20 min</p><p class="medium-feed-link"><a href="https://medium.com/jetson-docs/starter-configuration-for-nvidia-jetson-nano-e7dd4241b297?source=rss-b253c9a0e52d------2">Continue reading on jetson-docs »</a></p></div>]]></description>
            <link>https://medium.com/jetson-docs/starter-configuration-for-nvidia-jetson-nano-e7dd4241b297?source=rss-b253c9a0e52d------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7dd4241b297</guid>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[jetson-nano]]></category>
            <category><![CDATA[jetson-configuration]]></category>
            <category><![CDATA[documentation]]></category>
            <category><![CDATA[nvidia-jetson]]></category>
            <dc:creator><![CDATA[Federico Lanzani]]></dc:creator>
            <pubDate>Sat, 10 Feb 2024 01:12:26 GMT</pubDate>
            <atom:updated>2024-02-10T01:12:26.842Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Dear Ai,]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/brass-for-brain/dear-ai-b64207726fa6?source=rss-b253c9a0e52d------2"><img src="https://cdn-images-1.medium.com/max/777/1*x58cVYnIx5KaLVEsxrHHVg.png" width="777"></a></p><p class="medium-feed-snippet">Song by Swelto and LoneWolf</p><p class="medium-feed-link"><a href="https://medium.com/brass-for-brain/dear-ai-b64207726fa6?source=rss-b253c9a0e52d------2">Continue reading on Brass For Brain »</a></p></div>]]></description>
            <link>https://medium.com/brass-for-brain/dear-ai-b64207726fa6?source=rss-b253c9a0e52d------2</link>
            <guid isPermaLink="false">https://medium.com/p/b64207726fa6</guid>
            <category><![CDATA[songs]]></category>
            <category><![CDATA[indie-music]]></category>
            <category><![CDATA[music]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Federico Lanzani]]></dc:creator>
            <pubDate>Fri, 02 Feb 2024 00:43:23 GMT</pubDate>
            <atom:updated>2024-02-02T00:43:23.385Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Getting Everybody on the Same Page]]></title>
            <link>https://levelup.gitconnected.com/getting-everybody-on-the-same-page-70f8a57e0773?source=rss-b253c9a0e52d------2</link>
            <guid isPermaLink="false">https://medium.com/p/70f8a57e0773</guid>
            <category><![CDATA[coding-best-practices]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[semantic-versioning]]></category>
            <category><![CDATA[version-control]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Federico Lanzani]]></dc:creator>
            <pubDate>Mon, 08 Jan 2024 04:06:28 GMT</pubDate>
            <atom:updated>2024-01-08T04:06:28.737Z</atom:updated>
            <content:encoded><![CDATA[<h4>Guide to Semantic Versioning for Fast-changing Software</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1roAbQwNp3FtRVH9lppeLQ.png" /></figure><h3>Why we need a versioning system</h3><p>Things change, yeah it’s software. We need to give a short name to something that can contain thousands of lines of code. We need to address a set of features, bug, releases in a simple and unique way.</p><p>We have the need to coordinate our software with packages created by other people, that also depends on software created by other people again.</p><p>To avoid falling in the “<a href="https://en.wikipedia.org/wiki/Dependency_hell">dependency hell</a>” we need a well-built versioning system that allows us to understand and specify the requirements of our project.</p><h3>Semantic Versioning</h3><p>There are different versioning systems, the most popular is <a href="https://semver.org/">semantic versioning</a>. I adopted this system both personally and in my startup.</p><p>Why <em>semantic</em>? Because it is all about conveying meaning by how the version number changes.</p><p>But how does it work?</p><p>Versions should attend the following format, 3 numbers separated by a period:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dqGODIbrdG3wQl9gvrXw4g.png" /></figure><p>On GitHub, it is suggested to put a “v” on the left before the “Major” number. Like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V_SgFmCDsosOZbdnWpc1Rw.png" /></figure><p>Choose as you prefer, it makes no difference for the versioning system. (I use the latter)</p><p>Here is an example of a version tag:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rgidi2PfQLQZwnTJP8MFkg.png" /></figure><p>Each number has a different meaning and should be incremented according to some rules.</p><p>Let’s analyze each of those numbers one by one.</p><h3>Major</h3><p>Stands for a major version.</p><blockquote><em>⤴️ Increase this value when you make </em><strong><em>incompatible </em></strong><em>API changes.</em></blockquote><p>When you increase the major version number, you increase it by one, but you reset both patch version and minor versions to zero.</p><p>If the current version is <em>2.6.9</em> then the next upgrade for a major version will be <em>3.0.0</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fLheZSuLcdgGO5VdD_p3oA.png" /></figure><h3>Minor</h3><p>Stands for a minor version</p><blockquote><em>⤴️ Increase this value when you add functionality in a </em><strong><em>backward compatible</em></strong><em> manner.</em></blockquote><p>When you increase the minor version, you increase it by one, but you must reset the patch version to zero.</p><p>If the current version is 2.6.9 then the next upgrade for a minor version will be 2.7.0</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*grfH0Kq1teDj90PPkWmBwA.png" /></figure><h3>Patch</h3><p>Stands for a patch version</p><blockquote><em>⤴️ Increase this value when you make </em><strong><em>backward compatible bug fixes</em></strong><em>. </em><strong><em>No functionalities</em></strong><em> changes.</em></blockquote><p>If the current version is 2.6.9 then the next version for a patch upgrade will be 2.6.10</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eMjhQvipDUntmTAxDtYjKw.png" /></figure><h3>Rules</h3><p>Here I pasted the most relevant rules, to see all eleven of them see <a href="https://semver.org/">semver.org</a>.</p><ul><li>Software using Semantic Versioning MUST declare a public API. This API could be declared in the code itself or exist strictly in documentation. However it is done, it SHOULD be precise and comprehensive.</li><li>A normal version number MUST take the form X.Y.Z where X, Y, and Z are non-negative integers, and MUST NOT contain leading zeroes.</li><li>Once a versioned package has been released, the contents of that version MUST NOT be modified. Any modifications MUST be released as a new version.</li><li>Major version zero (0.y.z) is for initial development. Anything MAY change at any time. The public API SHOULD NOT be considered stable.</li><li>Version 1.0.0 defines the public API. The way in which the version number is incremented after this release is dependent on this public API and how it changes.</li></ul><h3>How to integrate this in your git workflow</h3><p>I use a simple git branching system, I will write about it in detail in a future article. To make an overview, it works like this:</p><p>My projects have a branch <strong><em>main</em>, </strong>a branch <strong><em>develop </em></strong>and multiple <strong><em>features </em></strong>branches.</p><p>My branching system assumes that every commit or merge done on the <strong><em>main </em></strong>branch is a version.</p><p>Every time I merge <strong><em>develop </em></strong>into <strong><em>main</em></strong>, or I commit a hotfix on <strong><em>main</em></strong>, I make a version tag. I come up with a new version number that respects the semantic versioning principles, and I simply make a git tag on the latest commit on <strong><em>main</em></strong>.</p><p>Last thing, I go on GitHub to make a release based on the tag I just created. (This could be automatized)</p><h3>Possible common scenarios</h3><p>I’ve selected the most relevant FAQ from <a href="https://semver.org/">semver.org</a>:</p><p><strong>Q: How should I deal with revisions in the 0.y.z initial development phase?</strong></p><p><strong>A:</strong> The simplest thing to do is start your initial development release at 0.1.0 and then increment the minor version for each subsequent release.</p><p>—</p><p><strong>Q: How do I know when to release 1.0.0?</strong></p><p><strong>A: </strong>If your software is being used in production, it should probably already be 1.0.0. If you have a stable API on which users have come to depend, you should be 1.0.0. If you’re worrying a lot about backward compatibility, you should probably already be 1.0.0.</p><p>—</p><p><strong>Q:</strong> <strong>If even the tiniest backward incompatible changes to the public API require a major version bump, won’t I end up at version 42.0.0 very rapidly?</strong></p><p><strong>A:</strong> This is a question of responsible development and foresight. Incompatible changes should not be introduced lightly to software that has a lot of dependent code. The cost that must be incurred to upgrade can be significant. Having to bump major versions to release incompatible changes means you’ll think through the impact of your changes, and evaluate the cost/benefit ratio involved.</p><p>—</p><p><strong>Q: What should I do if I update my own dependencies without changing the public API?</strong></p><p><strong>A: </strong>That would be considered compatible since it does not affect the public API. Software that explicitly depends on the same dependencies as your package should have their own dependency specifications, and the author will notice any conflicts. Determining whether the change is a patch level or minor level modification depends on whether you updated your dependencies in order to fix a bug or introduce new functionality. We would usually expect additional code for the latter instance, in which case it’s obviously a minor level increment.</p><h3>What else?</h3><p>Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format. But that is for another article :)</p><p>If you can’t wait to know more, that’s great! Look here: <a href="https://semver.org/">semver.org</a></p><p>Thank you for reading and happy coding!</p><p>If you like this article, leave a clap (or more) and <a href="https://medium.com/@lanzani/subscribe">follow me on medium</a> or <a href="https://buttondown.email/lanzani">subscribe to my newsletter</a> ❤</p><p><a href="https://medium.com/@lanzani/subscribe">Get an email whenever Federico Lanzani publishes.</a></p><p>~ Federico</p><p>Sources: <a href="https://semver.org/">Semantic Versioning (semver.org)</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70f8a57e0773" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/getting-everybody-on-the-same-page-70f8a57e0773">Getting Everybody on the Same Page</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TEDxLakeComo 2023 — Day 2/2]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://levelup.gitconnected.com/tedxlakecomo-2023-day-2-2-a7b068595660?source=rss-b253c9a0e52d------2"><img src="https://cdn-images-1.medium.com/max/1536/1*bmGSfr_3qEhxPPN_mRiwOQ.jpeg" width="1536"></a></p><p class="medium-feed-snippet">Here we are again at TEDxLakeComo! These are the talks presented during the second day of the conference, if you are looking for the first&#x2026;</p><p class="medium-feed-link"><a href="https://levelup.gitconnected.com/tedxlakecomo-2023-day-2-2-a7b068595660?source=rss-b253c9a0e52d------2">Continue reading on Level Up Coding »</a></p></div>]]></description>
            <link>https://levelup.gitconnected.com/tedxlakecomo-2023-day-2-2-a7b068595660?source=rss-b253c9a0e52d------2</link>
            <guid isPermaLink="false">https://medium.com/p/a7b068595660</guid>
            <category><![CDATA[ted]]></category>
            <category><![CDATA[lake-como]]></category>
            <category><![CDATA[conference]]></category>
            <category><![CDATA[tedtalks]]></category>
            <category><![CDATA[ideas-worth-spreading]]></category>
            <dc:creator><![CDATA[Federico Lanzani]]></dc:creator>
            <pubDate>Mon, 08 Jan 2024 04:03:34 GMT</pubDate>
            <atom:updated>2024-01-08T08:27:40.478Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[TEDxLakeComo 2023 — Day 1/2]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://levelup.gitconnected.com/tedxlakecomo-2023-day-1-2-fb2a128eb49e?source=rss-b253c9a0e52d------2"><img src="https://cdn-images-1.medium.com/max/1000/1*MaxnQQZNszlF04sz-PojfA.jpeg" width="1000"></a></p><p class="medium-feed-snippet">This year, I found myself once again to my favorite &#x2018;local&#x2019; TED experience: TEDxLakeComo. Taking place at the beautiful location of Villa&#x2026;</p><p class="medium-feed-link"><a href="https://levelup.gitconnected.com/tedxlakecomo-2023-day-1-2-fb2a128eb49e?source=rss-b253c9a0e52d------2">Continue reading on Level Up Coding »</a></p></div>]]></description>
            <link>https://levelup.gitconnected.com/tedxlakecomo-2023-day-1-2-fb2a128eb49e?source=rss-b253c9a0e52d------2</link>
            <guid isPermaLink="false">https://medium.com/p/fb2a128eb49e</guid>
            <category><![CDATA[ted]]></category>
            <category><![CDATA[ideas-worth-spreading]]></category>
            <category><![CDATA[conference]]></category>
            <category><![CDATA[lake-como]]></category>
            <category><![CDATA[tedtalks]]></category>
            <dc:creator><![CDATA[Federico Lanzani]]></dc:creator>
            <pubDate>Mon, 08 Jan 2024 04:00:21 GMT</pubDate>
            <atom:updated>2024-01-08T08:28:18.453Z</atom:updated>
        </item>
    </channel>
</rss>