<?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 Andrea Di Giacomo on Medium]]></title>
        <description><![CDATA[Stories by Andrea Di Giacomo on Medium]]></description>
        <link>https://medium.com/@andreadigiacomo.dev?source=rss-b4579cc19a40------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*bZ3oxpMMdUqLaGXl7V--wQ.png</url>
            <title>Stories by Andrea Di Giacomo on Medium</title>
            <link>https://medium.com/@andreadigiacomo.dev?source=rss-b4579cc19a40------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 13:17:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@andreadigiacomo.dev/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[Google Play’s Closed Testing: When Quality Becomes a Popularity Contest]]></title>
            <link>https://medium.com/@andreadigiacomo.dev/google-plays-closed-testing-when-quality-becomes-a-popularity-contest-e5ae3210fdff?source=rss-b4579cc19a40------2</link>
            <guid isPermaLink="false">https://medium.com/p/e5ae3210fdff</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Andrea Di Giacomo]]></dc:creator>
            <pubDate>Mon, 02 Nov 2026 00:00:38 GMT</pubDate>
            <atom:updated>2026-11-02T18:22:36.567Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ARyMa1JZEZHzNKfn.png" /></figure><p>Today I want to talk about a scenario that borders on the surreal, the one an Android developer runs into when publishing their first app.</p><p>Anyone who knows me knows mobile development hasn’t been my job for years. But it’s the field that got me into programming in the first place, and it still holds a special place among my interests.</p><p>I moved away from mobile to focus on the web. It wasn’t an easy call: I loved designing interfaces and shipping B2C apps.</p><p>Then React Native made the decision almost obvious. Switching to JavaScript opened up the web while keeping mobile development on the table whenever I needed it.</p><p>My web career started on the frontend, which was my main specialty for years. Over time I expanded into backend, databases, infra, CI/CD, security and, last but not least, AI. Mobile, though, had stayed frozen where I left it.</p><p>And AI is what brought me back to the starting point, unexpectedly: mobile development.</p><h3>AI as an accelerator</h3><p>My curiosity about AI led to an obvious question: I already know how to build mobile apps, but how much of that knowledge is still current after years away? Could I use AI to bring myself up to date and, at the same time, compare different cloud and local models?</p><p>I decided to find out by putting myself to the test again.</p><p>The first project was <a href="https://www.andreadigiacomo.dev/en/difesa-alimentare"><strong>Difesa Alimentare</strong></a>, an app in a field I knew nothing about, and one I’m still working on.</p><p>Then I rebuilt a personal project of mine, <a href="https://www.andreadigiacomo.dev/en/my-finance"><strong>My Finance</strong></a>, which is now live on the app stores.</p><p>Finally, I picked up an old app, <strong>ASRaces</strong>, expanded its features and built the Windows component too, something I probably never would have had the patience to tackle without AI.</p><p>By the end of that experience, my optimism about AI had grown. It lowered the barrier to technologies and fields I would otherwise have kept postponing.</p><p>But there’s a flip side. The same ease with which we can now build software has created the illusion that anyone can build practically anything without any real expertise.</p><p>And that distinction matters: using AI to study, learn new technologies and build software is a huge opportunity. Believing you can ship a professional, market-ready product just by writing a few prompts is an expectation that needs revisiting.</p><p>The challenges of software development have changed, but they haven’t disappeared. If anything, once an app reaches real users, responsibilities appear that go far beyond whether it works. Take personal data: collecting and storing user information is a serious responsibility, and it requires skill, care and awareness.</p><p>AI can help us build, but it doesn’t remove the need to know what we’re building, and above all what we’re taking responsibility for.</p><h3>The Google Play barrier</h3><p>The problem is that not everyone seems to share that awareness. More apps are reaching the stores than ever, but not necessarily better ones.</p><p>It’s relatively easy to build an app that looks like it works. Then a restart of a Docker container hosting the database is enough to reveal that user data is gone. And yet that app can still make it onto the store.</p><p>So Google introduced <a href="https://support.google.com/googleplay/android-developer/answer/14151465">additional publishing requirements</a> meant to ensure apps are properly tested before they reach the public.</p><p>The one I want to focus on is <strong>closed testing</strong>.</p><p>For new personal developer accounts created after November 13, 2023, Google requires at least 12 testers to join a closed test and stay opted in for at least 14 consecutive days before you can apply for production access.</p><p>The intent is easy to understand: make sure enough people try an app before it becomes available to everyone. Put that way, it’s hard to argue with.</p><p>The problem shows up when you apply it to an independent developer’s reality. Maybe I just don’t have enough friends, but finding 12 people with an Android phone in my circle is not exactly a simple task.</p><h3>Test 4 Test: when developers become TikTokers</h3><p>That’s where the second problem kicks in: finding people who actually want to install and try new apps.</p><p>In 2026, getting someone to spend a few minutes on an unknown app has become a chore. We’ve reached the point where a like on social media counts as a win, let alone convincing someone to install an app and keep it on their phone for two weeks.</p><p>It turns out Reddit has entire communities of developers organizing around what they call <strong>Test 4 Test</strong>.</p><p>The principle is simple: I test your app, you test mine, everybody’s happy.</p><p>I gave it a shot, and I was genuinely happy to try a few other apps. New ideas are always useful.</p><p>The result? A pile of invitations to test other developers’ apps in exchange for a test of mine. After spending five minutes playing what was probably the worst puzzle game of my life, I deleted the post.</p><p>The trouble is that most of these aren’t real tests. People join, install the app, open it once, and forget about it. The requirement is satisfied anyway: they’re opted in, the counter goes up. No meaningful feedback, no actual testing, no interest in the product.</p><p>It wastes everyone’s time and, more importantly, defeats the purpose of the rule Google introduced.</p><p>It reminds me of Instagram bots: the follower count grows, but no real interaction happens. The numbers go up, the value goes down.</p><p>Which brings us to the paradox: a system designed to improve app quality can turn into a trading market for test sign-ups, where the goal isn’t finding bugs, collecting feedback or improving the product, but simply helping each other clear Google’s requirement.</p><p>That creates a dubious incentive: spending time recruiting testers and testing other people’s apps becomes a priority, sometimes at the expense of building and improving your own.</p><p>In other words, we risk rewarding whoever is best at networking and trading favors over whoever actually did the work to build something good.</p><h3>The My Finance paradox</h3><p>In my case, the problem became painfully obvious with <strong>My Finance</strong>, my net worth tracking app.</p><p>The app was designed to be used rarely. The point is to let people keep an eye on their finances without spending time on their phone every day. You update the numbers now and then, check how things are going, and get back to your life.</p><p>I don’t use it every day either. Usually I open it once a month.</p><p>At this point, what am I supposed to expect from those 12 people? There’s nothing to do in two weeks: you enter the data once, look at the result, and close the app. The perfect test for an app you use once a month: 12 people opted in, nobody opening it, zero feedback collected.</p><p>Not every app is built for frequent use (unfortunately, that kind of app is becoming rare). A finance app, a utility, a reference tool can do its job perfectly well even if it’s opened a few times a month.</p><p>I got to the point of seriously considering pulling My Finance from Google Play and keeping it on the App Store and as a web app.</p><p>When I applied for production access, I even told Google I wasn’t willing to waste more time on artificial testing exchanges: trying apps I didn’t think were fit to be published, just to collect sign-ups and worthless feedback.</p><p>To be honest, I half expected a definitive rejection, or even a ban.</p><p>Instead, to my surprise, the app was approved.</p><p>The outcome was positive, but the experience left a bad taste and significantly reduced my appetite for Android development.</p><h3>What should Google do?</h3><p>I’m not against testing, and I don’t think Google should let any app waltz onto the Play Store with no checks at all.</p><p>If anything, now that AI has made building apps so easy, some form of additional oversight is necessary, especially to protect users.</p><p>But I think the process could focus more on the technical quality of the product.</p><p>For example, Google could require documentation on the app’s architecture and, where applicable, its backend infrastructure. How is data handled? Where is it stored? What security measures are in place? How are backups and authentication managed?</p><p>I don’t expect Google to do a full code review of every app. That would be unrealistic. But asking developers to document these decisions, and checking at least the most critical parts, would be far more meaningful than counting testers.</p><p>An app can have 12 testers for 14 days and still ship with catastrophic problems. Likewise, an app built by one person can be perfectly functional, secure and ready to publish.</p><p>In the end, Google should care far more about what an app does with user data, how it stores it and how it protects it than about how many people tapped Install during a beta test.</p><h3>The requirement measures sign-ups, not quality</h3><p>This experience left me with mixed feelings.</p><p>On one hand, I got back into mobile development after years away, using tools that helped me catch up and build projects that would otherwise still be sitting on my to-do list.</p><p>On the other, I ran into a process that, at least in my case, shifted my attention from building the product to finding people willing to join a pseudo-testing program.</p><p>I don’t think Google should scrap every form of oversight. Quite the opposite: users deserve safe, reliable apps. But a requirement should measure the thing it claims to improve: quality.</p><p>Twelve people joining a test for 14 days doesn’t necessarily mean a better app. And not having a community ready to test your product doesn’t mean you built something bad.</p><p>Maybe it’s time to rethink how we assess app quality before release. Because if getting onto the Play Store depends more on finding testers than on building good software, something in the process probably isn’t working.</p><p>So, what do you think?</p><p><em>Originally published at </em><a href="https://www.andreadigiacomo.dev/en/blog/google-closed-testing"><em>https://www.andreadigiacomo.dev</em></a><em> on November 2, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e5ae3210fdff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Put an AI Agent on Telegram to Manage My Food]]></title>
            <link>https://medium.com/@andreadigiacomo.dev/i-put-an-ai-agent-on-telegram-to-manage-my-food-a7850b9fc486?source=rss-b4579cc19a40------2</link>
            <guid isPermaLink="false">https://medium.com/p/a7850b9fc486</guid>
            <category><![CDATA[hermes]]></category>
            <category><![CDATA[food]]></category>
            <category><![CDATA[home-assistant]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[Andrea Di Giacomo]]></dc:creator>
            <pubDate>Sun, 11 Oct 2026 00:00:11 GMT</pubDate>
            <atom:updated>2026-10-21T17:01:23.526Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tTaMnnIlI97WJPog.png" /></figure><h3>I gave an AI agent access to Telegram. Now it knows when we run out of eggs.</h3><p>We’re probably a little late to talk about Hermes Agent, but I’ve never cared much about being first to jump on the latest trend. What interests me is the point where a technology stops being a neat demo and starts removing small annoyances from everyday life.</p><p>Hermes caught my attention for exactly that reason. Not because it “uses AI” — soon enough, every appliance will claim that — but because it can stay online, receive messages, remember information, use an LLM when needed, and do something useful even when I’m not sitting there waiting for a response.</p><p>The pantry is deliberately a simple example. The point is not to build the ultimate egg management system. It is to use a familiar problem to show what changes when an assistant does more than chat: it keeps state, uses tools, and continues working after the chat window is closed. Once that mechanism clicks, much more advanced applications become easy to imagine.</p><p>So I did what I usually do when I find something interesting: I installed it and started experimenting, with unusual moderation this time. For now, it talks to me and my girlfriend on Telegram, knows what we have in the pantry, suggests meals, and reminds us about things we would otherwise forget. It is not Jarvis, to be clear. But it knows we have run out of eggs, and that is already a good start.</p><h3>Chat is only the front door</h3><p>I started by creating a Telegram bot, authorizing our accounts, and adding the agent to a small private group. We use the group chat for household matters and direct messages for personal ones. My girlfriend does not need to know when I should go to the barber or wash the car, so those reminders stay in my private chat with the assistant.</p><p>Telegram then became the user interface for the entire project. As a developer, I can confirm that this decision saved me weeks of work. I could have built a React dashboard or spent three weekends arguing with myself over the perfect pantry icon. Instead, I open Telegram, write a message, and I am done.</p><p>The interesting part is what happens after I send it. If I ask the agent to remind me at 12:30 on Sunday to clean the cat’s water fountain, Hermes does not simply reply with a polite “sure.” It schedules the task and notifies me when it is time. If I tell it that we have run out of eggs, that information updates the assistant’s persistent state instead of becoming another line of text buried in the conversation history.</p><h3>The first problem it solved? A cat’s water fountain</h3><p>Ginny (my adorable cat) has a Petkit water fountain that needs cleaning every week and a new filter every three weeks. Unfortunately, the Android app does not remind me as reliably as it did on iOS, so I handed the job to Hermes with two simple natural-language instructions:</p><blockquote><em>Every Sunday at 12:30, remind us to clean the water fountain. Every three weeks, remind us to replace the filter and, when it is a filter-change week, skip the regular cleaning reminder.</em></blockquote><p>That was the entire setup. It is a tiny, almost ridiculous automation, but it captures why this approach is convenient. I did not open Google Calendar, configure another dedicated app, or write notification code. I explained the logic as I would explain it to a person. From then on, the rule became part of the agent’s working setup and ran when needed. Today Hermes sent the notification, and the fountain now has a new filter.</p><h3>From the water fountain to the pantry</h3><p>Once that problem was solved, I started wondering what else we do repeatedly without it being worth installing a dedicated application. The answer was immediate: keeping track of groceries. I did not want to build a full household inventory system with quantities, expiry dates, barcodes, and pie charts — I already have far too many side projects. I only needed a minimal, binary structure that could tell me whether a product was available:</p><pre>{ &quot;products&quot;: { &quot;uova&quot;: false, &quot;latte&quot;: true, &quot;salmone&quot;: true } }</pre><p>If I tell Hermes that we have run out of salmon, it changes the state to false. If we ask what is missing, it lists the unavailable products. I also wanted to avoid updating everything manually after grocery shopping, so I photographed a receipt and sent it to the group with a simple instruction: <em>&quot;Update the pantry from this receipt.&quot;</em> With the exception of two products, everything was correctly reflected in its state.</p><p>The agent uses vision to read the receipt, normalize product names, and mark detected items as available. Our receipts are often in German, so an opaque description from a local supermarket becomes a straightforward Italian product name such as “yogurt greco.” When Hermes detects a new product, it adds it to the database. When something is absent from the receipt, it does not assume we have run out; we remain responsible for marking it as finished.</p><p>That was when the value of this simple system became obvious. I was not merely asking an AI to interpret an image once. I was giving it an input that changed persistent state it would use again over the following days.</p><h3>Since you know what is in the kitchen, tell me what to eat</h3><p>Once the agent knew whether we had chicken, salmon, eggs, and vegetables, asking it to help with meals was the obvious next step. I added a second skill for meal planning with a few basic rules: suggest balanced dishes, keep recipes simple, avoid complex carbohydrates at dinner when possible, and use only what we already have.</p><p>I had no intention of entering dozens of recipes before knowing whether the system was useful, so I chose a dynamic approach. Hermes suggests a dish from the available context. If we like it, we ask the agent to save it as a favorite and add it to our collection.</p><p>My protein pancake recipe, for example, contains only egg whites, oat flour, and protein powder. Saving that exact version stops the agent from improvising one with butter, sugar, milk, Madagascar vanilla, and perhaps the blessing of a French chef. The recipe collection grows naturally through daily use, without requiring me to design a database before testing the idea.</p><h3>One agent, not an entire corporate org chart</h3><p>Discussions about agent architectures have a habit of producing elaborate diagrams full of supervisors, planners, research agents, and coding agents. They often look more like the org chart of a multinational corporation than a software design.</p><p>I had no reason to make this project that complicated. I kept one agent and gave it specific <strong>skills</strong>: modules containing the instructions and tools it needs for a particular scenario.</p><p>The pantry and meal planner are not separate agents. They are capabilities of the same assistant, which can infer from context which tool it should use. Hermes also supports more complex patterns such as delegation and sub-agents, but in this household setup they would have been an exercise in style and unnecessary complexity.</p><p>Another important aspect is that the setup is not tied to one underlying model. Today my agent uses OpenAI APIs for reasoning. Tomorrow I could switch providers or connect a local model without rebuilding the integration logic. I am creating a personal environment that I control directly and that does not depend on a single LLM.</p><h3>Where I run it</h3><p>I deployed Hermes on a small VPS that I was already using for other experiments. Anyone who follows my projects may remember that the same server hosted a Postiz-based bot for automated social publishing. That stack is fairly hungry for memory and other resources, so I temporarily paused it to make room for new experiments.</p><p>The server runs K3s for container orchestration. I admit that I have a personal preference for Kubernetes even when it is not strictly necessary, but <strong>you do not need Kubernetes to run Hermes</strong>. It can be installed directly or run with Docker. I used K3s simply because the server was already configured for it.</p><p>An always-on agent still demands some care. Tokens, API keys, and personal data should remain in secrets; Telegram accounts should be explicitly authorized; and the agent should receive only the tool permissions it actually needs. The consequences of a mistake are limited when the agent manages a pantry. Before trusting it with servers, email, or home automation, its operating boundaries need much more deliberate design.</p><h3>Today it knows about eggs. Tomorrow it could manage half my digital life.</h3><p>The current setup covers intentionally simple needs: reminders, pantry tracking, and meal planning. That simplicity is precisely what makes the architecture easy to understand. The same pattern could support much more elaborate workflows.</p><p>I could bring my social publishing bot back as a smarter system. Instead of following a rigid script, Hermes could read the editorial calendar, check what has already been published, adapt the tone for each channel, and schedule posts based on performance and platform guidelines.</p><p>It could also help manage servers and monitor applications. Instead of sending a generic error notification, the agent could inspect container logs and return a useful diagnostic report. It could summarize download metrics, flag anomalies after an update, and bring several services together behind the same conversational interface.</p><h3>Sooner or later, my home will be part of it too</h3><p>Home Assistant is another logical integration. It would let the agent interact with physical home automation: checking device state, setting up an automation on the fly, or sending periodic energy reports without requiring me to manually edit scripts or YAML files.</p><p>For example:</p><blockquote><em>When we leave, turn everything off.</em></blockquote><p>Or:</p><blockquote><em>On the last day of every month, send me a summary of our electricity consumption.</em></blockquote><p>And:</p><blockquote><em>When I get home, remind me to defrost the chicken.</em></blockquote><p>Voice input, language understanding, and state management make this more flexible than a traditional voice assistant. A single voice message could contain several instructions — mark a product as finished and set a timed reminder, for example — while the agent separates the requests, updates the appropriate data, and replies concisely.</p><h3>I don’t want to build Jarvis. I want an assistant that remains useful after the demo.</h3><p>The value of this experiment lies in whether it remains useful in everyday life. Today my setup manages the cat’s water fountain, tracks ingredients, and suggests dinner. Tomorrow it could monitor services for my apps, summarize project metrics, publish on social media, or create home automations.</p><p>The most interesting thing about agents is not an impressive technical demo. It is the possibility of building an incremental system that understands context, uses the tools available to it, and keeps doing its job after the chat window is closed.</p><p>What would you trust an agent like this to manage?</p><p><em>Originally published at </em><a href="https://www.andreadigiacomo.dev/en/blog/agente-ai-telegram-casa"><em>https://www.andreadigiacomo.dev</em></a><em> on October 11, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a7850b9fc486" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My PC stays at home. I take it everywhere with me]]></title>
            <link>https://medium.com/@andreadigiacomo.dev/my-pc-stays-at-home-i-take-it-everywhere-with-me-41b26e237c4c?source=rss-b4579cc19a40------2</link>
            <guid isPermaLink="false">https://medium.com/p/41b26e237c4c</guid>
            <category><![CDATA[smart-glass]]></category>
            <category><![CDATA[gaming]]></category>
            <category><![CDATA[streaming]]></category>
            <category><![CDATA[remote-working]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Andrea Di Giacomo]]></dc:creator>
            <pubDate>Tue, 08 Sep 2026 00:00:17 GMT</pubDate>
            <atom:updated>2026-10-04T12:52:19.934Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*J9x5cKjKfza37Fa9.png" /></figure><p>I’m away from home, maybe on a train or at the beach, and I realize I need a project that’s still on the Mac mini. I open the iPhone, turn on the connection, and a few seconds later I’m looking at the same desktop I’d see sitting at my desk.</p><p>Not a copy. My actual Mac.</p><p>I can open the IDE, edit a file, check a build, and pick up exactly where I left off. The project hasn’t been synced to some service on the fly, and I don’t have to remember which computer has the latest version. It’s still at home. I’m the one who logged in remotely.</p><p>The even crazier part is that I can do the same thing with the PC that has an RTX 5080. So, technically, I can have a 5080 on my iPhone. It’s not actually inside the iPhone, sure, but when the result is gaming or using an AI model from the phone, the difference becomes pretty philosophical.</p><h3>My personal cloud</h3><p>For work, I use RustDesk. It’s the simplest solution when I want to control the Mac mini or one of the PCs as if I were sitting in front of the monitor.</p><p>For gaming, I use Sunshine on the PC and Moonlight on the device I have with me. Basically, I’ve built myself a kind of private GeForce NOW: the computer is mine, the library is mine, and I don’t have to wait for a game to show up in someone else’s catalog.</p><p>It works even when I’m at home. I can start a game on the PC, move to another room, and keep playing from an iPhone, tablet, XR headset, or TV. With a good local network, the experience is so close to the physical computer that after a while I stop thinking about streaming.</p><p>Sometimes I think about people who buy a console because they don’t want to move the PC. If you have a good PC and a good network… you also have a console, you just don’t know it yet.</p><p>The RTX 5080 isn’t just for gaming. On the same computer, I also run local AI models. The GPU does the work at home, while I can control everything remotely. That way I don’t have to run heavy models on the device I carry with me, and I don’t have to upload files or datasets to external services just because I’m traveling.</p><p><em>The device I have with me shows the result. The heavy lifting keeps going at home.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YSD6N-tCefr3ZT2B.png" /></figure><h3>Home comes on first</h3><p>Of course, none of this works if the PC is turned off.</p><p>But I don’t want to leave every machine on day and night. That’s why I connected the system to my <a href="https://www.andreadigiacomo.dev/en/blog/home-assistant">Home Assistant</a> automations. When I need a device, I can turn it on remotely; when I’m done, I shut it down normally.</p><p>Home Assistant has become a kind of digital butler. I decide which machine I need, it takes care of getting it ready, and right after that I can connect with RustDesk or Moonlight.</p><p>The exact way a computer turns on depends on the hardware and configuration. The interesting part, though, is the result: I don’t have to keep everything on all the time, and I don’t have to be physically in front of the PC to make it available. I can turn on anything, except the Beko air conditioner.</p><h3>The front door doesn’t stay open</h3><p>To reach the computers, I use WireGuard, configured directly on my ASUS RT-BE92U router.</p><p>WireGuard creates a private connection between the device I have with me and my home network. First I activate the VPN, then I open RustDesk, Moonlight, or the AI model interface. I don’t expose those services directly to the Internet, and I don’t have to keep track of a whole collection of open ports on the router.</p><p>The router setup was pretty simple: I enabled the WireGuard server and created a profile for each device. If I lose a phone, I can disable just that profile without changing everything else.</p><p>It’s probably the least flashy part of the whole setup, but it’s the one that lets me use it with peace of mind. First I build a private road home; only then do I reach my computers.</p><p><em>One protected entrance, then all my devices.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sOUmgG-c0mv-SUaM.png" /></figure><h3>The monitor that fits in your pocket</h3><p>One problem remained: using a computer desktop on a phone screen is not exactly the height of convenience.</p><p>That’s where the Viture Beast glasses come in. I connect them to the iPhone and a sharp monitor appears in front of my eyes, which I can also use in ultrawide mode. Add a Bluetooth keyboard and mouse, and I have a complete workstation that takes up very little space in my backpack.</p><p>If I open Moonlight and connect a controller instead, that monitor becomes a huge screen for gaming on the home PC. During a flight, I can also use it to watch a pre-downloaded movie without bending my neck over the phone or relying on the tiny seatback screen. I love them.</p><p>This is the part that makes everything feel a bit like science fiction: I pull a phone out of my pocket, put on the glasses, and I can choose whether to open the Mac mini, play with the RTX 5080, or work with local AI.</p><p>The computers are still at home. I can be practically anywhere.</p><h3>What you need to build it</h3><p>You don’t need to replicate my exact devices. The idea is made up of just a few pieces:</p><ul><li>a computer that’s on or that you can turn on remotely (Wake-on-LAN);</li><li>a secure connection back home, in my case WireGuard;</li><li>RustDesk for the desktop or Sunshine and Moonlight for streaming/gaming;</li><li>a decent connection, especially upload at home;</li><li>the client you prefer: laptop, tablet, phone, or TV.</li></ul><p>The glasses, keyboard, and mouse turn the whole thing into a real portable office, but they’re not required. You can start with two computers on the same network, try Moonlight from the couch, and add the rest little by little based on your needs.</p><p>It doesn’t always work like magic: a slow network is noticeable, and a computer that gets stuck after an update stays stuck even a thousand kilometers away. But when every piece is in the right place, it really feels like having all your computers with you at all times.</p><p>Without carrying them anywhere.</p><p><em>Originally published at </em><a href="https://www.andreadigiacomo.dev/en/blog/ufficio-in-tasca"><em>https://www.andreadigiacomo.dev</em></a><em> on September 8, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41b26e237c4c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I gave an AI agent a coding task-inside GitHub | Andrea Di Giacomo]]></title>
            <link>https://medium.com/@andreadigiacomo.dev/i-gave-an-ai-agent-a-coding-task-inside-github-andrea-di-giacomo-4c89e93af781?source=rss-b4579cc19a40------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c89e93af781</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[workflow]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Andrea Di Giacomo]]></dc:creator>
            <pubDate>Tue, 01 Sep 2026 00:00:42 GMT</pubDate>
            <atom:updated>2026-09-02T13:15:12.778Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0grc5gsshjahlO1A.png" /></figure><p>I use an AI-powered script to research trending topics and surface ideas worth exploring. That is how GitHub Agentic Workflows first appeared on my radar.</p><p>GitHub released <a href="https://github.blog/changelog/2026-06-11-github-agentic-workflows-is-now-in-public-preview/">Agentic Workflows in public preview</a> on June 11, 2026. They allow an AI agent to operate inside GitHub Actions-the system GitHub uses to run automated jobs.</p><p>That immediately caught my attention. This was not just another way to ask an AI for code in a chat window. It meant placing the agent directly inside the process a team already uses to describe, review, and approve software changes.</p><p>I set out to answer one question: could I describe a task in a GitHub issue, let an agent prepare the change, and then guide it through an ordinary code review?</p><p>After some setup, I created two workflows and gave each one a command: /solve assigned an issue to the agent, while /fix-review asked it to address feedback on a pull request.</p><p>Then I typed /solve in a GitHub issue and waited.</p><p>About nine minutes later, the agent had changed the code and opened a draft pull request for me to inspect. When I raised a concern during review, it reworked the solution and added another commit to the same PR.</p><p>I never copied code out of a chat, opened an IDE, or manually fed the agent files and context.</p><p>That was the <strong>WOW</strong>.</p><p>The <strong>MEH</strong> was how unfinished parts of the experience still felt. The job UI made it hard to separate useful status information from technical noise. My existing Codex access did not cover the workflow, so I had to use separately billed APIs. And the agent still made some surprisingly basic mistakes.</p><p>This article covers both sides.</p><h3>Three terms before we continue</h3><p>The entire experiment took place on GitHub. If that is not where you spend your working day, these three definitions are enough:</p><ul><li>An <strong>issue</strong> is a ticket describing a task or problem.</li><li>A <strong>pull request</strong>, or PR, is a proposed change to the code.</li><li>A <strong>review</strong> is where someone examines that proposal and either approves it or asks for changes.</li></ul><p>Normally, a developer reads the issue, writes the code, and opens the pull request. In this experiment, the AI agent handled the work in between.</p><h3>What I built</h3><p>I created a <a href="https://github.com/trisgerra/github-agentic-workflow">small public repository</a> and two custom commands:</p><ul><li>/solve asked the agent to resolve an issue and prepare a draft PR;</li><li>/fix-review asked it to apply feedback left during review.</li></ul><p>A draft PR is simply a proposal that is not ready to merge yet. The agent could prepare and update it, but it could not approve its own work or release anything to production. That decision remained mine.</p><p>The full loop looked like this:</p><pre>I describe the task → AI proposes code → I review it → I request changes → AI updates the proposal → I approve and merge it</pre><p>The most compelling part was not the AI in isolation. It was the combination of an agentic workflow and conventional GitHub Actions.</p><p>The agentic part can interpret an open-ended request and come up with a new solution. Traditional Actions can enforce exact, repeatable checks: which files may change, which tests must pass, and which operations are allowed. One proposes; the other verifies and constrains.</p><p>We do not have to choose between the flexibility of generative AI and the predictability of deterministic automation. The same workflow can give us both.</p><h3>Test one: turning a request into code</h3><p>I opened an <a href="https://github.com/trisgerra/github-agentic-workflow/issues/27">issue</a> requesting a new/hello endpoint in a small web application. Then I left a comment:</p><pre>/solve</pre><p>GitHub added a 👀 reaction to confirm that it had received the command. Soon afterward, a link appeared where I could follow the agent’s progress. When the run finished, <a href="https://github.com/trisgerra/github-agentic-workflow/pull/28">draft PR #28</a> contained the proposed implementation.</p><p>The run took roughly nine and a half minutes and consumed 10.36 AI credits-just over ten US cents at GitHub’s stated conversion rate.</p><p>The exact figure is not the point; it will vary from one task to another. What matters is that every attempt has a measurable cost.</p><h3>Test two: requesting a correction</h3><p>In another pull request, I had asked the agent to add a test. Its code worked, but I disliked the approach: to make the test easier to write, the agent had also changed the application itself.</p><p>It was not strictly a bug. It was a plausible design choice that needed human judgement-and one I personally did not want to accept.</p><p>Instead of fixing the branch myself, I wrote this in the pull request:</p><pre>/fix-review Keep this pull request test-only. Revert every change to src/app.js and do not export or extract a production handler solely for testing. Mock the express module in src/tests/app.test.js, capture the handler registered by createApp for GET /health, invoke that captured handler directly with a mocked response object, and assert status(200) plus json({ status: &quot;ok&quot; }). Do not start a server, bind a port, use fetch, or make network requests. The final diff must modify only src/tests/app.test.js.</pre><p>The first run failed because of a workflow problem. Once I fixed the configuration, the <a href="https://github.com/trisgerra/github-agentic-workflow/actions/runs/30358305486">second attempt</a> succeeded. The agent added a commit to the <a href="https://github.com/trisgerra/github-agentic-workflow/pull/26">same pull request</a>, this time changing only the test.</p><p>That correction took about seven minutes and consumed 6.10 AI credits.</p><h3>WOW: what impressed me</h3><h4>GitHub became the interface for the AI</h4><p>I did not need a separate chat, a manual handoff, or a round trip through my IDE. The request, implementation, code, and feedback all stayed in the same place where the team already collaborates. For teams with many contributors, that shared visibility matters.</p><h4>The conversation produced something verifiable</h4><p>The output was not a snippet waiting to be copied. It was a pull request with a diff, history, and tests-a proposal I could inspect before accepting it.</p><h4>Review became another input</h4><p>The initial code generation was not the most interesting part. What impressed me was leaving feedback on the PR and watching the agent revise the same work without losing the surrounding context.</p><h4>The process stayed visible</h4><p>Commands, logs, failures, and code changes were available to the whole team. The agent’s work did not disappear into a private chat inside someone’s IDE.</p><h4>Generative AI and guardrails can work together</h4><p>The agent can tackle a problem whose solution has not been specified in advance. Around it, regular Actions continue to enforce deterministic rules. That combination-freedom in the proposal, strictness in the checks-is what makes this model credible for a real repository.</p><h3>MEH: where the experience still feels rough</h3><h4>The job UI exposes too much noise</h4><p>A lot happens during a run: agent reasoning, tool calls, checks, logs, and workflow output all compete for attention in the same view. If all you need to know is “Is it running, blocked, or done?”, the interface is more complicated than it should be.</p><p>I would prefer a much cleaner overview showing status, current activity, result, and cost. Tool calls, raw logs, and diagnostic details should remain available, but one level deeper for people who actually need to investigate.</p><h4>My Codex access did not cover the workflow</h4><p>I could not connect my existing Codex access directly to this experiment. I had to use APIs with separate usage and billing. Even if you already use Codex, you still need to configure another access path and keep an eye on a separate budget.</p><h4>Failed attempts still cost time and money</h4><p>When a run fails, you have to read the logs, correct the workflow, and pay for another attempt. That trade-off becomes unattractive very quickly when the underlying change would take only a few minutes to make by hand. Building an entire project through Agentic Workflows alone would be unnecessarily expensive.</p><h4>The agent can make basic mistakes</h4><p>In the /health example, the solution worked, but it changed application code solely to make a test easier. Other attempts produced less subtle mistakes. The agent can misunderstand the context or choose an approach that a developer would immediately recognise as wrong or unnecessarily messy.</p><p>Would that happen less often in a better organised repository, with stronger conventions, tests, and written instructions? Possibly. My lab was deliberately minimal, so this experiment cannot answer that question. It is something I would like to test next.</p><h4>It moves work rather than eliminating it</h4><p>The human spends less time typing code, but more care is needed when describing the task and reviewing the result. That matters because real-world requirements are often incomplete and surrounded by unknowns.</p><h3>Would I actually use it?</h3><p>Definitely-but not for everything, and not always for writing product code.</p><p>I would use Agentic Workflows for bounded, repeatable tasks with outcomes that are easy to verify: a small change, a documentation update, or a test with a clear expected result. In those situations, receiving a ready-to-review pull request can remove real work.</p><p>I would avoid them when requirements are ambiguous, the architectural choice is delicate, or checking the output takes longer than implementing the change. I would also skip them for something I could finish myself in a few minutes.</p><p>The real result of this experiment is not “AI can write code.” We already knew that. It is that AI can participate in an existing delivery process: receive a request, propose a change, respond to feedback, and try again.</p><p>My overall view is strongly positive. I think Agentic Workflows are fantastic, but they will not-and should not-replace deterministic scripts. A traditional script is still the right tool when every step is known in advance and must run the same way every time.</p><p>Agentic Workflows open a different category of use cases: work that requires interpreting context, choosing a path, and producing an answer that cannot be fully specified ahead of time.</p><p>The real opportunity lies in combining the two. Let the agent handle the ambiguous, generative work; let deterministic scripts validate the result and enforce precise boundaries. This is not the end of traditional automation. It is another layer built on top of it-and, in my opinion, we are only getting started.</p><p>The complete repository is available at <a href="https://github.com/trisgerra/github-agentic-workflow">trisgerra/github-agentic-workflow</a>.</p><p><em>Originally published at </em><a href="https://www.andreadigiacomo.dev/en/blog/agentic-workflows-esperimento"><em>https://www.andreadigiacomo.dev</em></a><em> on September 1, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c89e93af781" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Who Reviews the Code No One Really Knows Anymore?]]></title>
            <link>https://medium.com/@andreadigiacomo.dev/who-reviews-the-code-no-one-really-knows-anymore-c84aeb2a5716?source=rss-b4579cc19a40------2</link>
            <guid isPermaLink="false">https://medium.com/p/c84aeb2a5716</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Andrea Di Giacomo]]></dc:creator>
            <pubDate>Tue, 25 Aug 2026 00:00:50 GMT</pubDate>
            <atom:updated>2026-08-25T15:15:14.222Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WVx6PrlKuxSHOjVO.png" /></figure><blockquote>Disclaimer: The views expressed in this article are solely my own and do not represent the views of my employer.</blockquote><p>The patch is ready in just a few minutes. The tests pass, the pipeline is green, and the AI-generated comment explains with remarkable confidence why everything should work.</p><p>One “small” detail remains: figuring out whether the code is actually production-ready or whether it hides issues the tests did not anticipate.</p><p>Thanks to AI, I can now work across a much broader technical surface than I could a few years ago. I can step into an unfamiliar repository, have a CI/CD pipeline explained to me, change a policy I have never seen before, or find my way around a language I barely know.</p><p>Even when I complete the task successfully, though, I do not automatically gain real mastery of that area.</p><p>Generating code has become cheap, while verifying it, placing it in the right context, and taking responsibility for the consequences still require real experience and knowledge-perhaps even more than before.</p><p>That is where the paradox begins: AI reduces the time needed to make changes to a system, but it also risks reducing the time spent understanding it. We become operational before we become competent and, by immediately moving on to the next task, that competence may never fully develop.</p><p>This leaves us in a vicious cycle: knowledge is needed to control what we produce, but the way we produce it leaves less and less room to build that knowledge.</p><p><em>This article continues the reasoning started in </em><a href="https://www.andreadigiacomo.dev/it/blog/ai-codice-produttivita"><em>AI helps me write more code. But does it really make me more productive?</em></a><em> and explored from an operational perspective in </em><a href="https://www.andreadigiacomo.dev/it/blog/pull-request-piccole"><em>Small pull requests: how to make review simple</em></a><em>. A small change is easier to read, but the key question remains: who has the expertise needed to approve it?</em></p><h3>AI has expanded my work, not my day</h3><p>In the past, I could call myself a generalist, or full stack developer, while still maintaining a recognizable specialization in frontend development.</p><p>Even that definition involved a certain degree of self-indulgence. Frontend development includes accessibility, design systems, frameworks, testing, performance, browser compatibility, rendering, build systems, caching, and nginx configurations. You can spend an entire career in this area alone without running out of things to learn.</p><p>Being specialized does not mean remembering every piece of syntax. It means knowing the ways a system tends to break, the hidden reasons behind certain conventions, the acceptable trade-offs, and what needs to be checked before going to production.</p><p>For me, being full stack meant moving across different layers of the architecture while retaining at least one area where I could effectively evaluate a solution, not merely build it.</p><p>Today, a senior software engineer’s day may start with JavaScript, continue with Python, and end among CI/CD, containers, security, microservices, Kafka, monitoring, Kubernetes, and Helm. In the meantime, they need to review other people’s work, help those who have just joined the project, and reopen repositories nobody has touched in years.</p><p>AI makes almost every step approachable and has lowered the initial cost of contributing. Even with very little knowledge of the technical area, it is now possible to produce a plausible, polished result that can make its way into a pull request.</p><p>The hours available and human memory, on the other hand, have stayed the same.</p><p>I can move across more contexts, but I cannot retain all of them with the same depth. The risk is mistaking this operational breadth for expertise: if I can produce something in ten areas, then I must also be able to evaluate it in all ten.</p><p>That is not how it works.</p><p>Things were not working perfectly before either: silos, legacy software, and technical debt existed long before generative models. AI did not create these weaknesses, but it has made it easier to cross architectural boundaries, accelerating both solutions and mistakes.</p><p>This is where the real bottleneck emerges: AI reduces the cost of production, but not the cost of verification to the same extent.</p><p>Verification does not just mean getting a green CI build. You need to understand whether the change respects the architecture, introduces appropriate dependencies, can be safely rolled back, and what effects it will have where the tests do not reach: on other services, existing functionality, and overall maintainability.</p><p>A patch can be valid, elegant, and well commented. It can even solve the case described in the story and still be unsuitable for the ecosystem where it will have to live.</p><p><strong>We are all experts when it comes to other people’s AI.</strong></p><p>When a colleague uses AI in our field, we can spot the avoidable abstraction, the test that does not prove what it claims to prove, or the solution that is incompatible with the rest of the architecture. In some cases, I have written reviews that looked like books.</p><p>When we are the ones entering unfamiliar territory, a plausible answer can seem correct precisely because we know too little about the subject to spot its flaws. That does not make us incapable developers: it is like asking a Formula 1 driver to race in motocross. They know how to drive, but the vehicle, the techniques, and the risks are different.</p><p>The <a href="https://cloud.google.com/blog/products/ai-machine-learning/announcing-the-2025-dora-report">2025 DORA report</a> shows a similar tension. In the sample analyzed, AI adoption is associated with increased delivery speed, but also with lower stability. It does not prove that AI causes instability, but it reminds us that speed and reliability do not automatically improve together.</p><p>The <a href="https://docs.github.com/en/copilot/responsible-use/agents">GitHub Copilot documentation</a> also warns that generated code may be incorrect, may not truly solve the problem, or may contain vulnerabilities. The tool that saves us time during production reminds us that someone will still have to spend time reviewing it.</p><h3>The story I had solved without learning Rego</h3><p>I encountered this boundary while working on a story that required writing policies in Rego, the language used by Open Policy Agent to express policy decisions over structured data.</p><p>Rego was outside my specialization, but AI helped me understand its essential concepts, navigate the syntax, and build a working solution. It allowed me to quickly get past that initial stage where you know too little about the subject even to ask the right questions.</p><p>The story moved forward and the code worked. I could have said that I had learned Rego, but that would have been objectively false.</p><p>The difference between being operational and being competent emerged during the review. At least in that case, AI handled Rego much worse than more widespread languages such as JavaScript or Python. People with more experience in that area found real edge cases and inefficiencies, not merely stylistic preferences. Their input was essential to bring the policy to a level appropriate for the project.</p><p>I had gained enough understanding to work on the task, change the code, and discuss it, but not the depth required to independently recognize all the flaws in the solution.</p><p>AI had expanded my range; a specialist’s review had made the result reliable.</p><p>I do not consider the episode a failure, but a good use of AI: I completed the story, learned new concepts, and received a competent review before my partial understanding turned into a permanent change.</p><p>Over time, though, I remember very little of Rego syntax. What has remained is mostly a lesson: learning just enough to solve a problem is not the same as having the expertise needed to evaluate every consequence.</p><p>I observed something similar when updating the RPCs of a service within a group of connected microservices. I had only touched that ecosystem to change a few lines several years earlier. In a few moments, AI gave me a plausible map of the relationships between the services and allowed me to move quickly.</p><p>The real difficulty was verifying that the map was correct and understanding which other components might be involved.</p><p>The local change was the cheap part; reconstructing the distributed context was the expensive one.</p><p>The fact that AI allowed me to quickly enter an area I knew little about does not remove the risk just because the diff contains only a few lines.</p><p>A small pull request remains preferable to a huge change because it makes the work easier for those who know the affected area. Readability, however, does not replace the preparation needed to review effectively and discover whether that changed line can impact another service.</p><p>You still need someone who understands what those lines mean for the architecture as a whole.</p><h3>When everyone can make changes, who can approve them?</h3><p>When working outside your own area stops being an exception, the human ability to retain different contexts does not increase accordingly. This is not a personal limitation to fix, but a constraint we need to learn to manage.</p><p>AI can accelerate the first implementation without making full delivery faster. Reviews take more time, relationships between different components must be reconstructed, and it becomes less clear who has the appropriate expertise to make a decision.</p><p>Those who work in the same area every day quickly recognize the flaws in a pull request. They know the previous decisions, the fragile points, and the reasons behind conventions that may seem arbitrary from the outside.</p><p>When their scope expands, retrieving knowledge they do not use every day takes more time. Even a change in a familiar area may require reconstructing the context and distinguishing an intentional evolution from an accidental deviation.</p><p>You do not need an incident to observe the effect: reviews slow down, decisions require more discussion, and an increasing share of the work consists of recovering information that was once immediately available.</p><p>Tests protect the expectations we have managed to encode. They do not preserve 100% of the knowledge that produced those choices, they do not automatically protect design consistency, and they do not catch every regression.</p><p>The software can keep working while the cost emerges in the time needed to understand it and change it safely.</p><h3>Smaller teams, broader scopes</h3><p>This tension becomes stronger when the number of people decreases but the complexity that needs to be maintained does not.</p><p>Since 2022, the technology sector has been going through a long wave of layoffs, documented by the public tracker <a href="https://layoffs.fyi/">Layoffs.fyi</a>. The causes are not all the same: the end of the extraordinary growth seen during the pandemic, rising costs, restructurings, cancelled projects, and the search for greater efficiency.</p><p>In 2023, Meta announced the reduction of around 10,000 jobs and the closure of 5,000 still-open positions. In its <a href="https://about.fb.com/news/2023/03/mark-zuckerberg-meta-year-of-efficiency/">“Year of Efficiency”</a> message, Mark Zuckerberg explicitly discussed a smaller, flatter, and more technical organization. In the same document, he also mentioned AI tools to help engineers write code faster.</p><p>This does not prove that AI caused those layoffs. Team reductions were already underway and had broader economic reasons. In the following years, however, the link between AI, productivity, and smaller headcounts became explicit.</p><p>In 2025, Andy Jassy wrote to Amazon employees that widespread AI adoption would require fewer people for some activities and that, thanks to efficiency gains, the company expected a <a href="https://www.aboutamazon.com/news/company-news/amazon-ceo-andy-jassy-on-generative-ai">reduction in its corporate workforce</a> in the years ahead.</p><p>The data from Challenger, Gray &amp; Christmas also call for caution, but show that the phenomenon is not merely rhetoric: since 2023, when it began tracking this reason, AI has been cited in announcements involving <a href="https://www.challengergray.com/blog/2025-year-end-challenger-report-highest-q4-layoffs-since-2008-lowest-ytd-hiring-since-2010/">more than 71,000 cuts</a>. This is the reason stated by companies, not proof that every role was directly replaced by a model.</p><p>The point, then, is not to argue that every layoff is driven by AI, but to observe what happens when the idea of smaller teams meets tools that promise to expand each person’s work.</p><p>Repositories do not shrink by half along with headcount. Pipelines, services, security policies, and production applications remain; the knowledge needed to manage them is distributed among fewer people, each responsible for a broader scope.</p><p>The more we work outside our specialization, the more our dependence on AI grows. At the same time, the need for people capable of verifying what is produced increases: we disperse the expertise required for oversight just as we multiply the amount of code to examine.</p><h3>The assistant knows the manual, not the building</h3><p>Imagine a construction site after a reorganization: the teams of electricians, plumbers, and bricklayers have been cut in half. The building has not.</p><p>In the morning, the plumber repairs a pipe; after lunch, they work on the electrical system; and in the afternoon, they build a wall. Between one job and the next, they review their colleagues’ work, train new hires, and try to remember where they left off.</p><p>To help them, they are given an assistant who knows every manual, perhaps better than anyone else on the site. It knows how to explain how to build a wall and recommend generally suitable materials. What it knows less about is that particular building: which walls need to bear weight, what changes have been made over the years, and why some seemingly strange choices were necessary. So it may suggest hollow bricks exactly where reinforced concrete is needed.</p><p>The wall still goes up. The difference only becomes clear when it has to bear weight. The hope is that an experienced bricklayer notices before someone builds on top of it.</p><h3>AI can write the code. It cannot take responsibility</h3><p>The point is not to prevent people from working outside their specialization, but to stop confusing the ability to make a change with the expertise needed to understand and approve it.</p><p>Nor is it a matter of junior versus senior. A junior who is properly supported can use AI to learn faster. A senior spread across too many domains can confidently approve a change they only partially understand.</p><p>AI expands the number of things we can build, but it does not take responsibility for the consequences. That remains with people, who need time to understand what they are approving.</p><p>How long until AI can review a change with the reliability of an expert who truly knows that system? We do not know.</p><p>In the meantime, are we using AI to expand our expertise, or to convince ourselves that we no longer need it?</p><p><em>Originally published at </em><a href="https://www.andreadigiacomo.dev/en/blog/controllare-codice-ai"><em>https://www.andreadigiacomo.dev</em></a><em> on August 25, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c84aeb2a5716" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Helps Me Write More Code. Does It Really Make Me More Productive?]]></title>
            <link>https://medium.com/@andreadigiacomo.dev/ai-helps-me-write-more-code-does-it-really-make-me-more-productive-a3990c9493bf?source=rss-b4579cc19a40------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3990c9493bf</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[code-review]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Andrea Di Giacomo]]></dc:creator>
            <pubDate>Tue, 18 Aug 2026 00:00:50 GMT</pubDate>
            <atom:updated>2026-08-19T07:46:13.323Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VeX9rvQxYg4-VV3J.png" /></figure><blockquote>The views expressed in this article are solely my own and do not represent the views of my employer.</blockquote><p>I love developing with AI. That is precisely why I have started to distrust the feeling of speed it creates.</p><p>An assistant can modify a frontend, propose a migration, and change the pipeline before I have even reconstructed the full context. It is exciting. But code can appear in the editor faster than I can understand it, and a change I do not understand is not truly finished: it has merely moved the work to a later stage.</p><p>I do not want to use less AI. I want to prevent its speed from exceeding my ability to prove that the code deserves to remain in the project.</p><h3>The first draft can be faster. Software cannot.</h3><p>The fact that AI can speed up a well-defined task is not just a feeling. In an <a href="https://github.blog/news-insights/research/research-quantifying-github-copilots-impact-on-developer-productivity-and-happiness/">experiment published by GitHub</a>, the company behind Copilot had 95 professional developers tackle a specific JavaScript task: the group using the assistant completed it 55% faster on average.</p><p>That is an important result. It does not, however, measure everything that happens before and after that implementation.</p><p>When the work moved to real repositories already familiar to participants, an <a href="https://metr.org/blog/2025-07-10-early-2025-ai-experienced-os-dev-study/?stream=top">RCT by METR</a> produced a very different result. Sixteen experienced open-source maintainers worked on 246 tasks in their own projects using the tools available between February and June 2025. When they were allowed to use AI, they took 19% longer.</p><p>The study does not measure less experienced developers or people working with unfamiliar repositories. The authors note that AI could be useful precisely in those contexts, and it probably is for getting oriented and producing an initial solution. It is also where I see the greatest risk: someone who knows little about the project may be faster with AI, but has fewer tools to recognize an inconsistent change, assess its quality, or foresee its consequences. The result could be a faster initial implementation, with the cost paid later through review, rework, or technical debt.</p><p>There is no clear winner between the two studies. The people, tools, and nature of the work differ. A bounded task rewards how quickly someone reaches a plausible solution. A real repository requires finding the right place to make a change, respecting local conventions, avoiding regressions, and evaluating consequences that often do not appear in the prompt.</p><p>Coding assistant performance changes rapidly, so neither result is a universal verdict. Together, however, they make one useful question clear: <strong>who becomes more productive, on what kind of work, and who pays for the time saved?</strong></p><p>Generation speed measures how quickly I get a proposal. End-to-end productivity includes the time needed to understand it, test it, review it, deploy it, and change it in the future. AI can improve both, but it can also improve the first by offloading the cost onto all the others.</p><p>And it is in testing that this transfer becomes harder to see.</p><h3>The hidden cost of verification</h3><p>A green test suite has enormous psychological power. It seems to close the discussion: the test passes, so the code works and is protected.</p><p>In my work, I have seen an AI-generated test mock the return value of the very function it was supposed to verify. The test called the mock and checked that its result matched the value configured in that same mock.</p><p>Needless to say, the test always passed, because the function body was never executed. It would have remained green with an incorrect or even empty implementation.</p><p>The problem was not the use of a mock. It was where it had been placed. The test should have run the real function and mocked only the external HTTP dependency. Instead, it removed the very behavior it was meant to check. I see this happen less often with newer models, but it can still happen.</p><p>I have also seen the opposite happen. After an unintended regression caused by AI, a test correctly failed because it still represented the desired outcome. The AI suggested adapting its expectation to the new behavior. The pipeline would have turned green again, but only because the definition of success would have been rewritten around the defect. In a vibe coding workflow approved without careful review, that change could have ended up in the pull request or in users’ browsers.</p><p>This is where a subtler risk lies: code and tests can share the same conceptual mistake.</p><p>If a user story is wrong or ambiguous, the problem starts before AI and before the developer: it needs to be clarified. The more interesting case is when the story is correct, but the code and tests are produced from the same incomplete interpretation. AI makes it very cheap to generate correlated artifacts that are perfectly consistent with each other, even when they protect the wrong behavior.</p><p>A <a href="https://arxiv.org/abs/2607.05139">2026 preprint on test generation with LLMs</a> studied exactly this possibility on incorrect implementations selected from three Python benchmarks. In the agentic workflow, where the model generated tests after the code while retaining the conversation, the tests detected around 14% of defects. In a new interaction based only on the specification, that figure rose to 25%. This is not a universal measure of the quality of AI-generated tests, but it makes a crucial distinction concrete: showing the implementation to the model can reduce the independence of verification.</p><p>For several years, I was one of the go-to people for a portal for which I wrote around 1,200 unit tests and several dozen end-to-end tests. Despite the service’s complexity, I slept soundly. I knew that 95% coverage had not come from adding tests to chase a percentage: it was the result of TDD-driven work, built to protect real system behavior.</p><p>A red test would have immediately alerted me to either a problem or a behavior that needed evaluation. The confidence did not come from the number itself, but from knowing why those tests existed and what they were defending.</p><p>This is where I find a hybrid approach to TDD interesting: the developer first defines the behavior to protect and uses AI to reach the implementation. The assistant can contribute to the tests too, but it should not decide on its own what success means. The point is not to defend a test-first ritual. It is to keep a reference point external to the generated code.</p><h3>Who pays for verification</h3><p>The problem does not end with tests. With AI, it is easy to confuse the ability to get an answer with the ability to evaluate it. I can become productive very quickly when working with a new technology and feel competent before I have faced the decisions, mistakes, and consequences that truly build that competence.</p><p>It is a bit like driving a Formula 1 car in a simulator. I can learn the track and the controls on the steering wheel, but that does not mean I am ready to race in a Grand Prix. AI can help me understand a new technology and take the first steps much faster; experience, however, is built over time by making decisions yourself, without delegating every step to the assistant.</p><p>When the assistant changes many files at once, I can still read the diff, but I have to reconstruct the intent, assumptions, and consequences afterward. If I open the pull request anyway, that work moves to the reviewer.</p><p>It is a dynamic I know well from the other side of the pull request too. When I receive a very large diff, I do not just need to check whether the code works. I need to reconstruct the problem, understand why that solution was chosen, and distinguish the developer’s decisions from those the assistant made in their place. Sometimes I realize I would have spent less time building the solution alongside the author than taking it apart during review.</p><p>This is the situation that concerns me most. We have accelerated generation, but not the overall work: we have simply chosen who will have to deal with it.</p><p>Review does not disappear. It becomes the point where all the understanding skipped earlier resurfaces.</p><h3>Before opening the pull request</h3><p>The level of scrutiny cannot be the same for a local kata and for a change involving authentication, payments, databases, infrastructure, or CI/CD.</p><p>I do not think we need to invent a new methodology. Small pull requests, author ownership, quality gates, and involving a specialist are already practices in mature teams. One possibility would be to clarify how to apply them to AI-assisted development in the <strong>Team Level Agreement (TLA)</strong>. For example, a risky change could start from acceptance criteria independent of the generated code. When implementation and tests change together, it would be useful to make explicit which behavior has changed and why. Whoever opens the pull request should still be able to explain the diff without asking the assistant to do it for them.</p><p>We could call it an AI section, a working agreement, or an AI Technical Contract. The name is secondary: the idea is to prevent the speed of whoever generates code from becoming invisible work for those who will have to verify and maintain it.</p><p>I still love AI, and I do not want to go back to developing without it. But I have stopped measuring its value by the amount of code that appears in the editor. I want to know how much work it has actually eliminated and how much it has left to others.</p><p>Code generated in a few minutes can remain in the project for years. The question I ask myself today is very simple: once the excitement of the initial generation has passed, will we still be able to understand and maintain it?</p><p><em>Originally published at </em><a href="https://www.andreadigiacomo.dev/en/blog/ai-codice-produttivita"><em>https://www.andreadigiacomo.dev</em></a><em> on August 18, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3990c9493bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Small pull requests: how to make review easy]]></title>
            <link>https://medium.com/@andreadigiacomo.dev/small-pull-requests-how-to-make-review-easy-ac4082b48a9d?source=rss-b4579cc19a40------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac4082b48a9d</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[clean-code]]></category>
            <category><![CDATA[beginners-guide]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Andrea Di Giacomo]]></dc:creator>
            <pubDate>Tue, 11 Aug 2026 00:00:14 GMT</pubDate>
            <atom:updated>2026-08-19T07:51:40.671Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6wmo9sjvA9wwmsxy.png" /></figure><blockquote>The views expressed in this article are solely my own and do not represent the views of my employer.</blockquote><h3>A pull request should not be an investigation</h3><p>In the article about <a href="https://www.andreadigiacomo.dev/it/blog/branching-strategy">branching strategy</a>, we created a branch — a separate line of work — to avoid modifying the stable version of the project directly.</p><p>Now we need to bring that work back into main, the project&#39;s main line. On GitHub, we do this with a <strong>pull request</strong>: a page that shows the changes and lets us review them before merging them.</p><p>We will use a project we already know. In the guide to <a href="https://www.andreadigiacomo.dev/it/blog/nodejs">Node.js and Express</a>, we built a small server. When visiting /health, the server responded with {&quot;status&quot;:&quot;ok&quot;} to confirm that it was running.</p><p>Let’s take one more step: add the /hello address, which will return a greeting, and make the /health response clearer. In a server, these addresses are called <strong>endpoints</strong>: they are access points to which we can send a request and receive a response.</p><p>The pull request will contain only this small improvement. Whoever reviews it will immediately know the expected result and how to test it.</p><p>This person is often called the <strong>reviewer</strong>, but there is nothing mysterious about the term: it is simply the person who reads the changes before they are accepted.</p><h3>“Small” means focused</h3><p>There is no universal number of lines beyond which a pull request becomes too large. What matters is how easy it is to understand its purpose.</p><p>A more useful question is: does this pull request have a single, understandable goal?</p><p>In our case, the goal is to make the sample server easier to understand and test. We modify server.js like this:</p><pre>app.get(&#39;/health&#39;, (req, res) =&gt; {<br>  res.json({ status: &#39;ok&#39;, service: &#39;first-api&#39; });<br>});<br><br>app.get(&#39;/hello&#39;, (req, res) =&gt; {<br>  res.json({ message: &#39;Hello by my first Express server!&#39; });<br>});</pre><p>app.get tells Express how to respond when someone visits an address using a browser or another program. res.json sends a response in JSON, a text format made up of names and values. In the first case, we return the status and service name; in the second, we return a greeting message.</p><p>We can verify the result by starting the server with node server.js and visiting:</p><ul><li><a href="http://localhost:3000/health">http://localhost:3000/health</a></li><li><a href="http://localhost:3000/hello">http://localhost:3000/hello</a></li></ul><p>If, while working, we notice other code that needs tidying up, we should not change it “while we’re at it.” We can handle it in a separate branch. This way, the pull request remains focused on a single change.</p><h3>The title and description should guide the review</h3><p>A title like “Updates” says too little. “Adds a greeting endpoint to the Express server,” on the other hand, describes the result.</p><p>The description does not need to become a novel, but it should answer four questions:</p><ul><li>what the problem is;</li><li>what changes;</li><li>how it was verified;</li><li>what is intentionally left out.</li></ul><p>A concrete example:</p><pre>## Problem<br>The sample server exposes only /health and the response does not identify<br>the service.<br><br>## Change<br>Adds /hello with a greeting message and includes the service name in the<br>/health response.<br>## Verification<br>- start the server with node server.js;<br>- open /health and check status and service;<br>- open /hello and check the message.<br>## Out of scope<br>This pull request does not add data, restricted access, or web pages.</pre><p>There is no need to use this exact template. The point is to give the reader a map: why the change exists, what it contains, how to test it, and what we decided not to do.</p><h3>Before requesting a review, reread your diff</h3><p>The first person to review the pull request should be its author.</p><p>On GitHub, the <strong>Files changed</strong> section shows the <strong>diff</strong>, that is, the lines removed and added compared with the starting version. By rereading it file by file, we can find forgotten test messages, unclear names, and accidental changes.</p><p>It is also useful to check:</p><ul><li>that main is on the left and the branch with our work is on the right;</li><li>that the title describes the result;</li><li>that the description still matches the code;</li><li>that the verification steps are repeatable;</li><li>that no passwords, access keys, or private data are present.</li></ul><p>GitHub lets us mark a file as reviewed and leave comments on specific lines. In the end, the reviewer can approve the pull request or request changes. These tools work well when the change is focused enough to be understood.</p><h3>If it is not ready, open it as a draft</h3><p>Sometimes we want to share the work before it is ready to be merged. In that case, we can open a <strong>draft pull request</strong>.</p><p>It is used to show the approach and start an initial discussion, but even a draft should have a recognizable goal.</p><p>We can do this directly from the site: while creating the pull request, open the menu next to the <strong>Create pull request</strong> button and choose <strong>Create draft pull request</strong>.</p><p>If we already use GitHub CLI, we can achieve the same result from the terminal:</p><pre>gh pr create --draft</pre><p>When the work is complete, the description has been updated, and the tests have been run, we can mark it as ready and ask for a review.</p><h3>Feedback is part of the change</h3><p>A request for changes is not a rejection. It means that the reviewer found a concern, a risk, or a way to make the code clearer before it enters main.</p><p>We can reply in the conversation, modify the code, and create new commits — that is, new saved versions of the change — on the same branch. After we push them, GitHub automatically updates the pull request. When an issue has been addressed, we can mark the conversation as resolved and ask for another review.</p><h3>A good pull request saves reviewers time</h3><p>Before asking for a review, we can use this short checklist:</p><ul><li>one goal;</li><li>a title that describes the result;</li><li>the problem and boundaries in the description;</li><li>concrete verification instructions;</li><li>changed lines reread by the author;</li><li>no unrelated code cleanup;</li><li>a draft if the work is not ready yet.</li></ul><p>A small pull request is not meant to create more bureaucracy. It is meant to make a change understandable, identify risks, and help us decide with confidence whether it can enter the main version.</p><p><em>Originally published at </em><a href="https://www.andreadigiacomo.dev/en/blog/pull-request-piccole"><em>https://www.andreadigiacomo.dev</em></a><em> on August 11, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac4082b48a9d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Branching strategy: how to use Git without creating chaos]]></title>
            <link>https://medium.com/@andreadigiacomo.dev/branching-strategy-how-to-use-git-without-creating-chaos-4d8b5eabfb2c?source=rss-b4579cc19a40------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d8b5eabfb2c</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[beginners-guide]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[Andrea Di Giacomo]]></dc:creator>
            <pubDate>Tue, 04 Aug 2026 00:00:26 GMT</pubDate>
            <atom:updated>2026-08-19T07:55:33.734Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HpODyh8WCFP1t-1y.png" /></figure><blockquote>The views expressed in this article are solely my own and do not represent the views of my employer.</blockquote><h3>We have a project. Now we need to change it</h3><p>In the guide on <a href="https://www.andreadigiacomo.dev/en/blog/git">Git and GitHub</a>, we created a repository, saved our first changes, and uploaded the project to GitHub with our first push.</p><p>Then we looked at the basics of <a href="https://www.andreadigiacomo.dev/en/blog/nodejs">Node.js and Express</a>, enough to understand how a small JavaScript application can come to life.</p><p>At this point, a very practical problem arises: how do we keep changing that project without creating confusion?</p><p>As long as we work alone on a file, we can commit and push directly. When the project grows, or a second person joins us, we need a few more rules. A feature might not be ready. A fix might break something that already works. Two people might change the same part of the code.</p><p>This is where a branching strategy comes in.</p><h3>What a branching strategy is</h3><p>A branching strategy is simply a shared set of rules for using branches.</p><p>It establishes where the stable version of the project lives, where we develop a change, and how that change is checked before it enters the main codebase.</p><p>It is not a special Git feature, and there is no perfect strategy for every team. It is an agreement on how to work.</p><p>The first rule can be this: main contains the stable code. We do not use it as a testing ground, and we do not push unchecked changes directly to it.</p><p>When we want to add something, we create a dedicated branch. For example:</p><pre>git switch main<br>git pull<br>git switch -c feature/login</pre><p>Now we can work on the new feature without immediately changing main. We make small commits and, when we want to share the work, we publish the branch on GitHub.</p><h3>A simple workflow to get started</h3><p>For a small project, we can use a very straightforward process:</p><ol><li>always start from an updated main;</li><li>create a branch for a single change;</li><li>make commits with clear messages;</li><li>publish the branch on GitHub;</li><li>open a pull request;</li><li>review the changes and fix any issues;</li><li>merge into main;</li><li>delete the branch, because its work is done.</li></ol><p>A pull request is not only useful in large teams. It clearly shows what we are about to add to main and keeps the discussion tied to the change. Even when working alone, it can be a good opportunity to reread the code before merging.</p><p>The branch should have a precise goal. feature/login tells us what we are building; fix/menu-mobile indicates what we are fixing. A name like various-changes, on the other hand, is a great way to forget what is inside after two days.</p><p>Duration matters too. If a branch stays open for weeks and contains many different changes, it will be harder to understand, review, and merge. Small steps are better than one huge merge.</p><h3>GitHub Flow, Git Flow, and trunk-based development</h3><p>If we search for “branching strategy”, we will find many names. For now, it is enough to understand the general differences.</p><p><strong>GitHub Flow</strong> uses main and one branch for each change. The branch remains separate while we complete the work; we then open a pull request, review the result, and merge it. The pull request is therefore the central unit of the workflow, and a branch may remain open for a few days.</p><p><strong>Git Flow</strong> adds branches such as develop and dedicated branches for releases and hotfixes. It can be useful when software follows versions and more structured release cycles, but it also introduces more rules and more merges.</p><p><strong>Trunk-based development</strong> enforces an even tighter rhythm: code is integrated into the main branch at least once a day, often several times. Small teams may work directly on the trunk; others still use branches and pull requests, but they should last only a few hours or at most one or two days. Large features are split into minimal changes, while incomplete work is hidden behind feature flags when necessary.</p><p>The difference becomes clearer with a new login page. With GitHub Flow, we might complete it in feature/login and open the pull request when it is ready. With trunk-based development, we would integrate the structure first, then validation, and finally the backend connection, keeping the page disabled until it is usable. GitHub Flow organizes work around the pull request; trunk-based development primarily optimizes how frequently code returns to main.</p><p>We do not need to choose the most sophisticated strategy right away. To begin with, it is more important to have a clear workflow and follow it consistently.</p><h3>The most important rule</h3><p>A good branching strategy should make the repository easier to understand, not more complicated.</p><p>For our initial project, we can therefore keep a few rules in mind:</p><ul><li>main contains the stable version;</li><li>each branch has only one goal;</li><li>before merging, we review the change through a pull request;</li><li>we integrate often and delete finished branches;</li><li>we avoid direct pushes to main when working in a team.</li></ul><p>That is already enough to move from simply using Git commands to a more orderly way of working.</p><p><em>Originally published at </em><a href="https://www.andreadigiacomo.dev/en/blog/branching-strategy"><em>https://www.andreadigiacomo.dev</em></a><em> on August 4, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d8b5eabfb2c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Home Assistant: how I actually automated my home gate]]></title>
            <link>https://medium.com/@andreadigiacomo.dev/home-assistant-how-i-actually-automated-my-home-gate-2863941853dd?source=rss-b4579cc19a40------2</link>
            <guid isPermaLink="false">https://medium.com/p/2863941853dd</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[smart-home]]></category>
            <category><![CDATA[home-assistant]]></category>
            <dc:creator><![CDATA[Andrea Di Giacomo]]></dc:creator>
            <pubDate>Mon, 27 Jul 2026 00:00:36 GMT</pubDate>
            <atom:updated>2026-08-19T07:58:12.093Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zVmzkquVtQpMqyFM.png" /></figure><p>I stopped thinking of Home Assistant as a universal remote when I gave it a decision to make: understand whether I was coming home and open the gate without relying on GPS alone.</p><p>Turning on a light from my phone is convenient, but it is not automation. I am still pressing a button, only on a different screen. The gate forced me to build logic capable of interpreting several signals, remembering what happened a few minutes earlier, and, above all, doing nothing when the context was not clear enough.</p><p>That is where Home Assistant became interesting to me. Not because it collects devices from different brands in one dashboard, but because it lets me treat the home as a system.</p><h3>GPS alone was not a solution</h3><p>The goal sounded simple: when I drive home, the gate should already be open by the time I arrive.</p><p>The obvious first idea is to create a geographic zone around the house. The phone enters the zone, Home Assistant detects its position, and the relay connected to the gate is activated. Three steps and the automation is done.</p><p>The problem is that “the phone is near home” does not necessarily mean “I am arriving by car and want to enter.”</p><p>I might be passing along a nearby road, walking, already at home while GPS corrects its position, or approaching from a different direction. I might also be leaving: proximity to home alone cannot distinguish an arrival from a departure, and I do not want the gate to open while I am driving away. Location updates can also arrive late or jump back and forth across the edge of the zone.</p><p>I needed a second signal, but more importantly, I needed context.</p><h3>Two zones describe a direction</h3><p>In my setup, I use two geographic zones placed along the possible routes toward home. The first one opens nothing: it starts a five-minute timer. If I enter the second while the timer is still active, Home Assistant recognizes the sequence and can infer which direction I am coming from.</p><p>One coordinate describes where I am. Two events ordered in time describe movement.</p><p>If I reach the decision zone without crossing the other one first, the context changes: I may be approaching from the opposite route or leaving home. The logic accounts for that possibility and chooses its behavior based on the observed route instead of reacting blindly to proximity.</p><p>The timer acts as temporary memory. While it is active, the system knows I crossed the first zone recently. After five minutes, that information expires and cannot influence a later trip.</p><p>Five minutes is not a universal value. It is simply a window that works for the distance between my zones and the traffic I normally encounter. If the route changed, I would change the timer too.</p><h3>Android Auto supplies the missing context</h3><p>The zone sequence indicates direction, but it still does not say whether I am driving. That is why I also check the state of Android Auto.</p><p>The Home Assistant Companion App exposes the connection as a binary sensor. When the phone is connected to the car, Home Assistant receives another clue: I am not only near home, I am probably in the car.</p><p>The automation can therefore reason from three elements:</p><ul><li>I crossed the zones in a coherent sequence;</li><li>the sequence occurred within the time window;</li><li>Android Auto is connected.</li></ul><p>Only when those signals agree does Home Assistant send a short pulse to the Sonoff relay wired to the gate control. The relay simulates a button press and immediately returns to its initial state.</p><p>None of these signals would be sufficient on its own. Together, they describe a much more precise situation.</p><p><em>A smart home viewed as a system: different devices, one control center, and rules that make them work together.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tvtTmyKy1CwUppaC.png" /></figure><h3>In practice, it is a small state machine</h3><p>I like this automation because it feels more like a software problem than a traditional smart-home scene.</p><p>Entering the first zone temporarily changes the state of the system. The second zone interprets that state together with Android Auto. The timer clears it when it is no longer trustworthy. The relay performs the final action, and a log makes it possible to reconstruct what happened.</p><p>The simplified logic looks like this:</p><ol><li>entering the first zone starts a five-minute window;</li><li>entering the second zone checks the timer and identifies the direction;</li><li>Home Assistant verifies that Android Auto is connected;</li><li>the Sonoff receives a short pulse;</li><li>the system records the route it recognized and the command it sent.</li></ol><p>The number of steps is not the important part. What matters is the separation between event, state, conditions, and action. A structure like this makes it easier to understand why the gate opened or why, correctly, nothing happened.</p><h3>A gate is not a light bulb</h3><p>When an automation controls physical access, I would rather have it fail to open than open at the wrong time.</p><p>That is why I also consider the less convenient cases:</p><ul><li>GPS jumps in and out of the zone;</li><li>the phone does not update its position in time;</li><li>Android Auto appears disconnected;</li><li>the trigger arrives twice;</li><li>the home network cannot be reached;</li><li>the relay does not return to the expected state.</li></ul><p>Not all of these problems are solved by adding more conditions. Some require logs, notifications, and observation of real behavior. Others simply require a manual fallback.</p><p>The traditional remote remains available. If Home Assistant is unsure of the context or one of the signals is missing, it does not open the gate. Home automation should remove a repetitive action, not make me dependent on a perfect chain of sensors and connections.</p><p>Remote access follows the same principle. I use a personal subdomain and Cloudflare Tunnel to reach Home Assistant without traditional port forwarding, but the tunnel does not replace security. HTTPS, strong authentication, updates, and careful configuration are still necessary. If a service controls part of the home and is reachable from the Internet, it has to be treated accordingly.</p><h3>This is only one example</h3><p>The gate automation is only one example of what can be built with Home Assistant. Its advantage is the ability to combine devices and sensors that would normally live in separate apps within the same rule.</p><p>The possibilities depend on the available hardware and integrations, but some concrete examples include:</p><ul><li>collecting cameras from different manufacturers in a single dashboard;</li><li>showing the relevant camera in a notification when a sensor detects movement;</li><li>adjusting lights according to natural brightness and room occupancy;</li><li>controlling shutters and blinds using sun position, temperature, and time;</li><li>receiving an alert when the washing machine finishes its cycle, detected through a smart plug’s power consumption;</li><li>starting an appliance when the solar panels are producing enough energy;</li><li>detecting a water leak, closing a compatible valve, and sending a notification;</li><li>watering the garden using soil moisture, time, and weather forecasts;</li><li>controlling climate and air quality by combining temperature, humidity, CO₂, and presence;</li><li>building custom sensors or Bluetooth proxies with ESP32 and ESPHome wherever they are needed.</li></ul><p>Home Assistant can also collect electricity, gas, and water consumption data, provided compatible meters or sensors are available.</p><p>You do not need to start with a house full of devices. You can begin with one concrete problem, as I did with the gate, and add the rest only when it serves a real purpose.</p><p>Would you like to read more about Home Assistant or see a technical guide to building one of these automations? Let me know which one interests you most.</p><h3>Useful sources</h3><ul><li><a href="https://www.home-assistant.io/integrations/zone/">Zones and location-based automations</a></li><li><a href="https://companion.home-assistant.io/docs/core/sensors/">Companion App sensors, including Android Auto</a></li><li><a href="https://www.home-assistant.io/integrations/esphome/">ESPHome integration</a></li><li><a href="https://www.home-assistant.io/docs/energy/">Energy management</a></li><li><a href="https://www.home-assistant.io/docs/configuration/remote/">Remote access to Home Assistant</a></li><li><a href="https://developers.cloudflare.com/tunnel/setup/">Cloudflare Tunnel configuration</a><em>Originally published at </em><a href="https://www.andreadigiacomo.dev/en/blog/home-assistant"><em>https://www.andreadigiacomo.dev</em></a><em> on July 27, 2026.</em></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2863941853dd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Node.js for Beginners: Understand the JavaScript Ecosystem in 10 Minutes]]></title>
            <link>https://medium.com/@andreadigiacomo.dev/node-js-for-beginners-understand-the-javascript-ecosystem-in-10-minutes-7b4048a6cf3d?source=rss-b4579cc19a40------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b4048a6cf3d</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[beginner-guide]]></category>
            <dc:creator><![CDATA[Andrea Di Giacomo]]></dc:creator>
            <pubDate>Mon, 20 Jul 2026 00:00:12 GMT</pubDate>
            <atom:updated>2026-08-19T08:02:02.397Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Bo65f8hoesMMGU7Q.png" /></figure><h4>Introduction</h4><p>JavaScript was created to make web pages more interactive. At first, its natural home was the browser: you could click a button, update some content, or display a message without reloading the page. For years, that was what JavaScript meant to many developers.</p><p>It is worth pausing here to make a distinction that prevents a lot of confusion: JavaScript is a language, while the browser is a runtime environment. They are not the same thing. It is a bit like a language and a theater: one is the means of expression, while the other is the stage where it is used.</p><p>The browser runs JavaScript and gives it access to everything it needs to interact with a page: the DOM, events, networking, local storage, and more. But the language itself does not “belong” to the browser. It can run elsewhere too.</p><h4>Node.js: JavaScript Outside the Browser</h4><p>Node.js is a JavaScript runtime that lets you execute code outside the browser. Here too, the distinction matters: a runtime is the environment that enables a program to run, together with its APIs and execution mechanisms.</p><p>With Node.js, you can use JavaScript to:</p><ul><li>build web servers and APIs</li><li>write command-line tools</li><li>automate repetitive tasks</li><li>run build or maintenance scripts</li></ul><p>This does not mean that Node.js “replaces” the browser. It means that it brings JavaScript into a different context. In the browser, you work on the user interface; in Node.js, you often work with networking, the file system, processes, and automation.</p><p>A common mistake is to say “I use JavaScript on the server” as though the language alone were enough. In reality, you use JavaScript inside Node.js or another compatible runtime. The distinction may sound pedantic, but in practice it helps you understand which APIs are available and where your code can run.</p><p><em>A visual map helps keep languages, runtimes, and tools separate.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SDuMiwkgO5McrrFE.png" /></figure><h4>Before You Begin: Install Node Without the Hassle</h4><p>You need a recent version of Node.js to follow the examples. The most convenient approach is to use a version manager, which lets you update Node or switch versions without reinstalling everything each time.</p><p>On macOS, Linux, and Windows through WSL, you can use <a href="https://github.com/nvm-sh/nvm">nvm</a>. After installing it by following the official documentation, run these commands to install and activate the LTS release — the version recommended for most projects:</p><pre>nvm install --lts<br>nvm use --lts<br>node --version<br>npm --version</pre><p>The final two commands verify that Node and npm are available. On native Windows, pay attention to the name: nvm-windows is a separate project from nvm. They serve the same purpose, but their installation procedures and commands are not necessarily identical.</p><h4>npm and nvm: Two Different Tools</h4><p>When you start using Node.js, you will immediately encounter npm. npm is the package manager distributed with most modern Node.js installations. Its job is to download and manage JavaScript packages — that is, reusable libraries and tools.</p><p>To use Express in a project, the typical command is:</p><pre>npm install express</pre><p>The result is straightforward: npm downloads Express into the node_modules folder, records it as a project dependency, and updates the package-lock.json file. It does not install “JavaScript,” install Node, or change the browser; it manages the project&#39;s packages.</p><p>nvm is something else. It is an external version manager and is not included with Node.js. It lets you install and switch between Node versions, avoiding problems when different projects require different releases.</p><p>This is useful in a very common situation: an older project works only with one version, while a new project requires a more recent one. nvm saves you from relying on a single global installation and hoping it works for everything. In production or on a team, this distinction can save a lot of time and frustration.</p><p>In short:</p><ul><li>npm manages packages</li><li>nvm manages Node versions</li></ul><p>It is easy to confuse them at first. Their names are similar, but their jobs are different.</p><h4>Express and React: Backend and Frontend</h4><p>Express is a minimalist web framework for Node.js. “Minimalist” does not mean limited: it means Express gives you plenty of freedom while providing what you need to build servers and APIs without imposing too many rules.</p><p>To try Express for yourself, start by creating a small project. <a href="https://expressjs.com/en/5x/starter/installing.html">Express 5 requires Node.js 18 or later</a>:</p><pre>mkdir first-api<br>cd first-api<br>npm init -y<br>npm install express</pre><p>Then save the following code in a file named server.js:</p><pre>const express = require(&#39;express&#39;);<br>const app = express();</pre><pre>app.get(&#39;/health&#39;, (req, res) =&gt; {<br>  res.json({ status: &#39;ok&#39; });<br>});</pre><pre>app.listen(3000, () =&gt; {<br>  console.log(&#39;Server listening on port 3000&#39;);<br>});</pre><p>Run it with node server.js, then visit http://localhost:3000/health. Node.js executes the code, Express makes it easier to handle the HTTP route, and the browser—or another client—receives the JSON response {&quot;status&quot;:&quot;ok&quot;}.</p><p>React, by contrast, is a library for building user interfaces. In the simplest case, its code controls how the UI is assembled and updated in the browser. It is not a runtime, a server, or a package manager.</p><p>One detail often confuses beginners: React frequently relies on Node.js during development and the build process. The tools that start the project, transform the code, or optimize the final files usually run in Node. Modern React frameworks can also execute or render parts of an application on the server. This does not make React equivalent to Node.js; they still have different roles.</p><p>A typical setup therefore looks like this:</p><ul><li>Node.js and npm install dependencies and run development tools</li><li>React builds the interface, which is primarily intended for the browser</li><li>a React framework can add server-side rendering and logic</li><li>Express can provide APIs and backend logic on the other side</li></ul><h4>Final Mental Model</h4><p>To keep everything straight, separate the roles like this:</p><ul><li>JavaScript: the language</li><li>Browser: a runtime environment for client-side JavaScript</li><li>Node.js: a JavaScript runtime outside the browser</li><li>npm: the package manager distributed with Node.js</li><li>nvm: an external tool for switching between Node.js versions</li><li>Express: a minimalist web framework for Node.js</li><li>React: a library for building interfaces, often run in the browser</li></ul><p>Here is a useful mental model:</p><p>JavaScript is the common language.<br>Browsers and Node.js are two different places where that language runs.<br>npm and nvm are supporting tools, but they do different jobs.<br>Express belongs to the Node.js world and helps with the backend.<br>React handles the interface and, in its simplest use, primarily lives in the browser.</p><p>If you remember only one thing, remember this: you are not learning “a single tool,” but an ecosystem. As with any ecosystem, the trick is not to learn everything at once. It is to understand what each part does.</p><p>That is why, when you read a guide or open a project, the right question is not “what is JavaScript in general?” It is: “Where is JavaScript running here? Which runtime is it using? Which tools are involved?”</p><p>That question alone will spare you half the confusion beginners usually face.</p><p><em>Originally published at </em><a href="https://www.andreadigiacomo.dev/en/blog/nodejs"><em>https://www.andreadigiacomo.dev</em></a><em> on July 20, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b4048a6cf3d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>