172 points · by stanrivers · 5y ago · 123 comments
Say I'm designing a distributed replication protocol, basically trying to discover Paxos from first principles. So I start with things that don't work, like "fire the packets off at each server and hope they arrive in the order I sent them". So I close that gap. Then find the next problem, and close that, and so on. That finds a lot of problems, but doesn't necessarily find the solution: the space of problems is dense, but the set of solutions is small and tightly clustered in a few "islands". So I can churn through loads of broken protocols without identifying the key insight that leads to a working protocol. In the case of Paxos, that's having acceptors return their previously accepted values and having proposers drive those values instead of their own proposals. It's a brilliant insight, which doesn't seem to lead directly from the set of problems.
Then there's the issue with enumerating badness. What are all the ways a server can suffer gray failure? Spend a minute writing them down (bad RAM, bad RAM that still passes ECC, CPU corrupting floating point calculations, etc etc). Ask a colleague to do the same. Compare your answers, and you'll likely find their list of badness is different from yours. This is where you need, again, a simplifying insight (like "look from the outside" or "use a quorum" or whatever). In other words, sometimes it's easier to enumerate goodness than badness.
I don't mean to attack a strawman version of this way of thinking. It's a useful tool. But it's one analysis tool, and it's worth being careful of applying it to the exclusion of other ways of analysis that lead more directly to the synthesis of the "correct" answer.
Students usually think it’s funny, and it’s often not hard for them to invert the steps to avoid the outcome. For example, if step one of being great at drowning is “get drunk,” then students understand you’re telling them not to drink while boating.
It helps students acknowledge the reality that outdoor sports can be dangerous, but without getting too serious, and giving them clear steps to reduce the risk.
Telling someone to not drink on a boat is a prescriptive rule. Telling someone not to drink on a boat because being drunk will make it easier for them to drown is too vague. Including specific reasons might help, but it is easy for the student not to internalize these explanations, especially since they would likely prefer to not think about drowning.
Turning this around puts the negative outcome, drowning, in the forefront. This puts the focus on the reason why the rule was created. By thinking about why being drunk will increase their chances of drowning, they will better understand why they should follow the "no drinking" rule. In your case, it sounds like you even have them derive the rule itself. This requires at least some thought about the issue and should make it more likely that they will both remember and follow the rule.
I would guess that this technique is most effective when the negative outcome is severe and/or something the student doesn't want to think about (e.g. dying). By focusing on how to cause these negative outcomes, the student is forced to think about things they may otherwise try to avoid.
It also seems that this technique is effective when the positive outcome is the negation of the conjunction of the negative outcomes. For example, consider the goal of "staying safe while boating". Being safe is easiest to define as not doing any of the things that increase the chance of danger, or, in other words, "not being unsafe". Being unsafe in general is the conjunction of all the ways of being unsafe specifically ("NOT being drunk while boating" AND "NOT entering the water without a life jacket" AND ...). Being safe requires avoiding unsafe outcomes. By flipping the goal, it becomes more clear that we need to figure out what the unsafe outcomes are. Once these are determined, we can start to come up with ways to avoid them.
This is pretty darn close to https://en.wikipedia.org/wiki/Apophatic_theology : I can't tell you what The Good Thing is, but I can tell you many things that it is _not_.
Disproving a hypothesis is much easier than proving one.
TRIZ seems to admit of situations where basically, you don't know enough about what your hypothesis ought to be that 'the scientific method' won't get you far enough, so you must proceed by walling off as much of your search space as possible as fast as possible by prioritizing the rejection of negative outcomes rather than identification of positive ones.
Now apply the "reverse thinking" described in the article. To enable the development of more pilots, work on increasing the number of small airfields.
Apply this to your own world. What do you need to do to increase the pipeline of talent available to your company?
The origin story for the RaspberryPI is a prime example:
https://www.zdnet.com/article/we-thought-wed-sell-1000-the-i...
Are you describing covid lockdown efforts and the US economy?
The only intended political statement was about the importance of small airfields.
It isn't theoretically ideal, but it's a lot better than not thinking this way.
By first designing the test that would make the code fail, then making sure it fails, then create the code to have the test pass, you kind of change the way you think about the original problem, and it sometimes helps.
TDD only catches assumed known failure modes.
[0] https://www.independent.com/2021/10/28/architect-resigns-in-...
This is total conjecture but I can imagine him doing something like this: Question: how do you make students the most miserable? Answer: create a dorm that discourages social interaction, and is far from classes and amenities.
Starting from that, you do the opposite: create a large, centrally located dorm where the design discourages sitting in your room and encourages use of shared spaces while benefiting from greater density and central location.
If the question is "are windowless rooms good?" the answer is "no." If the question is "are we willing to sacrifice bedroom windows so that we have grater communal life and better walkability" the answer is probably "yes, possibly."
Logically it's the same argument for why some people prefer to live in small city apartments when they could live in a much larger home elsewhere for the same price. The very nature of city real estate is tied to the nature of city life (both as a cause as an affect) and it's simply a tradeoff. Asked on its own "do you want a cramped apartment" the answer is always "no" yet people often opt for it in context.
To be fair, an architect with 15 years on the UCSB Review Committee resigned over this... so it's not just outsiders and the media who are bagging on the design.
https://www.independent.com/2021/10/28/architect-resigns-in-...
So yes, I agree that the UCSB dorm design sounds terrible in comparison.
Sometimes, we are stuck in a local optimum, and a new redesign is needed, which involves some tough calls and unusual solutions.
As for a bedroom without windows, when I sleep I like that my bedroom is dark. When I don't sleep, I'm not in my bed or my bedroom.
So I'm not exactly sure what people complain about his design.
And I would also say if you are a professional who got cut out of the process, you are gonna be pissed off no matter what.
not to say this architect is bad/wrong, just that he doesn't exactly have any incentive to celebrate this.
By whom? A suspicious site with terrible English and reviews like “you’ll get used to it” and “grat (sic) room”. If Amazon can’t keep scammy reviews away, how is some site like “veryapt” supposed to do so? It seems there is plenty of criticism of the Michigan project (even from residents)[1], but it also differs in a key point, in that all the rooms are suites, whereas the proposed project is even denser, with 8 bedrooms sharing 2 bathrooms a piece.
[1]https://www.reddit.com/r/UCSantaBarbara/comments/qkmp5h/i_wa...*
Also good reviews on google - 4.5/5 similar to the above.
https://en.wikipedia.org/wiki/Pruitt_Igoe
"Apartments clustered around small, two-family landings with tenants working to maintain and clear their common areas were often relatively successful. When corridors were shared by 20 families and staircases by hundreds, public spaces immediately fell into disrepair.[20] When the number of residents per public space rose above a certain level, none would identify with these "no man's land[s]"
One would expect that a major University building would not suffer from disrepair but the psychological effect of "disowning" the common areas might remain.
The apartments in Pruitt-Igoe were also deliberately small.
For starters the units are much smaller and each suite of rooms has it's own little semi-public area instead of being a completely windowless block like his new design. The difference between the two is vast.
https://detroit.cbslocal.com/2021/11/03/heres-what-its-like-...
https://www.reddit.com/r/UCSantaBarbara/comments/qkmp5h/i_wa...
Works for the Navy.
Being a fellow HN'er, I'll follow suit:
The most obvious response to Munger's critics is, "Then don't live there." The U.S. is blessed with a huge number of universities, meaning lot's of choice. Particularly for those individuals with the type of accomplishments that would get them into UCSB. (It's not Stanford, but it is very selective)
The University of California system is owned by, and created for the benefit of, the people of California. Decisions about how it should be run and what the dorms should look like should be made by democratic institutions and accountable to the public through regular elections.
Billionaires are blessed with a huge number of leisure time activities and ways to feed their own outsized egos, meaning lots of choice. Particularly for those individuals with the type of money that would allow them to donate entire large buildings.
Perhaps he could engage in those activities, and limit his interaction with public institutions to paying his fair share of taxes, and casting the single vote to which he is entitled.
(The “two entrances” argument I think is kind of irrelevant, skyscrapers only have one entrance and it works out fine).
https://hn.algolia.com/?q=+%09+%09Suppose+I+Wanted+to+Kill+a...
This generally invokes good/ heated discussion on how not to do things - which always seems to get poeple talking - as opposed to asking people what they think is the best way forward. People are better at telling you how thngs can't work than saying how to make things work
Keep track of all the choices and design decisions and do this iteratively and you have you least worse option.
I think I've accidently followed the TRIZ method
Unfortunately though, I have yet to run one that actually helped us avoid the exact risks we discovered!
From TFA:
> Now you have a list of actions to avoid. Avoiding them begins to move you away from failure and closer to reaching your goal.
Alternatively: Now you have a list of bad things and some ideas of what you would do or tooling you would need when bad things happen.
In the good case this is "boy scouts being prepared." In the bad case this is "hoarder preppers detached from reality with unnecessary firepower."
Because their early years are filled with people who are push back against this ability, their nature tends to devolve into unproductive reactions.
To be effective, you don't have to be just right; you have to convince others that you are right as well.
To give an extreme example, the Soviet engineer of this story was lucky Stalin died, because he certainly didn't understand the mindset of his interlocutor and wasn't well received.
This tends to be a problem with most poorly channeled abilities.
>Not unless the people you're explaining the problem to are receptive to your approach, and they don't think you're just a naysayer. You must explain what you are doing and, if possible, show good results you obtained through this method.
These are skills. They can be tough to develop in a vacuum; it may be impossible when push-back is the only feedback.
It’s easier to see where things go wrong than where they go right. You can just list wrong thing after wrong thing and a solution appears once you’ve scoped out the things that don’t work.
I actually like this train of thought. Though, to be fair, this is the basis for chaos engineering. How can we destroy production? By actually actively destroying production ALL THE TIME! This way, we design our production systems to be as reliable as possible
[1] https://en.wikipedia.org/wiki/Failure_mode_and_effects_analy...
What I hadn't considered is applying this technique to more general (non-technical) life problems/optimizations.
> Believing he was on to something, he got a little excited and sent Joseph Stalin a letter in 1948 criticizing the lack of innovation within the Soviet system. This earned him a political prisoner title and a 25-year sentence in the Gulag Archipelago."
Sending letters to Stalin is one of the ways to fail miserably in 1948.
This sort of sounds like the old joke of asking a sculptor how they carved a horse and the sculptor reply's: "Start with a block of stone and remove everything that doesn't look like a horse."
https://nilsaparker.medium.com/the-angel-in-the-marble-f7aa4...
See, asking this question doesn't really help in making software more crash-free.
I would have a function call itself recursively a million times deep.
I would use a pointer that was set to a random value.
I would return the address of an automatic (i.e. stack) variable from a function and use it later.
I would allocate resources in a loop and never deallocate them.
Rust seems to be working exactly along this line of thinking -- at least their obsession with "safety".
Solution: replace HDDs with SSDs
I think you have to be more specific for it to work faster, there's plenty of ways to crash a computer that doesn't even involve software never mind if you're writing the code too
Things were much, much worse 25 years ago.