81 points · by rzk · 3y ago · 71 comments
Almost all of the hard problems in the world are straightforward coordination problems. The few that aren’t come to mind much easier because they’re much more legible than coordination problems.
To paraphrase a saying, amateurs discuss effort and professionals discuss impact and in whatever field you’re in, with a few tiny notable exceptions, once you reach beyond a certain magnitude of impact it becomes 95% about solving coordination problems.
My career trajectory bought it come for me, intermittently contracting for/with a UK govt acquisition organisation buying systems for Govt customers.
Task: make these disparate systems speak to each other
* Q: Why don't the systems use the same protocols?
* A: They are delivered by different contractors
* Q: Why don't the contractors use the same (existing) standard?
* A: They aren't incentivised to do contractually
* Q: Why do they have different types of contract?
* A: Because each one is contracted by a separate acquisition team
* Q: Why don't the acquisition teams use common requirements / contracting / technical / etc approaches?
* A: Because they are separately funded by different customers
* Q: Why don't the customers speak to each other?
* A: decades of institutionalised rivalries and differences of opinion regarding apparently common problems
It took me about ten years to work down this list, understanding each layer. One of my most satisfying career moments was when I was asked to brief a senior customer decision maker who owned the resulting mess, and drew them a diagram showing the layers. He then set in motion a top-down alignment of the bit he could directly control: requirements writing. The belief was that getting consistent requirements would be a good starting point that would hopefully flow down the organisations involved.
[Edit] Another problem with increasing coherence in this way is that it costs money (e.g. to adopt / set up the standards / protocols involved). Money that could be spent delivering customer requirements, and which PMs are reluctant to spend on 'under the bonnet' techie things the customers won't see let alone understand.
Given the framing, I need to ask: what was the impact of the updated requirements, or has there not yet been sufficient time to tell?
As my career progressed, I got a better handle on the genuine cultural issues behind some of the customer-level differences. For example, one particular category of user had very different career progressions / longevity in different parts of the overall organisation (heroes in one part, zeros in the other, approximately). This affected the relative prioritisation of the relevant requirements by the respective customers, and the perceived value and affordability of solutions, in a way that overshadowed the tech-focussed arguments younger-techie-me would have made.
If you’re reading this as a junior engineer anywhere and don’t quite understand it, just print it out and hang it by the bathroom mirror right next to your operator precedence table.
There’s a reason why nerds who grokked this became masters of the universe for a few solid decades.
A) is close to impossible while b) is deeply in the realm of never ever not even close. Now imagine that for any number of individuals across a complex network of social connections.
It’s common for huge government programs like the Space Shuttle, F-35, California High-Speed Rail etc to try and satisfy a widest range of different groups and therefore be N increasingly poor solution for any one group. In such cases the root problem isn’t finding the optimal solution to make everyone happy, the root problem is picking which groups get what they want and are willing to pay for it such that a project works well.
It could easily be the correct solution is to abandon a project early rather than waste a great deal of time and money either directly or by to upsetting some groups who will block the project. The same applies inside of organizations, though it’s less obvious from the outside.
Should array indices start at 0 or 1? My compromise of 0.5 was rejected without, I thought, proper consideration. - Stan Kelly-Bootle
The examples you listed above are what I would call 0.5 solutions. To me, these are straightforward co-ordination problems that failed to find a solution and then devolved into optimization problems that failed to find the right local minima because the problem formulation was flawed in the first place.
Co-ordination problems aren't fuzzy and nice almost all the time. A lot of solving co-ordination problems is getting two people to agree to knife the third to make the problem go away.
Coordination only applies within some group, so your example is showing coordination bias. By assuming everyone needs to agree to something you’re failing to optimize.
Pulling the plug doesn’t look good appealing when this project is your livelihood, but looking after stakeholder’s interests isn’t always the same thing as continuing to collect a paycheck. Thus at the root of such projects should be an optimization problem not a coordination one.
How much of the world is spent working on truly greenfield R&D vs how much attention do we pay to it in the media, in our discussions and as examples that we use when we try and convey abstract concepts?
As an uncanny cosmic coincidence would have it, today is an anniversary of the Third Council of Constantinople, counted as the Sixth Ecumenical Council [1] by the Eastern Orthodox and Catholic Churches, as well as by certain other Western Churches. The Council met in 680-681 AD and condemned, wait for it: monoenergism and monothelitism as heretical.
Coordination problems are not even "problems". They are the stuff of Homo Sapiens social life. The underlying reality, to the extent it exists at all, is but an excuse to engage in enthusiastic formation of competing clans.
If people can engage in passionate discussion (all the way to actual destructive war) over "monoenergism" they can also do so about Python 2 versus 3 or any other harebrained perpetual holy war in tech.
[1] https://en.wikipedia.org/wiki/Third_Council_of_Constantinopl...
I used it in a game theory class to teach distribution, thresholds and coordination.
Take a pile of pennies and give one to every member of the class. A group of about 100 in a large lecture theatre is best.
Now tell them that if they agree to invest in your scheme by pitching their penny, you will guarantee to give them two pennies (2x sure ROI) just for participating... BUT IFF more than say 75% of the group invest. If less than three quarters of the group invest, the investors lose everything.
Watch in amazement!
Slowly lower the participation threshold.
You can get it down to 40% sometimes, with more than half the class literally screaming at each other "Don't you fucking understand you idiots!". The minority still hold out and claiming it's a con and dig in even more as the threshold lowers.
Controversially. I sometimes then use that to teach leadership/demagoguery by acting as (or selecting someone else to act as a stooge) coordinating authority and order them all to invest.
It's actually terrifying to see how democracy succeeds or fails based on the flimsiest of information paths and communication factors.
I'd say what you're witnessing is instead a debate about whether people are trustworthy or not, plus some attention/status seeking, preexisting social dynamics in the group, and people just having fun stirring up trouble.
That is the basic reason why these games played in academic settings are useless for understanding the actual world outside academia.
Technology Holy Wars Are Coordination Problems - https://news.ycombinator.com/item?id=23753477 - July 2020 (39 comments)
Extends way further than programming and could be applied to Metric/Imperial measuring, english as de-facto international language vs Esperanto and such
Maybe also with a lindy-ness bias -- X might be more popular than Y at time T, but X came out of alpha at T-1 and Y released version 17 at T-5. But those two rules will carry you very very far if you want to focus on building instead of picking.
This, however, is just hurtful, no need calling my tech stack irrelevant just because it's kinda true:
> People have ceased to debate Emacs vs vim not because any consensus was reached or either one disappeared, but because both are now niche editors which are more threatened by a common enemy—giants like Visual Studio Code or Eclipse or Sublime Text.
* [if you use vim, insert Gimli/Legolas meme here]
That's why Python 2.7.x was kept alive an updated for several years, the Python 3 Wall of Shame existed, new projects were started in Python 2 by default anyway, and so on.
In hindsight it may be easy to forget how BAD it was.
I think one mistake was promoting the "2to3" converter early on. It turned out better to add a couple features to python2.7 and python-3.2/3.3/3.4 which made it quite feasible to write code compatible with both.
It is perhaps ironic that writing code that deals with str/unicode/bytes across both python2 and python3 is a bit more complicated than just python2 - but, again, still doable. I did it for years, many popular libraries did it for years, until recently dropping python2 support. It worked.
The major issues (imo):
* Reliance on extending the runtime via the C-bindings (and that changing)
* A community that had largely gotten accustomed to stability being thrust into an enormous change all at once
I think people tend to be in a camp of either "this was good and needed to happen because python had unshakable warts" or "this was bad and we should have lived with language mistakes forever". I think both of those camps conflicting is really what made it really painful - breaking changes were held for years and then once one got in they all came. I think the reality is that coming up with a migration plan incrementally working towards it would give developers more time to focus on one upgrade rather than a full rewrite. Node gets a bad reputation for being "chaotic" or "constantly changing" but the changes are small and manageable comparatively. Go on the other hand has managed to maintain strong stability, but with an ecosystem that's working primarily in the core language rather than the implementation language (C for python).
I think the python 3 merge did a ton of damage to the community's willingness to encourage breaking changes that are needed and it's why packaging and runtime self hosting have been comparatively weak despite a huge userbase.
Not breaking apis is a great ideal but if you have to, breaking them in planned, bite-sized, frequent bursts is often MUCH MUCH better than once a decade.
There was no way to use python 2 libraries in python 3. This, right out of the gate, made them feel more like different languages than a migration, and forced people to delay their own migration until all their dependencies had migrated.
(Example of how to do it properly: "netstandard" in C# libraries could be used in .Net Framework and .Net Core, despite those being very different runtimes. Heck, even the ancient Microsoft "_UNICODE" migration where all your functions got macroed to either functionA/functionW depending on which string type you were using was less miserable.)
Within that, it was difficult to migrate code file-at-a-time. If your project had really good isolation between modules and they all had separate matching unit tests, then you had a good chance. Otherwise it was "run program, whack bug, repeat x1000".
After a while libraries (six, future) were developed to allow you to write polyglot code that generally worked in both. This mitigated the print() issue. print() was less of a problem for large projects, more a problem for novices with outdated tutorials, and people with large script collections all of which broke individually.
Changing the string type, and return type of lots of IO functions, in a non-typechecked language, caused total mayhem. Suddenly all sorts of code which never cared about character encoding was forced to.
All the people who screamed and yelled so much that they prevented Python 2 from having significant breaking changes. That meant that the needed changes kept piling up until the list was gigantic.
People forget that the Python 3 thing wasn't done in a vacuum. All the important people in Python had direct memory from the upgrade of Python 1 to Python 2 and what a big fiasco that was.
So many people dragged their feet on that that Guido et al. made a point of making 3.0 have hard, breaking changes in an attempt to force the upgrade through in a timely fashion instead of the long, drawn out, painful process that was the Python 1 to Python 2 change.
We all know, in hindsight, that the forces of inertia were FAR more intransigent than Guido and Co. estimated. However, that wasn't obvious looking forward.
I'm not sure there was any good solution. People would have pissed and moaned no matter what.
I didn't imagine they'd made a breaking change affecting the print statement which, of course, no beginner-learn-python site was yet aware to warn you about. The error message at the time was not so helpful as it is now.
Additionally, because so many of the core libraries were 32-bit only or Python 2 only, you ended up having to either write your own version of them or just go back to 32-bit Python 2. Numpy in particular (and therefore transitively anything halfway useful for science and engineering) took several years to stabilize and I have many memories of having to dig into things like https://www.lfd.uci.edu/~gohlke/pythonlibs/ to get unofficial but viable builds going for the Windows machines we used. It was enough of a pain to deal with dependencies that I actually ended up rolling my own ndarray class that was horrendous but just good enough to get the job done.
- Simply put, print was ` print "text" ` instead of ` print("text") `. Looking back, this was such an annoying habit to break; but if you're codebase had thousands of print statements, that becomes thousands of changes
- range(3) used to return a list [0, 1, 2] while Python 3's range(3) returns an object. If your codebase relied on that explicitly created list, then it'd break in Python 3.
- Division was originally integer division, so again if you expected an integer and are now getting a float (with a non-numeric decimal point), then more crashes
- except used to be except (Error1, Error2) as e and Python 3 explicitly requires each except to be on their own exception catch
All in all, tons of changes that you'd need to do before switching otherwise your codebase would crash. It also meant you couldn't rely on Linux's default Python (2.7). I never needed to make the switch on a production base, but hopefully you can see why someone would drag their feet
[edit] Python was also still a "new kid on the block" of languages. Its popularity was growing, but since it was not an industry standard yet, these systems were mostly through hobbyist, so I imagine there was plenty of just trying to find that mythical "free time" I keep hearing about.
* A lot of libraries were not ported for many years
* People kept repeating that "Python 3 is not ready yet", because they read an old statement on Stackoverflow and didn't consider that this might change in only a few years.