444 points · by akkartik · 10y ago · 341 comments
Instead, in construction, they use a system of checks to ensure that different experts consult one another so that every decision is reviewed by a relevant expert.
I suspect that the "chief architect" approach that Brooks advocates may have become obsolete as well since the Mythical Man Month was written. Perhaps software developers could learn something from the newer methods that replaced the "master builder" model in construction.
I still remember the jolt I felt in 1958 when I first heard a friend talk about building a program, as opposed to writing one. In a flash he broadened my whole view of the software process. The metaphor shift was powerful, and accurate. Today we understand how like other building processes the construction of software is, and we freely use other elements of the metaphor, such as specifications, assembly of components, and scaffolding.
The building metaphor has outlived its usefulness. It is time to change again. If, as I believe, the conceptual structures we construct today are too complicated to be specified accurately in advance, and too complex to be built faultlessly, then we must take a radically different approach.
Let us turn nature and study complexity in living things, instead of just the dead works of man. Here we find constructs whose complexities thrill us with awe. The brain alone is intricate beyond mapping, powerful beyond imitation, rich in diversity, self-protecting, and selfrenewing. The secret is that it is grown, not built.
Can we grow designed software? Or, can we design truly growing software? I guess it depends on the definition of growing you use, "scalable" ? "alive" ?
So the model has its limitations for human projects where we don't want to have quite that propensity for surprising outcomes.
This is the Free Market vs. Planned Economy debate all over again.
s/is grown/has evolved/
By designing systems in layers of interacting components, we can grow more and more complex systems. The internals of different components are irrelevant so long as the external interface is consistent.
We evolve them by improving the interfaces (see APIs deprecating functions/methods/messages) and by refactoring/rewriting the internals or implementation.
I don't know. I get the feeling that large construction projects suffer from many of the same issues that affect software projects.
And every time something goes wrong enough to end up in the media, the reason is invevitably that the various contractors/experts didn't coordinate properly, that no one really feels responsible, that major design flaws were overlooked early on and now there's no way to undo them without going even further over budget. (Yes, I am aware of the selection bias)
Big projects are hard and their hardness increases disproportionately with size. If a project's goals are such that there can be no "master builder", then things become a lot riskier and they go wrong more often.
So I think what we actually want is a bazaar of projects where each project is architected and overseen by a master builder.
Like with the endless state vs market debates, it's always a question of balance, not one of either or.
I agree with your reasoning. It resonates with what for example Richard Brandson says about companies: split them up when you reach ~50 employees.
By splitting large projects into smaller sub-projects, we've now created the need for a higher level master builder to oversee how the sub-projects integrate, haven't we?
No, I think SOA and micro-services are technical considerations that have relatively little bearing on division of labour or organisational/project structure. You can statically link a library created by someone you don't even know, or you could have one huge dysfunctional in-house team split up a monolith into fifty different micro-services without creating any new ownership rules at all.
So I think splitting up projects in smaller subj-projects alone is not good enough if all it does is create a deeper organisational hierarchy based on exactly the same command and control principles as before. As you say, it just creates new planning issues on the next level.
We need manageable units of planning, and we need to know when things become too complex for planning and require some principle of self organisation. The difficulty is that self organising systems are not easily steered towards a single goal.
It's interesting that you quote Branson, because the most important feature of a separate company is that it is a unit of economic responsibility and ownership. It usually serves more than one customer, unlike a micro-service that is a fragment of some in-house monolith. And it sets its own goals, mostly independently.
Traditional multidisciplined engineering domains (aerospace, automotive, marine) have been using this model for decades. It's about time that kind of engineering rigor came to software.
While the product manager in practice is usually a glorified secretary getting beaten by both management and engineering.
Microsoft could probably rewrite Windows at great expense to use 10% as much code and it would still be a bloated mess. But, well why would they waste the money?
Cathedrals are not, generally speaking, profitable. They represent the expenditure of lots of capital over a long period of time.
Bazaars don't cost much to start. You can start quite small and have a functioning system that does useful things for people. They can grow quite large, and when they grow too large it becomes difficult to find exactly what you want without a really good map. But you can probably quickly find a bunch of things that are more or less close to what you want.
Cathedrals are not easy or cheap to repair, but the investment is so large that people usually prefer to repair them. A bazaar that doesn't work out makes some local people sad, but they will go to another bazaar that is a little less convenient for them, and perhaps do better there.
It's nice to have some cathedrals, because they feed the soul. But you need to eat every day, so there will always be bazaars, and if you need to make a choice, the bazaar is going to win unless you have a lot of resources stored up to fall back on.
Shopping malls aspire to be beautiful (primarily on the inside), but they can never be as beautiful or as well-architected as cathedrals, in form or in spirit.
Shopping malls have a bigger overhead than bazaars, and are less flexible. But their overhead is much less, and their flexibility much greater, than that of cathedrals.
Shopping malls provide more foundation and infrastructure than bazaars do. A bazaar minus its stalls is just a dusty field. A shopping mall minus its shops still has multiple levels, maps / directories, elevators / escalators, parking, loading docks, etc.
It costs more to set up shop in a mall than in a bazaar, but your shop will be more trusted, you won't have to squabble for space with your neighbours every day, and you won't get blown away by the next storm.
Shopping malls are designed with dedicated spaces that are tailored to different businesses. A supermarket has very different needs compared to a shoe shop.
Shopping malls are bazaars with a tonne of design, engineering, and regulation thrown in. But they're still bazaars. They're still where you get your groceries.
Kind of like if the iOS App Store only had room for 15 apps, and Apple Inc decided which, and the roster was only updated every few years at most.
are you the one who writes "The Shopping Mall and the Bazaar" and leads us into a better era?
This is getting lost in the metaphore, instead of the topic. Architected software is profitable.
It's essentially like you only made building tools for cathedrals, and no tools for thatched stick homes, and you create a culture around always building a cathedral so no one really knows how to build a thatched home. Essentially, creating a market irregularity through cultural expectations about how serious software has to be and who is going to be writing it.
(The complaint people always make when I say this is that making software isn't easy, it's hard, and notices couldn't possibly build useful software. I would half agree: some software problems are hard, and require a grizzled developer and some hard planning. But much of software involves no difficult computer science problems, and is more about understanding requirements well enough to be able to assign them to the right basic programming primitive, or a handful of common libraries. This is the kind of code that we use cultural friction to keep inside Engineering, and build cathedral-style, even though it could be done in thatched-home style by notices, if we structured our codebases for that.)
Most of the tools I see for software development seem to be organized around the needs of the bazaar (or thatched huts) not the needs of the cathedral. A million toy languages which might solve your problem well, but don't scale to a million users. Websites like GitLab and GitHub so you can share last week's 1 kloc project with collaborators. Libraries that do that one weird thing you need for your project, and nothing else.
By comparison, the cathedral builders (Google, Facebook, Apple, Microsoft, etc.) seem to be building a lot of their own tools. This includes programming languages, frameworks, build systems, version control, operating systems, and so many other things. They build their own stuff because the tools of the bazaar don't work quite well enough for cathedrals.
In all my decades of programming, I have never met a non-professional with good, let alone better sense of requirements. A layman does not think in terms of details; they think in terms of abstractions, often in terms of castles in the sky. The problem is that computers are the exact opposite of abstractions and castles in the sky: exact, unforgiving, and dumb.
In fact, in all my decades of programming and working with computers, in my journeys across two continents, the number of professionals with a good sense of requirements I have met can be counted on the fingers of my one hand. If that is not disheartening, I do not know what is. It's emotionally and psychologically devastating to me personally. It's extremely depressing to even think about it. What does it say about our profession?
As for writing tools for ourselves, learn UNIX, and then you'll learn of the UNIX programming model:
write programs which work with other programs; write programs with the notion that the output of your program could very well become another program's input. Write programs which accept ASCII input from other programs, for that is a universal interface. Be liberal in what you accept, and conservative in what you send.
What businesses want is not for software to be easier to build, that's what developers want. Businesses want software that can be more quickly used to solve their use cases. This is not an easy problem. That's why they hire engineers to solve it.
To be more clear, software is quite easy to build, easy does not mean quick. All the hard problems are solved through a library or a framework. The computer science problems left are too hard for even the professional developer to solve.
Software Engineers should specialise in knowing a lot of already written quality software, and they should be good at figuring quick ways to reuse them and combine them and adapt them to the businesses use cases.
1. Christianity, the group who builds Cathedrals, is probably the most profitable organization in the history of mankind.
2. Bazaars blow away when the wind picks up. If too many people show up, things start falling down. Cathedrals, and their close cousins, castles, last centuries.
3. I think Bazaars have their place, when you really need to ramp up something to show. We used to call that prototyping. If it gets past that, you gotta build it right eventually.
I think AutoDesk did this when Inventor came along, but I am not sure. A big re-write if ever there were one.
Like someone else said about Python, "it's a cathedral where it counts".
I don't need to be the richest organization ever. I'd be happy for 1000th place and those billions rather than overreaching for number one and the risk that entails.
Is that even a good thing? Aside from being beautiful artistic and historical works, I think that Cathedrals have outlived their usefulness. Just look at St. Patrick’s in NYC - that thing cost 177 million USD over 3 years just to restore it. I mean, obviously it's nice, but in terms of functionality it's a huge waste. You could build another 2 Lakewood Churches (each with a capacity of 16k people), using modern steel building techniques, just for the restoration costs of St. Patrick’s.
I can see the case for over-engineering on things that are effectively "solved" problems (hashing algorithm implementations, knife design, non-electrical hand tools, JSON parsers...) but when it comes to complex systems like buildings or operating system architectures, I don't think we're at a point of stability where anything should be expected to last centuries (or more than a few decades, in the case of software).
We're still seeing fundamental shifts in the assumptions that these systems are built on - whether it's the Cathedral that couldn't have possibly foreseen its stone arches being replaced by steel girders or the early mainframe OS that was designed before cheap computer clusters became the norm.
Business problem spaces don't last centuries. Algorithm do.
If you wanted tabs in Android prior to 13, you'd setup a TabHost with a LocalActivityManager ( https://developer.android.com/reference/android/widget/TabHo... ).
Then in version 11 ActionBar.Tab is added and LocalActivityManager is deprecated in version 13.
By version 21 they became bored with that and deprecated it ( https://developer.android.com/reference/android/app/ActionBa... ).
You wouldn't know it was deprecated though as the most current training documentation still recommends using this now-deprecated method ( https://developer.android.com/training/implementing-navigati... ). All you are left with is a pointer to a vague, ambiguous page in the context of the deprecation method. Welcome to the cathedral of Android developing.
BTW the release dates for these APIs:
API 11 - February 2011
API 13 - July 2011
API 21 - November 2014
The annoyance isn't that they changed it, it's that they didn't like the old way, so they changed it, then three years later they changed it again. They do this all the time. Plus they deprecated it, but still recommend the deprecated method in the tutorial, and leave it as a mystery how it should be implemented in current best practices.The current most up-to-date tutorial on their web site is chock full of recommending things which they deprecated already.
And what about customizing a Spinner's font and background color and popupBackground color and putting a non-standard element at the top?
And the amount of time it took before Android got percentage based spacing in layouts?
And the fun of remembering what UI attribute-values like android:gravity="center_horizontal", android:layout_centerHorizontal="true" and android:layout_gravity="center" mean?
And the awkwardness of using non-standard typefaces and using things like the RecyclerView and it's weird Adapter?
And the fact that for some reason they used an XML element named "layout" when they implemented their data binding feature?
And the fact that some attribute names are camelCased while others are underscore_cased?
And the ease with which memory leaks are introduced by inadvertently closing around context instances because you need context instances all over the place because the Activity is a god object?
It's all so very ... not ... like ... a cathedral.
Then we also have the whole story with the NDK, after 3 years having officially deprecated Eclipse, only now they are finally getting something comparable to the CDT.
The experimental Gradle plugin for the NDK still doesn't work that well, just got replaced by something else in the stable Gradle plugin, which is also kind of legacy support, because the way forward seems to actually be cmake. All because that is what Clion knows anyway.
And as usual for these things, it is documentated across Android samples, Git commit messages and blogs.
For more, see this perceptive comment: https://news.ycombinator.com/item?id=12251705
Not to mention the remains of NextStep. Also very Cacthedraly.
Edit: thinking about it, I wonder why Apple didn't keep using that name/brand. It's obviously there all over the API. Was the NextStep name/brand tainted as a doomed technology at the time?
The amount of productivity available to Mr. Kamp for free today is conservatively double or triple that available in 1999. Databases, web frameworks, scale know-how, IDEs, hosting platforms, the list goes on.
He harkens back, sadly, to an era in which codebases like Genuity Black Rocket cost $100k in licensing, and ran on $30k/month Sun servers. Seriously.
Languages are faster, development times are shorter, and chips are WAY faster. And, code can be pushed out for tinkering and innovation onto github for free. Combine that with his estimate that we have 100x more people in computing, and the combination is a riot of creativity, crap, fascinating tech and everything in between.
The bazaar is messy, but I'm not aware of any solid critiques which show cathedrals are more efficient at the multiples-of-efficiency kind of gains we get from legions of self-interested, self-motivated coders.
The article isn't about efficiency, it's about quality. The assertion is "Quality happens only when someone is responsible for it."
This is due to Moore's law, not the software design choices that the article bemoans. Those $30k/month Sun servers were many times faster and cheaper than the earlier machines they replaced as well.
We've had software and hardware gains, massive ones, and they compound.
I have to disagree, compilers may have gotten a bit better at making faster binaries. But languages, like new languages, are increasing in expressiveness and safety, sure, but very rarely efficiency. Go and Rust are not faster than C or C++, likely never will be (for one C has decades of lead time), Go and Rust may be faster than C was 20 years ago, but that doesn't matter.
Not generally, no. Maybe the popular ones become so, but that's mostly by rediscovering the languages of old, which had better safety and more expressive power.
I'm not sure how you can say Lisp is a cathedral; it's not even "a" anything. Common Lisp, Racket, Clojure, Emacs Lisp, etc., many of which are themselves bazaars. Ruby, for another example, may have started as one person's vision, but now the canonical implementation is a big multisourced effort, and there are other implementations with lots of uptake that aren't directed or blessed by the mainline Ruby.
You mentioned Common Lisp - it's a great example of a cathedral. A language carefully designed by a committee, which took into consideration all the previous Lisps that were in popular usage. You can tell there was a lot of thought behind the process.
As for Emacs and the bazaar, I think this is a good case study of good and bad aspects of bazaars. On the one hand, you have an incredibly flexible tool, which turns it into a perfect test environment optimizing workflow with text-based tasks. You have people writing Emacs modes for anything including kitchen sink, and it turns out many of those experiments offer superior workflow than standard, dedicated applications (especially when it comes to interoperability and maintaining focus/flow).
On the other hand, Emacs often requires you to hot-patch stuff here and there, and its language support is usually worse than that of a cathedral-like IDE dedicated to a particular programming ecosystem. And I say it as an Emacs lover. I still prefer Emacs to IDEs, but that's because of the flexibility benefits, which are unparalleled. But I'm not deluding myself that Emacs has better support for Java than IntelliJ, or better support for PHP than Eclipse, or whatever. For language ecosystems requiring complex tools to back them up, it's a PITA to set up your working environment in Emacs. Hence the negative side of bazaar - you don't get as much focused effort to make something of high quality.
Most of the original developers have long since moved on, there are design problems, various teams and managers rebuild or duplicate work, and management sometimes imposes big changes just before release.
Software quality is hard to judge from the outside, and takes longer to build.
Just take your Unix mentality and make a few substitutions:
* gcc -> cl.exe
* ar -> lib.exe
* ld -> link.exe
* make -> nmake.exe
* libfoo.so -> foo.dll
And there you have it, the world that "didn't exist before .NET" ... This is crazy amounts of ironic because Windows had DLLs at a time when shared libraries were not so much a thing on Unix. Not to mention things like COM which are all about creating de-coupled components.
I haven't seen anything since that allowed such decoupled development
As for COM, it seems to me that most common reason why something developed by some ISV is separate DLL is that it's COM component.
It is discussions like this which make me truly admire Douglas Adams for his insights and ability to express them.
For instance, when I read through the debate here, I can't help notice how many of the arguments are really variations of "It's a bypass! You've got to build bypasses! Not really any alternative."
'That is the sorry reality of the bazaar Raymond praised in his book: a pile of old festering hacks, endlessly copied and pasted by a clueless generation of IT "professionals" who wouldn't recognize sound IT architecture if you hit them over the head with it.'
I was hoping for some kind of expansion or attempt at a solution here (which of course would be non-trivial).
There's still too much money to be made on kludges for that to happen.
It's Akerlof's "Market For Lemons" writ large. Users can't assess the quality of software before they buy it and sink ages of their own time into learning it. Often users can't assess quality problems even after they've bought it. So the market isn't going to reward quality.
(The original paper was about cars; now we have software in our cars the problem is twice as bad. VW 'defeat devices' and Toyota 'unintended acceleration' passim).
At the very least, I would love to see companies created around popular open source tools and verticals to create designed end-to-end experiences. Download, double-click, start coding, and see something on the screen.
You just have to get out of the churn-for-churn's-sake cesspools. There are high-quality, stable software stacks out there, where the Cambrian explosions and rediscovery of ideas from a generation ago have already passed.
I don't use any of 'em. If you can afford to give the finger to those not running in a near-POSIX environment, you can just use makefiles or npm scripts: write your code, and run shell scripts to build it, the way God, Doug, Dennis, Brian, and Ken intended.
As for good dev environments, I will not leave my beloved emacs (C-x C-e in geiser-mode means that you can run your software as you write it, and I love it: Most dynamic languages have something similar), but that would intimidate newbies. Gedit and a shell is probably the best environment to start them with: It's about as simple as you get, and every developer is expected to have a rudimentary knowledge of shell, so best to start early.
Laughed for 5 mins on this. So true! Somehow we are expected to take this into stride.
Even if you do get online, don't forget to configure the MITM CA cert!
Next up, apps that try to execute from %LOCALAPPDATA% (Squirrel installers). This is blocked by most AppLocker configs.
Isn't "enterprise" computing fun?
It is true that configure scripts are probably doing some useless things, "31,085 lines of configure for libtool still check if <sys/stat.h> and <stdlib.h> exist, even though the Unixen, which lacked them, had neither sufficient memory to execute libtool nor disks big enough for its 16-MB source code", etc. But then what is the alternative? Writing a configure module each time by every programmer who wants to release some software? This is called code reuse and yes, it's not perfect but it saves time. By not reinventing the wheel again and again. By reusing something that is stable and has been there for some time. Probably such thing is generalizing over many architectures, and making useless things, but then again, who cares for some extra 5-10 seconds of the "configure" command, when you are covered for all those strange corner cases that it already handles?
You could start out removing the autocrap checks for <sys/stat.h> and <stdlib.h>.
Then you could eliminate all the other autocrap checks which come out one and the same way on every single OS in existence.
And in all likelyhood, you would find out that you don't actually need autocrap at all, because the remaining two checks can be done with an #ifdef instead.
Makefile.template
Makefile.SunOS
Makefile.Linux
Makefile.FreeBSD
and then if a new port is desired, just cp Makefile.template Makefile.'uname' && vi Makefile.'uname'
UNIX: keeping it simple since 1970.People who'd "kept it simple" like you suggest were the bane of my life. I spent more time debugging each of those builds than all of the builds that used actual tools combined.
(Ironically enough "all projects must use autotools" seems like a quite cathedrally attitude though)
For me, it's closer to a minute. "configure" is good enough that it does the job, and it's hard to replace it. "configure" is bad enough that I loathe it with emotions that words cannot describe. It's design is terrible. It's slow. It's opaque and hard to understand. It doesn't understand recursion (module code? pshaw!)
automake is similarly terrible I looked at it 20 years ago, and realized that you could do 110% of what automake does with a simple GNU Makefile. So... that's what I've done.
I used to use libtool and libltdl in FreeRADIUS. They gradually became more pain than they were worth.
libtool is slow and disgusting. Pass "/foo/bar/libbaz.a", and it sometimes magically turns that to "-L/foo/bar -lbaz". Pass "-lbaz", and it sometimes magically turns it into linking against "/foo/bar/libbaz.a".
No, libtool. I know what I'm doing. It shouldn't mangle my build rules!
Couple that with the sheer idiocy of a tool to build C programs which is written in shell script. Really? You couldn't have "configure" assemble "libtool.c" from templates? It would only be 10x faster.
And libltld was just retarded. Depressingly retarded.
I took the effort a few years ago to replace them both. I picked up jlibtool and fixed it. I dumped libltld for just dlopen(). The build for 100K LoC and ~200 files is about 1/4 the time, and most of that is running "configure". Subsequent partial builds are ~2s.
If I every get enough time, I'll replace "configure", too. Many of it's checks are simply unnecessary in 2016. Many of the rest can be templated with simple scripts and GNU makefile rules.
Once that's done, I expect the build to be ~15s start to finish.
The whole debacle around configure / libtool / libltdl shows that terrible software practices aren't new. The whole NPM / left-pad issue is just "configure" writ large.
Unfortunately, there are two problems.
1. They were all operating under different requirements.
2. They were all absolutely convinced that they were the best in the business and that they were right.
As a direct result, those of us who got to deal with more than one of the resulting systems want to beat them all to death with a baseball bat with nails driven into the end.
I don't mean that reason to use configure is bad. There are many different systems, and being compatible with them all requires some kind of check / wrapper system.
I mean that the design of "autoconf" and the resulting "configure" script is terrible. Tens of thousands of lines of auto-generated shell scripts is (IMHO) objectively worse than a collection of simple tools.
See nginx for a different configure system. It has a few scripts like "look for library", and "look for header file". It then uses those scripts multiple times, with different input data.
In contrast, configure use the design pattern of "cut & paste & modify". Over and over and over and over again. :(
It actually is kind of silly that you can't depend on this stuff being abstracted, but instead must individually test it instead of asking a reference on a given system.
"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36", indeed.
The build complexity is one of the reasons I stay away from Java: If these people think they need XML for builds, what other needlessly complex horrors have they perpetrated? And that sort of thing.
Do you have your buildscript template on github?
No, he suggested writing the code to be cross-platform so that configuration at compile time is unnecessary.
Building freebsd-7 ports on my athlon felt like "forever and 2 more days" back then. If it is not possible to remove autoconf/configure with all obsolete options, can we at least PLEASE stop doing the same thing again and again 220 times for each small package in enormous dependency list? Caching, anyone?
https://en.wikipedia.org/wiki/Grand_Bazaar,_Istanbul#History
Maybe the ecosystem needs a good fire to clear out the diseased old growth?
Ehhh, the analogy works better in terms of competing species. If a stronger invasive species rolls in and takes over due to raw excellence, we can see the eviction of the old cruft. For example, once the dust is finally settled in a few more years, we may come to see systemd as such a force.
unix is the bazaar enabler. An OS that is so simple as to be mostly useless without third party additions but also without enough of an overall design to give the third parties much of a guide on how things should fit together. The mess that unix enabled is also the reason we can't get away from it and move on to better architectured systems.
But I like understanding the code, so I read and read and puzzled and fended off "hurry up" comments.
And then I added two lines and it basically worked.
I am in favour of a slow code movement (http://www.mikadosoftware.com/articles/slowcodemovement) which seems relevant here.
Even better was a guy I worked with, physics PHd from central China, whose daily stand up reports mostly consisted of "Inspent yesterday reading around the subject, I shall spend today, reading around the subject."
Love him, love the brass balls.
1) pay for the cathedral
2) use the bazaar, possibly needing to seed it
3) do without
Since 1) is typically very expensive and lacks guarantees of suitability to purpose and continued existence, the ROI is so massively negative few can even try it. 3) often isn't an option.
the bazaar is an inevitability. No one has been mandating it for past decades. No laws enforce it. It occurs cause it is the only available/possible option.
https://news.ycombinator.com/item?id=4407188 https://news.ycombinator.com/item?id=8812724
No. Shit.
Yes, it's an inefficient pile of garbage built one heap on top of another.
But it's also incredibly useful.
Modularity and code reuse are, of course, A Good Thing. Even in the most trivially
simple case, however, the CS/IT dogma of code reuse is totally foreign in the
bazaar: the software in the FreeBSD ports collection contains at least 1,342 copied
and pasted cryptographic algorithms.
If that resistance/ignorance of code reuse had resulted in self-contained and independent
packages of software, the price of the code duplication might actually have been a
good tradeoff for ease of package management. But that was not the case: the packages
form a tangled web of haphazard dependencies that results in much code duplication
and waste.
Code duplication, waste, and a tangled web of haphazard dependencies are only a bad thing in theory. PHK talks about "CS/IT dogma" like it's the rule rather than the exception. But the CS/IT dogma, like most other dogma, always runs into exceptions when put into practice.When you have many, many independent teams of people developing software, you may want to implement something someone else has already done. As a member of your team, you have two choices: 1) re-implement the original as part of your own cathedral, or 2) put some glue around the existing solution.
Sometimes, 1) will be the best choice. But sometimes - and this is usually the case with Unix tools - 2) works just as well, and you get the benefit of only having to write and maintain glue, rather than a constantly morphing feature implementation. If the original was done well, and your glue supports it well, you get a feature without paying for it.
The foundation of Unix is a strong Cathedral. But this foundation is what makes the Bazaar fit so well around it: it provides something strong to glue other shit to. As long as you have someone to continue gluing shit together, you can keep adding pieces ad infinitum, and what you lose in the end is essentially disk space and compilation time. I'm willing to accept that.
At work I'm happy to use Linux, but I use it for things it's great at, such as simulating our prod environment, coding, etc, but at home I just don't want to think after a long ass day, I want to enjoy computing.
That was a while ago, and things may have changed. But it's not the only example. With OSX I am boxed into what Apple thinks is best for me. With Linux I can do whatever I like, while most things also just work.
None of the issues you mention are an issue with Linux anymore. Wifi, Bluetooth, printers, sound, video, etc, all just work, most (IMHO) more intuitively than with OSX. Only for faster 3D graphics I had to install the vendor driver from a non-free Fedora repository.
If you are lucky yes... With my last 2 computers and Ubuntu, most of the devices listed above has required me to google for solutions and apply weird hacks manually. Sound has been quite reliable but graphics and wifi drivers are still a joke compared to Windows or osx. Even basic things such as plugging in an external monitor has caused the computer to totally freeze.
If you go over Ethernet, use extremely conventional hardware and only expect to use it as a machine to browse the Internet then you'll generally be just fine.
It's free, I can't complain, but it doesn't make it any less of a shit show.
Except epoll. And vsyscalls. And...
You know, maybe Linux isn't well managed.
'Cause you know, man. Linux.
Anyway, GP is +3. It got downvoted a ton, but it bounced back.
Not to lessen the many valid criticisms that the article contains, but I think the low average quality of code can be adequately explained with the above law.
Of course, the "Bazaar" included the project named "Linux," which does have a single person in charge. So "single person in charge (or not in charge)" isn't really what the bazaar is about.
More generally, the article laments the lack of quality in modern software. I don't think that's a problem of Cathedral vs Bazaar, though, since software designed top down with authority telling everyone what to do can be low quality (indeed, you can see this sort of thing happening in many scrum style companies).
Rather low quality software is a reflection of the skill of the people who built it.
Maybe compiling everything on every computer is not the best approach...
But some minority have to take the open SOURCE seriously, if we want it to actually work.
I'm part of that minority.
Why do it again and again? To be sure to be sure?
* Debian's work on reproducible builds will help here.
If you're working on a FOSS operating system (freeBSD), where one of the components/features you provide your users are the ability to install almost any software, customized to your needs (the ports system), you probably want that part of the system checked and working.
You know, dogfooding your own delivery, and I for one am glad someone is still willing to adhere to that standard of software development.
You can do this with Debian style packages too - it's perhaps a bit more involved, but entirely possible. And there's an argument for only customizing the few things you need to and just getting binaries for the rest.
"Autotools must die"
It's been awhile since I've dealt with autoconf and company, but I remember seeing things like this. This is bizarre, to me. It should be a simple process. Make a pass to detect fortran compilers, make a second pass to detect support for -g. (This is, of course, assuming that we even want to use this at all.)
I remember cleaning up a coworkers project that did something similarly inane. A pass over the data revealed something wasn't present. But his test scripts continued processing, including rereading the original data, as if the something were present. Wasted 20 minutes each time it was executed until I rewrote it to break early.
If X depends on Y and Y is absent, then don't do X.1. Software has been in service for a long time (let's say more than 10 years, though some will debate the timeframe).
2. Software is recognized as of enduring, well-conceived design.
The second point is an important one. I have read that there are some government (IRS tax calculation) and industry (airline reservation systems) which have been in place for far longer than 10 years, but their longevity is more a function of the risk-aversion of the organizations that needed them, and less a testament to their "beauty."
In a sense Windows was a cathedral. It bent over backwards while accepting the new. Welcoming many under the umbrella.
Sure it is a stretch, but the Windows platform (for years) required backward compatibility. That was the world Microsoft worked in.
Today, the OS still maintains cathedral aspects, but the company is embracing the bazaar way more than I ever thought I would see in my lifetime.
This is a terrible, whiny perspective and the author could use a heaping dose of economic thinking. Sure, there's lots of 'terrible' software and it would be great if it were better or there was less of it! Except there are real costs to improving software or to preventing 'terrible' software from being released, or used, or disseminated.
I am so happy the author is not a position to make decisions about this stuff for everyone else.
All software is to some degree a hack or kludge.
Unix was fragmented long before 1991, when autoconf was created. Prior to autoconf, Perl's Metaconfig did this dance, and a lot of other, lower quality systems like imake were used to work around the problem. The forces behind Unix's fragmentation was actually not the Bazaar (open source software), but attempts by multiple parties to independently build their own Cathedrals (in attempts to differentiate/provide value with proprietary systems). Of course, autoconf, as a GNU system, was, in Cathedral & Bazaar terms, a Cathedral, not a Bazaar.
Autoconf is ugly/copy-paste code because it is comparatively rarely run, so as long as it produces a passable result, people use it and focus their efforts on other, bigger itches.
There's also a long history of open source products which have enjoyed higher quality implementations than their proprietary equivalent. The Apache project itself stood as a higher quality web server than a lot of other choices (not as true today, but it was true for quite some time).
One could go on...
Yes, autoconf was clearly a response to the incompetence of the UNIX industry, were everybody thought they could become Da Man over everybody else.
But that doesn't mean that it was the right solution then, and it certainly is not the right solution now.
And autoconf is absolutly nothing like a cathedral: There is no archtectural vision, no economy of style, no consistency and absolutely no symmetry or simplicity.
Your argument that "autoconf [...] is [...] rarely run" is akin to saying "I only pee in the shower in the morning": That is of course better than doing it all the time, but it is still going to stink.
> Yes, autoconf was clearly a response to the incompetence of the UNIX industry
I think the use of the term "incompetence" misinterprets the forces at play in a way similar to the original article. That interpretation leads to the Cathedral seeming desireable over the Bazaar, when I'd argue if anything the reverse is true.
Proprietary vendors have a vested interest in differentiating themselves from their competitors. While they have an interest in making it easy to get software on their platform, they also have an interest in creating barriers to that software moving off their platform. They also have limited interest in changing established behaviours in their platform.
The Cathedral model doesn't mean there is one Cathedral. It means that people build software as Cathedrals. This creates additional friction to adopting changes from outside the Cathedral. The Bazaar model does make it easier for fragmentation to take place, but it also makes it easier for established and widely accepted practices to make it back into the code base, and creating additional pressures to be consistent.
Autoconf's design is a workaround for the fact that there was no Bazaar for "ld", and still isn't. Like most workarounds, it is uglier than one can imagine. It's whole design was an attempt to exploit the strengths of the Bazaar to work around the horrors reinforced by the Cathedral model. It persists because it remains the best solution of any that was actually built, and it continues to evolve in response to changes to platforms and changes to best practices. One could easily imagine better solutions, but one has yet to materialize. If it would, I wouldn't at all be surprised to see the Bazaar gravitate to it.
I'm not saying it was the right solution, but the essay makes a lot of claims beyond some straw man notion that autoconf is the right solution. Even in my critique I made it clear that autoconf is inevitably NOT the best solution.
> There is no archtectural vision, no economy of style, no consistency and absolutely no symmetry or simplicity.
There's a distinction between autoconf & the autoconf library. Autoconf itself has a comparatively simple design that was conceived and implemented largely over one summer by one engineer, who curated it through several subsequent iterations of embellishments. It's design was extended in to automake, etc. which lead to the whole GNU build system.
The automake library on the other hand is largely a Bazaar of contribution of work arounds from developers, with some modest efforts at curation that emerged over time, rather than being conceived from the get go.
> That is of course better than doing it all the time, but it is still going to stink.
It still might stink, but it is hardly the most important problem most people deal with, and the whole process functions well enough in the end, so the people with the expertise to make a better solution have other more pressing problems instead.
(And I might respectfully suggest that if your answer involves "the incompetence of [everyone else in] the UNIX industry", you may be part of the problem.)
As proposed in the paper, the solution would be to address the distinctive nature of shared libraries on different platforms in the platform's implementation of ld.
The first has been tried, many times and always found wanting.
The second - well, it's FreeBSDs fault using software 'ports' rather than prebuilt binaries. (Although I understand that you do that now)
You've still got a fair number of processor architectures and instruction sets (at the very least, you've got all the x86 & x64 variants + ARM + Power + Sparq), and you've got some pretty significant variants on the OS front as well (Windows, Mac, Linux, Android, iOS... and that's not getting into the embedded platforms), and you've got all kinds of variants (still) in C runtimes, let alone differences above that level.
You might not perceive the ugly, because tools like autoconf are abstracting the problem away, and that's exactly why they are beneficial. There are much better ways to build portable software, but they require a lot more expertise, and believe it or not, autoconf means you need much less expertise to make software that runs on the broadest set of platforms.
I've got a friend, a very senior software engineer, whose full time job is a build platform that builds software designed to run on customer platforms (and this is for office environments, so a comparatively limited set of permutations)... and this isn't for a big company. That's the size of his job when he can take advantage autoconf.
There certainly are other ways to do what autoconf does, but being able to leverage a ton of work that other people have already done dealing with odd inconsistencies that come up with platforms is very hard to walk away from, even if it is done in an ugly fashion.
We compile VLC for at least 9 different OSes, and on some of them, for 8 platforms. Autotools is the only tool that does it correctly. It's a pile of crap, but there is nothing else that works.
Well, in fairness, build systems often deal with a different set of problems.
It's not always the ideal technical architecture for the problem.
- hacky vs. beautiful
- professional vs. amateur
- waterfall-designed vs. evolving
- centralized control vs. consensus control
- crufty vs. well-maintained
- open-source vs. closed-source
With so many axes to argue about, we can project whatever we are feeling about software today onto this "cathedral/bazaar" debate. We may think we are having one discussion, but we're actually having six discussions (or more) at the same time.Worse is Better is a very specific philosophy (at least, as it is described in Lisp: The Good News, The Bad News, And How to Win Big)
The Right Thing philsophy is, in essence, that simplicity of interface is the most important thing: every interface is an abstraction, abstractions shouldn't leak. Have a simple interface, be correct, be consistant, be complete. If the implementation is complex, so be it.
By contrast, the worse is better philosophy prioritizes simplicity of implementation: Be simple, be as complete, correct, and consistant as possible, but between having a simple design, and being slightly wrong, a little inconsistant, and not as complete, and having a complex design that is all of those things, take simplicity: 90% now is better than 100% never.
Over time, Unix has adoped some Right Thing ideas (plan9 took this to 11), and Lisp has adopted some New Jerseyisms (Scheme's dynamic-wind is definitely this).
More like carefully designed procedures (not the software kind), meetings, and suit ties.
The waterfall process can be as technically deficient as you want it to be, just like agile.
It's a bit like "normal" people sticking it to the elite. The rest of the world getting a piece of the cake too...