<?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 Serguey Asael Shinder on Medium]]></title>
        <description><![CDATA[Stories by Serguey Asael Shinder on Medium]]></description>
        <link>https://medium.com/@serguey.shinder_24310?source=rss-4c03c89b64d5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Serguey Asael Shinder on Medium</title>
            <link>https://medium.com/@serguey.shinder_24310?source=rss-4c03c89b64d5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 06:39:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@serguey.shinder_24310/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[A Roofer Ordered Forty Boxes of Screws and We Picked Forty Screws]]></title>
            <link>https://medium.com/@serguey.shinder_24310/a-roofer-ordered-forty-boxes-of-screws-and-we-picked-forty-screws-b87810cb4cd5?source=rss-4c03c89b64d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/b87810cb4cd5</guid>
            <dc:creator><![CDATA[Serguey Asael Shinder]]></dc:creator>
            <pubDate>Tue, 13 Oct 2026 06:24:05 GMT</pubDate>
            <atom:updated>2026-10-13T06:24:05.469Z</atom:updated>
            <content:encoded><![CDATA[<p>In the first week after we launched our trade app, a roofing contractor ordered forty boxes of stainless steel screws for collection the next morning. Each box holds two hundred. When his foreman arrived at the branch, the order was waiting on the counter in a small paper bag: forty screws, priced at forty times the single screw price, which came to a little under six pounds. The same afternoon a plasterer in another town who had ordered thirty tubes of adhesive received thirty boxes of twelve, three hundred and sixty tubes, on a pallet that blocked his driveway.</p><p>Nothing in either order was mistyped. Both customers chose the right product, picked the unit they wanted from the list in the app and entered the right number. The problem was in what happened to that number next.</p><p>Our trading system stores every product in a base unit, usually a single item, and lets it be sold in other units as well: boxes, packs, rolls, metres, pallets. An order line in that system carries two things, a quantity and a unit code, and it converts between them using a table maintained by our product team. The website had always sent both. The app team had built against our newer order API, whose specification listed the unit as optional and said that, if it was missing, the base unit would be assumed. The app sent the quantity and left the unit out. Most of our products are sold only in their base unit, so for three weeks of testing every order came out right.</p><p>The screws were simple once we saw it. The adhesive took longer, because that product had been set up years ago with the box as its base unit, so a missing unit meant boxes. The same default produced too little on one product and too much on another, and nobody could have caught both by testing the products they happened to choose.</p><p>We fixed the app within a day, and then spent rather longer on the reason it had been possible. A quantity on its own is half a number. Forty means nothing until you know forty of what, and every system that receives a quantity without its unit will quietly supply one, usually its own favourite. Ours had at least four favourites, because the website, the app, the warehouse handhelds and the supplier ordering feed had each been written by someone who knew which unit was obvious.</p><p>Three things changed. The unit is now required on every interface that carries a quantity, with no default, and a request without one is rejected rather than interpreted. Conversion between units happens in one place, our trading system, and every other system sends what the customer chose and receives what it was turned into. And the order confirmation now spells it out in words, forty boxes of two hundred, eight thousand screws, which takes a little more room on a phone screen and has already caught two mistakes that were the customer’s own.</p><p>We also added a check that compares each order line, in base units, with what that customer has bought of that product before. A line more than ten times their largest previous order is held for a phone call. It fires a few times a week, mostly for genuine large jobs, and the call takes a minute.</p><p>What I took away is that the dangerous defaults are the ones that are right most of the time. A default that is usually correct is never tested, because every product anyone thinks to try works. It fails only on the unusual product, and the first person to try one is usually a customer.</p><p>– Serguey Asael Shinder</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b87810cb4cd5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Our Basket Table Ran Out of Numbers With Ninety Million Rows in It]]></title>
            <link>https://medium.com/@serguey.shinder_24310/our-basket-table-ran-out-of-numbers-with-ninety-million-rows-in-it-fa6e5abc59fa?source=rss-4c03c89b64d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa6e5abc59fa</guid>
            <dc:creator><![CDATA[Serguey Asael Shinder]]></dc:creator>
            <pubDate>Mon, 12 Oct 2026 10:05:32 GMT</pubDate>
            <atom:updated>2026-10-12T10:05:32.383Z</atom:updated>
            <content:encoded><![CDATA[<p>At twenty past eight on a Saturday morning, which is the busiest hour of our trade week, customers on our website stopped being able to add anything to their baskets. The page showed a polite error, the branch phones started ringing, and the application log had one line repeated thousands of times: arithmetic overflow error converting IDENTITY to data type int. The table that holds basket lines had been given a plain integer identity column when the site was built, and it had just tried to hand out the number after 2,147,483,647.</p><p>My first reaction was disbelief, because I knew roughly how big that table was. It held about ninety million rows, and we were nowhere near two billion of anything. That turned out to be the whole story. The identity column had never been counting basket lines. It had been counting every attempt anyone had ever made to create one.</p><p>Years earlier, to make the basket feel responsive, somebody wrote the save so that changing a quantity deleted every line in the basket and inserted them all again. It was simple and it was correct. A trade customer building an order of forty lines, adjusting quantities as they went, could use up a few thousand numbers in a single visit. SQL Server does not give identity values back when a row is deleted or an insert is rolled back, and a handful of server restarts had added their own jumps on top. Over nine years we had used about twenty four numbers for every row we kept.</p><p>The fix on the day was not elegant. We could not change the column type quickly on a table that size with the site running, so we built a new table with a bigint key, copied the live baskets across and swapped the names. It took a little under five hours, during which our branches took orders by phone and the counter staff were, as usual, kinder about it than we deserved. We also changed the save to update lines in place, which slowed the consumption of numbers to almost nothing.</p><p>The part that took the following month was everything downstream. The basket line key was read by our mobile app, by the export that feeds abandoned basket emails, by the warehouse reservation service and by the reporting model finance opens on Monday mornings. Every one of them had declared the field the way the database had, as a 32 bit integer, because that was what the column said when they were written. Widening the column turned out to be the easy half. The reporting model failed on the Monday, the reservation service the following week, and the last one, a stored procedure with an int parameter, arrived as a support ticket six weeks later.</p><p>Two habits came out of it. Every identity column and sequence in our databases now appears in a weekly report showing its current value as a share of the largest value its type can hold, with an alert at half. The first run found three more columns past a third, one of them on a table with fewer than a million rows. And whenever a key is used outside the database that created it, its type is written into the interface definition as a decision, with a reason, rather than copied from whatever the column happened to be.</p><p>What I took away is that an identifier measures activity, not size. How fast it moves depends on how the code around it behaves, and that can change completely without anyone touching the table. It is worth knowing the rate for each of yours, because numbers are used fastest when the system is busiest, so the day one runs out will almost certainly be a day you can least afford it.</p><p>– Serguey Asael Shinder</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa6e5abc59fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Checking First Is Where the Race Gets In]]></title>
            <link>https://medium.com/@serguey.shinder_24310/checking-first-is-where-the-race-gets-in-1a55e24c9f40?source=rss-4c03c89b64d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a55e24c9f40</guid>
            <dc:creator><![CDATA[Serguey Asael Shinder]]></dc:creator>
            <pubDate>Tue, 29 Sep 2026 07:41:47 GMT</pubDate>
            <atom:updated>2026-09-29T07:41:47.902Z</atom:updated>
            <content:encoded><![CDATA[<p>For two years our booking service checked whether a delivery slot was free before it reserved it. The code read well. Look up the slot, see whether its count of bookings was below capacity, and if it was, insert the booking. Every reviewer who saw it approved it, including me, and it passed every test we ever wrote. Then a retailer ran a promotion, forty customers opened the same Saturday morning slot within a second of each other, and a slot with a capacity of twelve ended up with nineteen bookings.</p><p>Nothing in the code was wrong in the way a reviewer can see. Each request did exactly what it said. The problem was the gap between the check and the action. Between reading the count and inserting the row, several other requests read the same count, saw the same free space, and all went ahead. The check was true when it was made and false by the time anyone acted on it.</p><p>This pattern has a formal name, time of check to time of use, and it is usually taught as a security topic about files: a program checks that it may write to a path, an attacker swaps the path for a link, and the program writes somewhere it never checked. That framing makes it sound exotic. It is not. It sits in every piece of code that asks a question about shared state and then acts on the answer as though the world had paused in between. Is this username taken. Is there enough stock. Does this file exist. Is the balance high enough. Has this invoice already gone out.</p><p>The instinct when you find one is to make the gap smaller: move the check closer, put a lock around both steps, cache less. Sometimes that is the right tool, but it tends to trade a rare bug for a slow system and a new family of deadlocks. The better move is usually to stop asking first. Do the thing, and let the part of the system that owns the state refuse it if it is not allowed.</p><p>For the slots, that meant putting the rule in the database, where the state actually lives. A booking is now a single conditional update that increments the count only where the count is still below capacity, and the service looks at how many rows changed. One means booked. Zero means full, and the customer is offered the next slot. There is no moment in which two requests can both believe there is room, because the question and the action are the same statement.</p><p>The same shape works almost everywhere. A unique index on the username column instead of a lookup before the insert. Opening a file with the flag that fails if it already exists, instead of testing for it first. A stock reservation that decrements only if the result stays at zero or above. In each case the code gets shorter, because the check disappears, and the error handling gets more honest, because the failure path is now the real one rather than a branch that only ever runs in tests.</p><p>What I look for in review now is simple. Any condition that reads shared state, followed by a write to that same state, gets one question: what happens if somebody else does this between these two lines. Most of the time the answer is that it cannot happen in practice, and most of the time that answer is based on today’s traffic rather than next year’s.</p><p>A check tells you how things were. Only the action tells you how things are, so make the action the check.</p><p>– Serguey Asael Shinder</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a55e24c9f40" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[he Job That Runs Once a Year Has Been Broken Since February]]></title>
            <link>https://medium.com/@serguey.shinder_24310/he-job-that-runs-once-a-year-has-been-broken-since-february-ea9a69233a52?source=rss-4c03c89b64d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea9a69233a52</guid>
            <dc:creator><![CDATA[Serguey Asael Shinder]]></dc:creator>
            <pubDate>Mon, 28 Sep 2026 12:47:49 GMT</pubDate>
            <atom:updated>2026-09-28T12:47:49.571Z</atom:updated>
            <content:encoded><![CDATA[<p>On the second of January our annual archive job failed on its first query. It moves the previous year’s closed orders into cold storage and resets a set of yearly counters, and it had worked perfectly the January before. Nobody had touched it since. That was exactly the problem, because in the twelve months between the two runs we had renamed a column it read, moved a configuration value into a different file, and tightened the database role it connected with. Each of those changes was reviewed, tested and deployed properly. None of them was tested against the archive job, because nothing that runs daily ever calls it.</p><p>Code does not stay correct by being written correctly. It stays correct by being run, over and over, against everything that changes around it. A request handler that is called ten thousand times an hour finds out within minutes when a dependency moves. A job that runs once a year finds out once a year, on a date chosen by the calendar rather than by anyone who is ready to fix it, and by then the break is most of a year old and nobody remembers which change caused it.</p><p>The same pattern shows up wherever a path is rare. The code that handles the end of a financial period. The branch that only fires when a customer has more than a thousand line items. The fallback that switches to a secondary supplier. The script that rebuilds a search index from scratch, which has not been needed since the index was first built. Every one of these was correct on the day it was merged, and every one of them has been quietly accumulating incompatibility since.</p><p>What I do about it now comes down to three habits. The first is to make rare code run often. Our annual job now has a dry run mode that takes the date as a parameter, does all of its reading and calculating, and writes nothing. It runs every Monday in the pipeline, pretending it is the second of January, and when somebody renames a column it breaks that week, in front of the person who renamed it. The same approach works for month end, for the thousand line order, for the supplier fallback. If the only thing stopping a path from running is the date or the data, supply the date and the data.</p><p>The second is to shrink the rare part until there is almost nothing left. Our year end reset used to be its own module with its own queries. Now the daily job does the work every night for the current period, and the annual behaviour is a single condition in code that runs three hundred and sixty five times a year. The rare path is one line instead of four hundred, and the four hundred are exercised daily.</p><p>The third is the least popular. When a rare path cannot be made to run often and cannot be shrunk, I ask whether it needs to exist as code at all. Some things that happen once a year are better as a written procedure that a person follows with care, because a person reads the procedure on the day and notices when a step no longer makes sense. The code would simply fail.</p><p>The general rule is uncomfortable because it applies to things we think of as finished. The confidence you have in a piece of code should come from how recently it ran, not from how carefully it was written. If you cannot remember the last time a path executed, you should assume it no longer works.</p><p>– Serguey Asael Shinder</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea9a69233a52" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Old Is Not the Same as Careless]]></title>
            <link>https://medium.com/@serguey.shinder_24310/old-is-not-the-same-as-careless-f534554f8b05?source=rss-4c03c89b64d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/f534554f8b05</guid>
            <dc:creator><![CDATA[Serguey Asael Shinder]]></dc:creator>
            <pubDate>Wed, 23 Sep 2026 09:33:19 GMT</pubDate>
            <atom:updated>2026-09-23T09:33:19.787Z</atom:updated>
            <content:encoded><![CDATA[<p>Somebody in a planning meeting described a module written in 2016 as technical debt, and everybody nodded, including me, and we moved on. I went back and read it afterwards, partly out of curiosity, because I had been told that module was a problem for four years and had never actually opened it. It is a perfectly reasonable piece of work. It solves the problem it was given, in the idiom of the language as it was then, against a volume of traffic about a fortieth of what we handle now. Nobody cut a corner. Nobody was rushed. It is simply from an earlier world, and it has been carrying a word that accuses its authors of something they did not do.</p><p>Debt is a precise metaphor and we have stopped using it precisely. A debt is a loan somebody took deliberately, in exchange for something they wanted sooner, with an understanding that it would cost more later. That does happen, and when it does the word is exactly right. We hard coded the tax rate because the launch was in nine days and we agreed to come back to it. There is an author, there was a choice, and there is a repayment. But that category is a small fraction of what gets called debt in most conversations, and the rest is not a loan at all.</p><p>The rest is mostly age. A library the maintainer abandoned. A design that was correct for one country and is now wrong for six. Data volumes that grew past the assumptions the code was honest about at the time. A platform that deprecated the thing underneath you. None of these are anybody’s mistake. They are what happens to any system that lives long enough to be worth keeping, and the correct comparison is not to a loan but to a building, which needs a roof replaced every few decades whatever the builders did.</p><p>And a third category hides inside the other two, which is code that is merely unfamiliar. It is not bad, you have just never read it, and the discomfort of not understanding something feels remarkably similar to the discomfort of looking at something poor.</p><p>This is not a semantic complaint, because the word decides what happens next. If you tell a director that a system is full of technical debt, you have told them that your department was careless, and the entirely rational response to that is to wonder why they should now fund the correction of your own mistakes, and to be slightly less inclined to believe your estimates. I have watched perfectly good maintenance cases die on exactly that reflex. Whereas if you say that this component was built for two countries and now serves six, and the assumption it was built on is no longer true, you are describing a change in the world rather than a confession, and the money reads differently because it is a different kind of request.</p><p>The three categories also want different arguments. A real shortcut wants an honest repayment case with the original trade named. Age wants to be treated as the ordinary cost of operating something, budgeted the way you budget for a roof. Unfamiliarity wants nothing but a few days of somebody reading.</p><p>So I have stopped using the word without a qualifier, and I write the sentence underneath it in tickets. What changed since this was written, and was it wrong then or is it wrong now. It takes one line and it usually reveals that the people who built the thing were right, and that the world moved, which is not a failure of engineering and should not be described as one.</p><p>Code does not rot. Conditions move, and we picked a word for that which quietly blames whoever was there first.</p><p>– Serguey Asael Shinder</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f534554f8b05" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Number on the Screen Was True Four Minutes Ago]]></title>
            <link>https://medium.com/@serguey.shinder_24310/the-number-on-the-screen-was-true-four-minutes-ago-2e926bb1ae89?source=rss-4c03c89b64d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e926bb1ae89</guid>
            <dc:creator><![CDATA[Serguey Asael Shinder]]></dc:creator>
            <pubDate>Tue, 22 Sep 2026 08:24:09 GMT</pubDate>
            <atom:updated>2026-09-22T08:24:09.164Z</atom:updated>
            <content:encoded><![CDATA[<p>We put a cache in front of the pricing service on a Thursday because the pricing service was slow and the checkout page was timing out. It worked immediately. Response times collapsed, the timeouts stopped, everybody was pleased, and nobody asked the only question that actually mattered, which is how old a price is allowed to be before it stops being a price and becomes a rumour.</p><p>The answer we shipped was five minutes, because five minutes is a number people pick. It was not derived from anything. Nobody from the commercial side was asked. It was not written down anywhere except in the expression that set it, and within a fortnight it had become the oldest kind of fact, the kind that exists because somebody typed it once and nobody has typed anything else since.</p><p>What a cache actually does is convert a correctness question into a business question. How wrong may this be, for how long, and who is harmed by the gap. Those are not engineering decisions. They have owners elsewhere in the building, people with opinions about refunds and pricing errors and what a customer is entitled to see. We answered on their behalf, by accident, in a line of configuration, and we did not tell them we had done it.</p><p>You find out what you chose when somebody complains. In our case a promotional price ended at midday, and for the next few minutes a small number of people bought at a price that no longer existed. Not many. Enough to end up in a meeting where somebody asked how the system could show a price we were not offering, and the honest answer was that the system had been designed to do exactly that, deliberately, in a way nobody had ever described out loud.</p><p>The second problem is worse and quieter. Once you have a cache, nobody can tell which numbers on a page are current and which are remembered. Support cannot tell. Operations cannot tell. The developer who joins next year certainly cannot tell, because the page looks like one thing and is assembled out of four with different ages. Staleness spreads through a system the way rounding does. It arrives as an implementation detail and settles as a property of the product.</p><p>So the habit I have now is small and it costs nothing. Whenever a cache goes in, the acceptable staleness gets written next to it in words, in the ticket, in terms of consequence rather than seconds. This may be up to five minutes old, and if it is wrong the customer sees a withdrawn promotional price. Reading that sentence takes ten seconds and it is a sentence somebody outside engineering can object to, which is the entire point. Half the time nobody objects and you have lost nothing. The other half you find out that for one particular field the tolerable staleness is zero, and you have just avoided a conversation you would otherwise have had in front of your finance director.</p><p>The other half of the habit is to show the age where it matters. An internal screen that displays a balance should say when that balance was read. Operators are very good at judging whether four minutes is fine, and very bad at judging it when the interface implies the number is live.</p><p>None of this is an argument against caching. Caching is how anything works at all. It is an argument against letting a performance fix quietly make a policy decision on somebody else’s behalf. If the number is remembered rather than known, somebody in your organisation has a view about how long that is acceptable, and it is cheaper to ask them than to find out from a complaint.</p><p>– Serguey Asael Shinder</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e926bb1ae89" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Somebody Is Depending on the Part You Got Wrong]]></title>
            <link>https://medium.com/@serguey.shinder_24310/somebody-is-depending-on-the-part-you-got-wrong-37d35d0957b3?source=rss-4c03c89b64d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/37d35d0957b3</guid>
            <dc:creator><![CDATA[Serguey Asael Shinder]]></dc:creator>
            <pubDate>Mon, 21 Sep 2026 07:23:11 GMT</pubDate>
            <atom:updated>2026-09-21T07:23:11.913Z</atom:updated>
            <content:encoded><![CDATA[<p>Our search endpoint returned results in an order nobody had chosen. It was whatever the database handed back, which in practice meant roughly the order rows had been created, which in practice meant the newest thing was usually near the bottom. This was not a design. It was the absence of one. When we finally added proper ranking, two integrators broke within a day, because both of them had been reading the last element of the array and calling it the most recent record.</p><p>I remember being annoyed about that, which tells you something about how I was thinking. We had never documented an order. We had never promised an order. Nobody was entitled to rely on it. All of that was true and none of it helped, because the people relying on it were not reading our documentation. They were watching what our system did, repeatedly, and building on what they saw, which is the only reliable information anybody ever has about a system they do not own.</p><p>Once you start looking for this you find it everywhere. A partner script that matches on the exact wording of an error string, so the day you improve the wording their alerting goes quiet. A page that we stopped linking to years ago and never removed, which turns out to be the bookmark an entire team uses. Rounding that was always slightly generous, which somebody downstream has been reconciling against for three years. A field we populate with a value that happens to be unique, so it has quietly become an identifier in a system we have never heard of.</p><p>None of these were decisions. Every one of them is now load bearing.</p><p>What follows from this is not that you can never change anything. It is that the question changes. You stop asking whether the behaviour was intended, which is a question about your own history and has no useful answer, and you start asking who is currently standing on it. Those are completely different investigations. The second one has evidence: logs, integration partners, support tickets, the three customers whose usage pattern looks different from everyone else’s.</p><p>So before a fix goes out, I try to work out what a user would have had to believe for the old behaviour to be useful to them. If the answer is nothing plausible, ship it. If I can construct a reasonable belief in under a minute, somebody out there holds it. Usually the second case, and usually the number of affected parties is small enough to write to by name, which is a conversation that takes an afternoon and prevents a fortnight.</p><p>The expensive mistake is treating a correction as automatically safe because it makes the system more correct. Correctness is measured against a specification, and the people using your system are not measured against your specification. They are measured against whether their thing still works on Tuesday.</p><p>There is a cheaper version of all this, which is to be deliberate earlier. Anything you cannot commit to should be visibly unreliable. If the order is not guaranteed, shuffle it in development so nobody ever sees a stable one. If a field is internal, do not put it in the response because it was convenient. If a URL is dead, return a real error rather than leaving it quietly alive. Ambiguity does not stay ambiguous. Somebody resolves it by observation, and then it is theirs.</p><p>The behaviour you never thought about is still behaviour. The only difference between that and a feature is whether you knew you were shipping it.</p><p>– Serguey Asael Shinder</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37d35d0957b3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Quality Is the Variable That Moves Without Anyone Deciding]]></title>
            <link>https://medium.com/@serguey.shinder_24310/quality-is-the-variable-that-moves-without-anyone-deciding-9f5999c82ceb?source=rss-4c03c89b64d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/9f5999c82ceb</guid>
            <dc:creator><![CDATA[Serguey Asael Shinder]]></dc:creator>
            <pubDate>Fri, 18 Sep 2026 11:38:57 GMT</pubDate>
            <atom:updated>2026-09-18T11:38:57.331Z</atom:updated>
            <content:encoded><![CDATA[<p>Every piece of work has three things you can change: what it contains, when it arrives, and how well it is built. Two of those have owners, rituals and meetings attached to them. The third has none, and that single asymmetry explains more about how software actually gets built than any methodology anybody has ever sold you.</p><p>Moving the date is a conversation. Somebody has to be told, and that somebody usually had to tell somebody else, and there is a moment of visible cost that everyone in the room remembers. Cutting the scope is also a conversation, often a harder one, because a feature has a name and a sponsor and a slide it appeared on. Both of those changes leave a record. Both require a person to say a sentence out loud and be answerable for it.</p><p>Reducing quality requires nothing. There is no form, no stakeholder, no announcement. It happens quietly, in the middle of a task, when you decide that the case you were about to write a test for is unlikely, that the error will be obvious enough without a message, that the rollback path can wait because you are not going to need it. Nobody approves this. Nobody is even told. You simply run out of room, and the work ships looking exactly like work that was done properly, because from the outside it is indistinguishable for several months.</p><p>So when the date is fixed and the scope is fixed, quality is not chosen as the thing that gives way. It is simply the only variable left that can be moved by one tired person without asking permission.</p><p>It is worth being precise about which parts go first, because they are not random. The reductions land on whatever has the longest delay between the shortcut and the consequence. Nobody skips the part that breaks the demonstration on Thursday. They skip the tests, the names, the handling of the failure that has not happened yet, the note explaining why the strange line is there. The deadline converts future cost into present speed, and it does it at an exchange rate nobody quotes, in a currency that will be paid by whoever is holding the system next spring.</p><p>That is also why the promise to clean it up afterwards is not a lie so much as a forecast, and forecasts have track records. Yours is checkable. Go and look at the last four times your team said it, and count how many of the cleanups happened. Mine was not good. The reason is structural rather than moral: the moment the pressure comes off is precisely the moment the next thing starts, and nothing in the plan ever contained the repayment.</p><p>What helps is small and it is mostly about visibility. Say out loud what you are not doing, at the time you decide not to do it, to the person holding the date, in one sentence. Not as a complaint, as information. We will hit Friday, and to hit it we are not writing the tests for the import path and we are not handling a partial failure there. Write it in the ticket. Now the trade has a record, and a record is the only thing that turns a silent reduction into a decision somebody made.</p><p>Then accept that this is a real choice and sometimes the right one. There is work that genuinely deserves to be quick and rough, and pretending otherwise is its own kind of dishonesty. What I object to is not the trade. It is that in most teams the trade is made twenty times a week by people who are not aware they are making it, on behalf of people who will never be told.</p><p>The date will be met. It is the only one of the three that anybody is watching.</p><p>– Serguey Asael Shinder</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f5999c82ceb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Every Error Message Is Written by Someone Who Will Never Read It”]]></title>
            <link>https://medium.com/@serguey.shinder_24310/every-error-message-is-written-by-someone-who-will-never-read-it-cd12ae690ec2?source=rss-4c03c89b64d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd12ae690ec2</guid>
            <dc:creator><![CDATA[Serguey Asael Shinder]]></dc:creator>
            <pubDate>Wed, 16 Sep 2026 08:45:15 GMT</pubDate>
            <atom:updated>2026-09-16T08:45:15.597Z</atom:updated>
            <content:encoded><![CDATA[<p>The line you are about to write is the one line of your program that will be read by a stranger. You are writing it at the end of a function you understand completely, at the exact moment your knowledge of this code is at its lifetime maximum, and you will never be the person who reads it. The person who reads it has a screenshot, a customer on the phone, no access to your branch, and no idea that this particular sentence can only be produced by one of six branches, four of which are impossible.</p><p>That asymmetry is structural. It is not a question of care, because every incentive in the moment points the same way. You are finished. The feature works. The error path is the part you are certain will not happen, and you are writing a sentence for a situation you have just spent an hour proving cannot occur. So you write operation failed, or invalid input, or error processing request, and you ship something that is technically true and operationally worthless.</p><p>The cost of that sentence is not paid by you and it is not paid once. It is paid every time somebody hits it, by whoever happens to be holding the pager, and it is paid in the most expensive hours a company has: the ones where something is already wrong and attention is already short. A vague error does not save you time. It moves your time onto a stranger’s calendar and multiplies it by the number of people who will ever see it.</p><p>What a reader actually needs is unglamorous and fits in one line. What was being attempted, including the identifying values. What specifically failed, in the vocabulary of the system rather than the vocabulary of the library. What they can do about it, if anything. And where to look next. Could not apply discount code SPRING24 to order 88431: the code expired on 12 March. That sentence ends an investigation before it starts. Invalid input starts one.</p><p>There is a real objection, which is that some of that detail must not appear on a screen in front of a customer or an attacker. The answer is not to write less, it is to write twice. One message for the person looking at the screen, deliberately plain, and one for the log, carrying everything, and a correlation identifier printed in both so that the two can be joined by somebody holding only the first. What you must not do is let the security argument become cover for saying nothing anywhere, which is what usually happens.</p><p>Watch particularly for the messages that are polite. Something went wrong, we are sorry, please try again later. Apology is not information. It has the shape of consideration and the content of a shrug, and it is often worse than a raw stack trace, because a stack trace at least admits the existence of a cause. Sympathy is what you offer when you cannot help. An error message is your chance to help.</p><p>The habit that fixes this is small and slightly uncomfortable: read your own error text as though you have never seen the code, which means reading it as a single line with no surrounding function, because that is how it arrives. If the line does not tell you what to do next, it does not yet exist.</p><p>Everything else you write is read by people who chose to read it, at a time of their choosing, with the ability to stop. Error messages are the only prose in your system that gets read under duress, by someone who did not ask for it and cannot put it down. They are worth more per word than anything else you will write today, and they are almost always the last thing anyone thinks about.</p><p>– Serguey Asael Shinder</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd12ae690ec2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Doubt Is Why Codebases Only Grow]]></title>
            <link>https://medium.com/@serguey.shinder_24310/doubt-is-why-codebases-only-grow-e88590dd6a35?source=rss-4c03c89b64d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/e88590dd6a35</guid>
            <dc:creator><![CDATA[Serguey Asael Shinder]]></dc:creator>
            <pubDate>Tue, 15 Sep 2026 06:55:29 GMT</pubDate>
            <atom:updated>2026-09-15T06:55:29.353Z</atom:updated>
            <content:encoded><![CDATA[<p>Every codebase I have worked in has a region nobody goes near. In one it was a folder of report generators, four of which were definitely in use and two of which were a mystery. In another it was a module that spoke a protocol we had stopped supporting, for a customer we had stopped having. Everybody suspected it was unnecessary. Nobody removed it, and if you had asked why, the honest answer was not sentiment and it was not laziness. It was that nobody could prove it was unused, and proof, without anyone ever agreeing to it, was the standard we were applying.</p><p>Look at the two errors available to you and the asymmetry is immediate. Delete something that is still in use and the consequence is loud, quick, attributable and yours. Keep something that is not in use and the consequence is small, silent, and paid by everyone who will ever open this repository afterwards: the person tracing a bug who has to read it and rule it out, the dependency upgrade that must be applied to it, the security advisory that turns out to concern it, the minutes it adds to every test run, the new joiner who assumes it matters because why else would it be here.</p><p>A careful individual, facing that trade, keeps everything. A codebase is the accumulated result of many careful individuals facing that trade, which is why it only moves in one direction.</p><p>The proof problem underneath is genuine and worth stating plainly, because the usual advice pretends it is not. Static analysis tells you about the callers it can see. It cannot see a call assembled from a string, a route registered by reflection, a cron entry on a host that belongs to a team you have never met, a partner who posts to that endpoint twice a year at their year end, or a dashboard reading the table directly because somebody was in a hurry in 2022. The evidence you cannot gather is what genuinely dead code looks like. It is also exactly what not having looked hard enough looks like, and from where you are sitting the two are indistinguishable.</p><p>So stop arguing about it and make deadness observable. Put a line at the entry point that records when the thing is used and by what, then wait out a full business cycle: a month end, a quarter end, the annual process that only runs in January. At the end of that you have a fact instead of a position, and a fact survives the meeting in which somebody says they think finance might still need it.</p><p>Then remove it in a way that fails loudly rather than quietly. Do not comment it out; commented code is the worst available outcome, unreadable and unrunnable and still occupying the page. Delete it properly, because version control has kept a perfect copy and you are not destroying anything. Where you are genuinely nervous, replace the body with something that raises and alerts, live with that for a few weeks, and then take the shell away too.</p><p>The organisational half matters more than any of the technique. Most teams will review a four hundred line addition inside an hour and treat a four hundred line deletion as an event requiring a meeting, and everybody on that team has correctly understood which direction the code is permitted to move. Until removal is ordinary work, visible in the same place as the features, it will lose every week to something with a customer attached.</p><p>Nobody writes a line intending it to be permanent. It becomes permanent because taking it out asks for a certainty that none of our tools were built to supply, and doubt, compounded quietly over enough years, has a direction.</p><p>– Serguey Asael Shinder</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e88590dd6a35" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>