Laws of Software Engineering

(lawsofsoftwareengineering.com)

248 points | by milanm081 3 hours ago

34 comments

  • bakkerinho 49 minutes ago
    > This site was paused as it reached its usage limits. Please contact the site owner for more information.

    Law 0: Fix infra.

    • andrerpena 42 minutes ago
      This looks like a static website that could be served for free from Cloudflare Pages or Vercel, with a nearly unlimited quota. And still... It's been hugged to death, which is ironic, considering it's a software engineering website :).
      • mghackerlady 22 minutes ago
        Hell, something like this probably doesn't even need that. Throw it on a debian box running nginx or apache and you'll probably be set (though, with how hard bots have been scraping recently it might be harder than that)
    • asdfasgasdgasdg 38 minutes ago
      Law 1: caching is 90-99% of performance.
      • arnorhs 34 minutes ago
        are you saying performance is 90-99% caching? If so that is so obviously untrue.

        If you are saying you _can_ fix 90-99% of performance bottlenecks eventually with caching, that may be true, but doesn't sound as nice

    • hermaine 31 minutes ago
    • the_arun 34 minutes ago
      Laws are there to be broken.
    • milanm081 24 minutes ago
      Fixed, thanks!
    • kurnik 26 minutes ago
      So somebody who doesn’t know how to properly host a static website wants to teach me about software engineering. Cool. 99% sure it’s a vibecoded container for AI slop anyway.
    • esafak 34 minutes ago
      "Performance doesn't matter!"
  • Aaargh20318 58 minutes ago
    I’m missing Curly’s Law: https://blog.codinghorror.com/curlys-law-do-one-thing/

    “A variable should mean one thing, and one thing only. It should not mean one thing in one circumstance, and carry a different value from a different domain some other time. It should not mean two things at once. It must not be both a floor polish and a dessert topping. It should mean One Thing, and should mean it all of the time.”

    • inetknght 39 minutes ago
      > It must not be both a floor polish and a dessert topping.

      I worked as a janitor for four years near a restaurant, so I know a little bit about floor polishing and dessert toppings. This law might be a little less universal than you think. There are plenty of people who would happily try out floor polish as a dessert topping if they're told it'll get them high.

    • ipnon 55 minutes ago
      I usually invoke this by naming with POSIWID.
    • huflungdung 47 minutes ago
      [dead]
  • conartist6 1 hour ago
    Remember that these "laws" contain so many internal contradictions that when they're all listed out like this, you can just pick one that justifies what you want to justify. The hard part is knowing which law break when, and why
    • jimmypk 57 minutes ago
      Postel's Law vs. Hyrum's Law is the canonical example. Postel says be liberal in what you accept — but Hyrum's Law says every observable behavior of your API will eventually be depended on by someone. So if you're lenient about accepting malformed input and silently correcting it, you create a user base that depends on that lenient behavior. Tightening it later is a breaking change even if it was never documented. Being liberal is how you get the Hyrum surface area.

      The resolution I've landed on: be strict in what you accept at boundaries you control (internal APIs, config parsing) and liberal only at external boundaries where you can't enforce client upgrades. But that heuristic requires knowing which category you're in, which is often the hard part.

      • throwaway173738 45 minutes ago
        I look at Postel’s law more as advice on how to parse input. At some point you’re going to have to upgrade a client or a server to add a new field. If you’ve been strict, then you’ve created a big coordination problem, because the new field is a breaking change. But if you’re liberal, then your systems ignore components of the input that they don’t recognize. And that lets you avoid a fully coordinated update.
      • zahlman 42 minutes ago
        I've always thought of Hyrum's Law more as a Murphy-style warning than as actionable advice.
    • blandflakes 43 minutes ago
      This was also true of Amazon's Leadership Principles. They are pretty reasonable guidelines, but in a debate, it really came down to which one you could most reasonably weaponize in favor of your argument, even to the detriment of several others.

      Which maybe is also fine, I dunno :)

      • rustyhancock 34 minutes ago
        It's because they are heurists intended to be applied by knowledgeable and experienced humans.

        It can be quite hard to explain when a student asks why you did something a particular way. The truthful answer is that it felt like the right way to go about it.

        With some thought you can explain it partly - really justify the decision subconsciously made.

        If they're asking about a conscious decision that's rarely much more helpful that you having to say that's what the regulations, or guidelines say.

        Where they really learn is seeing those edge cases and gray areas

    • AussieWog93 1 hour ago
      DRY is my pet example of this.

      I've seen CompSci guys especially (I'm EEE background, we have our own problems but this ain't one of them) launch conceptual complexity into the stratosphere just so that they could avoid writing two separate functions that do similar things.

      • busfahrer 1 hour ago
        I think I remember a Carmack tweet where he mentioned in most cases he only considers it once he reaches three duplicates
        • michaelcampbell 14 minutes ago
          The "Rule of 3" is a pretty well known rule of thumb; I suspect Carmack would admit it predates him by a fair bit.
        • mcv 1 hour ago
          I once heard of a counter-principle called WET: Write Everything Twice.
        • whattheheckheck 1 hour ago
          Why 3? What is this baseball?

          Take the 5 Rings approach.

          The purpose of the blade is to cut down your opponent.

          The purpose of software is to provide value to the customer.

          It's the only thing that matters.

          You can also philosophize why people with blades needed to cut down their opponents along with why we have to provide value to the customer but thats beyond the scope of this comment

          • ta20240528 48 minutes ago
            "The purpose of software is to provide value to the customer."

            Partially correct. The purpose of your software to its owners is also to provide future value to customers competitively.

            What we have learnt is that software needs to be engineered: designed and structured.

      • zahlman 39 minutes ago
        I've heard that story a few times (ironically enough) but can't say I've seen a good example. When was over-architecture motivated by an attempt to reduce duplication? Why was it effective in that goal, let alone necessary?
        • dasil003 6 minutes ago
          Buy me a beer and I can tell you some very poignant stories. The best ones are where there is a legitimate abstraction that could be great, assuming A) everyone who had to interact with the abstraction had the expertise to use it, B) the details of the product requirements conformed to the high level technical vision, now and forever, and C) migrating from the current state to the new system could be done in a bounded amount of time.

          My view is over-engineering comes from the innate desire of engineers to understand and master complexity. But all software is a liability, every decision a tradeoff that prunes future possibilities. So really you want to make things as simple as possible to solve the problem at hand as that will give you more optionality on how to evolve later.

      • pydry 1 hour ago
        DRY is misunderstood. It's definitely a fundamental aspect of code quality it's just one of about 4 and maximizing it to the exclusion of the others is where things go wrong. Usually it comes at the expense of loose coupling (which is equally fundamental).

        The goal ought to be to aim for a local minima of all of these qualities.

        Some people just want to toss DRY away entirely though or be uselessly vague about when to apply it ("use it when it makes sense") and thats not really much better than being a DRY fundamentalist.

        • layer8 1 hour ago
          DRY is misnamed. I prefer stating it as SPOT — Single Point Of Truth. Another way to state it is this: If, when one instance changes in the future, the other instance should change identically, then make it a single instance. That’s really the only DRY criterion.
          • xnorswap 1 hour ago
            I like this a lot more, because it captures whether two things are necessarily the same or just happen to be currently the same.

            A common "failure" of DRY is coupling together two things that only happened to bear similarity while they were both new, and then being unable to pick them apart properly later.

          • Silamoth 22 minutes ago
            That’s how I understand it as well. It’s not about an abstract ideal of duplication but about making your life easier and your software less buggy. If you have to manually change something in 5 different places, there’s a good chance you’ll forget one of those places at some point and introduce a bug.
          • mcv 1 hour ago
            That's how I understood it. If you add a new thing (constant, route, feature flag, property, DB table) and it immediately needs to be added in 4 different places (4 seems to be the standard in my current project) before you can use it, that's not DRY.
            • mjr00 13 minutes ago
              > If you add a new thing (constant, route, feature flag, property, DB table) and it immediately needs to be added in 4 different places (4 seems to be the standard in my current project) before you can use it, that's not DRY.

              The tricky part is that sometimes "a new thing" is really "four new things" disguised as one. A database table is a great example because it's a failure mode I've seen many times. A developer has to do it once and they have to add what they perceive as the same thing four times: the database table itself, the internal DB->code translation e.g. ORM mapping, the API definition, and maybe a CRUD UI widget. The developer thinks, "oh, this isn't DRY" and looks to tools like Alembic and PostGREST or Postgraphile to handle this end-to-end; now you only need to write to one place when adding a database table, great!

              It works great at first, then more complex requirements come down: the database gets some virtual generated columns which shouldn't be exposed in code, the API shouldn't return certain fields, the UI needs to work off denormalized views. Suddenly what appeared to be the same thing four times is now four different things, except there's a framework in place which treats these four things as one, and the challenge is now decoupling them.

              Thankfully most good modern frameworks have escape valves for when your requirements get more complicated, but a lot of older ones[0] really locked you in and it became a nightmare to deal with.

              [0] really old versions of Entity Framework being the best/worst example.

              • mcv 5 minutes ago
                I believe that was the point of Ruby on Rails: that you really had to just create the class, and the framework would create the table and handle the ORM. Or maybe you still had to write the migration; it's been as while. That was pretty spectacular in its dedication to DRY, but also pretty extreme.

                But the code I'm talking about is really adding the same thing in 4 different places: the constant itself, adding it to a type, adding it to a list, and there was something else. It made it very easy to forget one step.

          • pydry 1 hour ago
            Renaming it doesnt change the nature of the problem.

            There should often be two points of truth because having one would increase the coupling cost more than the benefits that would be derived from deduplication.

      • iwontberude 1 hour ago
        Why do the have to be so smart but so annoying at the same time?
    • ghm2180 1 hour ago
      This is doubly true in Machine Learning Engineering. Knowing what methods to avoid is just as important to know what might work well and why. Importantly a bunch of Data Science techniques — and I use data science in the sense of making critical team/org decisions — is also as important for which you should understand a bit of statistics not only data driven ML.
      • Silamoth 20 minutes ago
        Statistics is absolutely fundamental to data science. But I’m not sure this relates to the above idea of “laws” being internally contradictory?
  • dataviz1000 2 hours ago
    I did not see Boyd’s Law of Iteration [0]

    "In analyzing complexity, fast iteration almost always produces better results than in-depth analysis."

    Boyd invented the OODA loop.

    [0]https://blog.codinghorror.com/boyds-law-of-iteration/

    • Silamoth 15 minutes ago
      That’s such a good one! I wish more people understood this. It seems management and business types always want some upfront plan. And I get it, to an extent. But we’ve learned this isn’t a very effective way to build software. You can’t think of all possible problems ahead of time, especially the first time around. Refactoring to solve problems with a flexible architecture it better than designing yourself into a rigid architecture that can’t adapt as you learn the problem space.
  • RivieraKid 1 hour ago
    Not a law but a a design principle that I've found to be one of the most useful ones and also unknown:

    Structure code so that in an ideal case, removing a functionality should be as simple as deleting a directory or file.

    • layer8 1 hour ago
      Functionalities aren’t necessarily orthogonal to each other; features tend to interact with one another. “Avoid coupling between unrelated functionalities” would be more realistic.
    • danparsonson 1 hour ago
      Features arise out of the composition of fundamental units of the system, they're not normally first class units themselves. Can you give an example?
    • kijin 1 hour ago
      What's the smallest unit of functionality to which your principle applies?

      For example, each comment on HN has a line on top that contains buttons like "parent", "prev", "next", "flag", "favorite", etc. depending on context. Suppose I might one day want to remove the "flag" functionality. Should each button be its own file? What about the "comment header" template file that references each of those button files?

      • jpitz 1 hour ago
        I think that if you continue along the logical progression of the parent poster, then maybe the smaller units of functionality would be represented by simple ranges of lines of text. Given that, deleting a single button would ideally mean a single contiguous deletion from a file, versus deleting many disparate lines.
      • sverhagen 1 hour ago
        Maybe the buttons shouldn't be their own files, but the backend functionality certainly could be. I don't do this, but I like the idea.
  • fenomas 1 hour ago
    Nice to have these all collected nicely and sharable. For the amusement of HN let me add one I've become known for at my current work, for saying to juniors who are overly worried about DRY:

    > Fen's law: copy-paste is free; abstractions are expensive.

    edit: I should add, this is aimed at situations like when you need a new function that's very similar to one you already have, and juniors often assume it's bad to copy-paste so they add a parameter to the existing function so it abstracts both cases. And my point is: wait, consider the cost of the abstraction, are the two use cases likely to diverge later, do they have the same business owner, etc.

  • Waterluvian 6 minutes ago
    I think it would be cool to have these shown at random as my phone’s “screensaver”
  • netdevphoenix 51 minutes ago
    "This site was paused as it reached its usage limits. Please contact the site owner for more information."

    I wish AWS/Azure had this functionality.

  • dgb23 41 minutes ago
    I like this collection. It's nicely presented and at least at a glance it adds some useful context to each item.

    While browsing it, I of course found one that I disagree with:

    Testing Pyramid: https://lawsofsoftwareengineering.com/laws/testing-pyramid/

    I think this is backwards.

    Another commenter WillAdams has mentioned A Philosophy of Software Design (which should really be called A Set of Heuristics for Software Design) and one of the key concepts there are small (general) interfaces and deep implementations.

    A similar heuristic also comes up in Elements of Clojure (Zachary Tellman) as well, where he talks about "principled components and adaptive systems".

    The general idea: You should greatly care about the interfaces, where your stuff connects together and is used by others. The leverage of a component is inversely proportional to the size of that interface and proportional to the size of its implementation.

    I think the way that connects to testing is that architecturally granular tests (down the stack) is a bit like pouring molasses into the implementation, rather than focusing on what actually matters, which is what users care about: the interface.

    Now of course we as developers are the users of our own code, and we produce building blocks that we then use to compose entire programs. Having example tests for those building blocks is convenient and necessary to some degree.

    However, what I want to push back on is the implied idea of having to hack apart or keep apart pieces so we can test them with small tests (per method, function etc.) instead of taking the time to figure out what the surface areas should be and then testing those.

    If you need hyper granular tests while you're assembling pieces, then write them (or better: use a REPL if you can), but you don't need to keep them around once your code comes together and you start to design contracts and surface areas that can be used by you or others.

    • nazgul17 26 minutes ago
      I think the general wisdom in that scenario is to keep them around until they get in the way. Let them provide a bit of value until they start being a cost.
  • ozgrakkurt 2 hours ago
    For anyone reading this. Learn software engineering from people that do software engineering. Just read textbooks which are written by people that actually do things
  • dassh 1 hour ago
    Calling them 'laws' is always a bit of a stretch. They are more like useful heuristics. The real engineering part is knowing exactly when to break them.
  • tmoertel 2 hours ago
    One that is missing is Ousterhout’s rule for decomposing complexity:

        complexity(system) =
            sum(complexity(component) * time_spent_working_in(component)
                for component in system).
    
    The rule suggests that encapsulating complexity (e.g., in stable libraries that you never have to revisit) is equivalent to eliminating that complexity.
    • stingraycharles 2 hours ago
      That’s not some kind of law, though. And I’m also not sure whether it even makes sense, complexity is not a function of time spent working on something.
      • CuriouslyC 32 minutes ago
        I think the intent is that if you can cleanly encapsulate some complexity so that people working on stuff that uses it don't have to understand anything beyond a simple interface, that complexity "doesn't exist" for all intents and purposes. Obviously this isn't universal, but a fair percentage of programmers these days don't understand the hardware they're programming against due to the layers of abstractions over them, so it's not crazy either.
      • tmoertel 1 hour ago
        First, few of the laws on that site are actual laws in the physics or mathematics sense. They are more guiding principles.

        > complexity is not a function of time spent working on something.

        But the complexity you observe is a function of your exposure to that complexity.

        The notion of complexity exists to quantify the degree of struggle required to achieve some end. Ousterhout’s observation is that if you can move complexity into components far away from where you must do your work to achieve your ends, you no longer need to struggle with that complexity, and thus it effectively is not there anymore.

        • wduquette 1 hour ago
          And in addition, the time you spend making a component work properly is absolutely a function of its complexity. Once you get it right, package it up neatly with a clean interface and a nice box, and leave it alone. Where "getting it right" means getting it to a state where you can "leave it alone".
      • Brian_K_White 48 minutes ago
        It's showing that all the complexity in the components are someone else's problem. Your only complexity is your own top layer and your interface with the components.
  • r0ze-at-hn 1 hour ago
    Love the details sub pages. Over 20 years I collected a little list of specific laws or really observations (https://metamagic.substack.com/p/software-laws) and thought about turning each into specific detailed blog posts, but it has been more fun chatting with other engineers, showing the page and watch as they scan the list and inevitably tell me a great story. For example I could do a full writeup on the math behind this one, but it is way more fun hearing the stories about the trying and failing to get second re-writes for code.

    9. Most software will get at most one major rewrite in its lifetime.

  • arnorhs 29 minutes ago
    Since the site is down, you can use the archive.org link:

    https://web.archive.org/web/20260421113202/https://lawsofsof...

  • Sergey777 1 hour ago
    A lot of these “laws” seem obvious individually, but what’s interesting is how often we still ignore them in practice.

    Especially things like “every system grows more complex over time” — you can see it in almost any project after a few iterations.

    I think the real challenge isn’t knowing these laws, but designing systems that remain usable despite them.

  • mojuba 1 hour ago
    > Get it working correctly first, then make it fast, then make it pretty.

    Or develop a skill to make it correct, fast and pretty in one or two approaches.

    • AussieWog93 1 hour ago
      I recently had success with a problem I was having by basically doing the following:

      - Write a correct, pretty implementation

      - Beat Claude Code with a stick for 20 minutes until it generated a fragile, unmaintainable mess that still happened to produce the same result but in 300ms rather than 2500ms. (In this step, explicitly prompting it to test rather than just philosophising gets you really far)

      - Pull across the concepts and timesaves from Claude's mess into the pretty code.

      Seriously, these new models are actually really good at reasoning about performance and knowing alternative solutions or libraries that you might have only just discovered yourself.

      • mojuba 1 hour ago
        However, a correct, pretty and fast solution may exist that neither of you have found yet.

        But yes, the scope and breadth of their knowledge goes far beyond what a human brain can handle. How many relevant facts can you hold in your mind when solving a problem? 5? 12? An LLM can take thousands of relevant facts into account at the same time, and that's their superhuman ability.

    • theandrewbailey 1 hour ago
      Modern SaaS: make it "pretty", then make it work, then make it "pretty" again in the next release. Make fast? Never.
  • wesselbindt 1 hour ago
    Two of my main CAP theorem pet peeves happen on this page:

    - Not realizing it's a very concrete theorem applicable in a very narrow theoretical situation, and that its value lies not in the statement itself but in the way of thinking that goes into the proof.

    - Stating it as "pick any two". You cannot pick CA. Under the conditions of the CAP theorem it is immediately obvious that CA implies you have exactly one node. And guess what, then you have P too, because there's no way to partition a single node.

    A much more usable statement (which is not a theorem but a rule of thumb) is: there is often a tradeoff between consistency and availability.

    • urxvtcd 3 minutes ago
      Well, ackchyually, you can not pick P, it's just not cheap. You could imagine a network behaving like a motherboard really.
  • WillAdams 2 hours ago
    Visual list of well-known aphorisms and so forth.

    A couple are well-described/covered in books, e.g., Tesler's Law (Conservation of Complexity) is at the core of _A Philosophy of Software Design_ by John Ousterhout

    https://www.goodreads.com/en/book/show/39996759-a-philosophy...

    (and of course Brook's Law is from _The Mythical Man Month_)

    Curious if folks have recommendations for books which are not as well-known which cover these, other than the _Laws of Software Engineering_ book which the site is an advertisement for.....

  • bpavuk 51 minutes ago
    > This site was paused as it reached its usage limits. Please contact the site owner for more information.

    ha, someone needs to email Netlify...

  • tfrancisl 1 hour ago
    Remember, just because people repeated it so many times it made it to this list, does not mean its true. There may be some truth in most of these, but none of these are "Laws". They are aphorisms: punchy one liners with the intent to distill something so complex as human interaction and software design.
  • Symmetry 1 hour ago
    On my laptop I have a yin-yang with DRY and YAGNI replacing the dots.
  • serious_angel 1 hour ago
    Great! Do principles fit? If so, considering presence of "Bus Factor", I believe "Chesterton's Fence" should be listed, too.
  • vpol 1 hour ago
  • bronlund 1 hour ago
    Pure gold :) I'm missing one though; "You can never underestimate an end user.".
  • grahar64 2 hours ago
    Some of these laws are like Gravity, inevitable things you can fight but will always exist e.g. increasing complexity. Some of them are laws that if you break people will yell at you or at least respect you less, e.g. leave it cleaner than when you found it.
    • stingraycharles 2 hours ago
      Lots of them are also only vaguely related to software engineering, e.g. Peter Principle.

      It’s not a great list. The good old c2.com has many more, better ones.

    • layer8 1 hour ago
      Physical laws vs human laws.
  • duc_minh 52 minutes ago
    Is it just me seeing the following?

    Site not available This site was paused as it reached its usage limits. Please contact the site owner for more information.

    • rtrigoso 52 minutes ago
      not just you, I am getting the same error
  • James_K 1 hour ago
    I feel that Postel's law probably holds up the worst out of these. While being liberal with the data you accept can seem good for the functioning of your own application, the broader social effect is negative. It promotes misconceptions about the standard into informal standards of their own to which new apps may be forced to conform. Ultimately being strict with the input data allowed can turn out better in the long run, not to mention be more secure.
  • andreygrehov 10 minutes ago
    `Copy as markdown` please.
  • d--b 1 hour ago
    It's missing:

    > Any sufficiently complicated C or Fortran program contains an ad hoc, informally-specified, bug-ridden, slow implementation of half of Common Lisp.

    https://en.wikipedia.org/wiki/Greenspun%27s_tenth_rule

    • tgv 1 hour ago
      Shouldn't it also be able to read email? I think that was a law too.

      Anyway, the list seems like something AI scraped and has a strong bias towards "gotcha" comments from the likes of reddit.

  • IshKebab 1 hour ago
    Calling these "laws" is a really really bad idea.
  • threepts 1 hour ago
    I believe there should be one more law here, telling you to not believe this baloney and spend your money on Claude tokens.
  • _dain_ 2 hours ago
    I have a lot of issues with this one:

    https://lawsofsoftwareengineering.com/laws/premature-optimiz...

    It leaves out this part from Knuth:

    >The improvement in speed from Example 2 to Example 2a is only about 12%, and many people would pronounce that insignificant. The conventional wisdom shared by many of today’s software engineers calls for ignoring efficiency in the small; but I believe this is simply an overreaction to the abuses they see being practiced by penny-wise- and-pound-foolish programmers, who can’t debug or maintain their “optimized” programs. In established engineering disciplines a 12% improvement, easily obtained, is never considered marginal; and I believe the same viewpoint should prevail in software engineering. Of course I wouldn’t bother making such optimizations on a one-shot job, but when it’s a question of preparing quality programs, I don’t want to restrict myself to tools that deny me such efficiencies.

    Knuth thought an easy 12% was worth it, but most people who quote him would scoff at such efforts.

    Moreover:

    >Knuth’s Optimization Principle captures a fundamental trade-off in software engineering: performance improvements often increase complexity. Applying that trade-off before understanding where performance actually matters leads to unreadable systems.

    I suppose there is a fundamental tradeoff somewhere, but that doesn't mean you're actually at the Pareto frontier, or anywhere close to it. In many cases, simpler code is faster, and fast code makes for simpler systems.

    For example, you might write a slow program, so you buy a bunch more machines and scale horizontally. Now you have distributed systems problems, cache problems, lots more orchestration complexity. If you'd written it to be fast to begin with, you could have done it all on one box and had a much simpler architecture.

    Most times I hear people say the "premature optimization" quote, it's just a thought-terminating cliche.

    • dgb23 31 minutes ago
      > In many cases, simpler code is faster, and fast code makes for simpler systems. (...)

      I wholeheartedly agree with you here. You mentioned a few architectural/backend issues that emerge from bad performance and introduce unnecessary complexity.

      But this also happens in UI: Optimistic updates, client side caching, bundling/transpiling, codesplitting etc.

      This is what happens when people always answer performance problems with adding stuff than removing stuff.

    • Xiaoher-C 1 hour ago
      [dead]
  • milanm081 3 hours ago
    [dead]
  • Antibabelic 1 hour ago
    Software engineering is voodoo masquerading as science. Most of these "laws" are just things some guys said and people thought "sounds sensible". When will we have "laws" that have been extensively tested experimentally in controlled conditions, or "laws" that will have you in jail for violating them? Like "you WILL be held responsible for compromised user data"?
    • horsawlarway 1 hour ago
      At least for your last point... ideally never.

      Look, I understand the intent you have, and I also understand the frustration at the lack of care with which many companies have acted with regards to personal data. I get it, I'm also frustrated.

      But (it's a big but)...

      Your suggestion is that we hold people legally responsible and culpable for losing a confrontation against another motivated, capable, and malicious party.

      That's... a seriously, seriously, different standard than holding someone responsible for something like not following best practices, or good policy.

      It's the equivalent of killing your general when he loses a battle.

      And the problem is that sometimes even good generals lose battles, not because they weren't making an honest effort to win, or being careless, but because they were simply outmatched.

      So to be really, really blunt - your proposal basically says that any software company should be legally responsible for not being able to match the resources of a nation-state that might want to compromise their data. That's not good policy, period.

      • Antibabelic 1 hour ago
        Incidents happen in the meat world too. Engineers follow established standards to prevent them to the best of their ability. If they don't, they are prosecuted. Nobody has ever suggested putting people in jail for Russia using magic to get access to your emails. However, in the real world, there is no magic. The other party "outmatches" you by exploiting typical flaws in software and hardware, or, far more often, in company employees. Software engineering needs to grow up, have real certification and standards bodies and start being rigorously regulated, unless you want to rely on blind hope that your "general" has been putting an "honest effort" and showing basic competence.