Bricoleurs and Planners
Two ways of thinking, why functional programming serves both, and what changes when the one programming is a model
Machine-translated from Spanish. Read the original

After writing Building or Pruning the Infinite I was left with a more personal question. In that article I described two ways of programming, which were building up from the base cases, piece by piece, or starting from a fuzzy whole and pruning it until what you want is left. And I realized the second one isn't just a technique. It's how I think.
I've never been able to read code line by line. Novels either, because my attention doesn't stretch to anything linear. What I do have is memory and pattern recognition. I live trying out combinations, rewriting song lyrics, seeing what happens if I move a piece. The promise of Ragnagrok Academy —learning to program when you can no longer read every line of code— is, at bottom, the method I built around that constraint, with types, invariants and properties to know what's going on inside a system without walking through it.
Fidel, my partner, works the other way around. He takes small steps, puts up scaffolding, builds from the ground up. He spent more than thirty years designing ways to teach programming from scratch. When we work together a dialectic kicks in that works really well, and I always wondered why. So I went looking for whether anything had been written about this.
There was plenty.
Bricoleurs and planners
In 1990, Sherry Turkle and Seymour Papert published Epistemological Pluralism. Papert is the Logo guy, the little turtle that drew on the screen and taught a whole generation of kids to program. Turkle is a sociologist who spent years watching how people relate to computers. Together they observed students learning to program and told apart two styles.
Planners design top-down. They break the problem apart, define the pieces, decide how they connect, and only then write. The program exists in their head before it exists on the screen.
Bricoleurs do something else. They try, rearrange, see what happens, move a piece somewhere else. The program isn't designed in advance but takes shape in their conversation with the machine, and they understand it because they've been handling it.
The paper's thesis is that bricolage is a legitimate way of knowing, as valid as the other one, and that school —which rewards the plan, the diagram drawn beforehand, the tidy solution— punishes it. Many bricoleurs end up believing they're "no good at programming" when all that's happening is that nobody taught them in their language.
They took the word from Claude Lévi-Strauss. In The Savage Mind (1962), the anthropologist contrasted two figures. The engineer starts from a project and gets the tools and materials the project calls for. The bricoleur works with whatever is at hand —a drawer of parts left over from other things— and discovers what they can do by combining them. The engineer goes from the plan to the materials. The bricoleur, from the materials to the plan.
Holists and serialists
Some fifteen years earlier, from the psychology of learning, Gordon Pask had arrived at something very similar. Pask was an odd character, a cybernetician and inventor of teaching machines, someone who studied how people learn with the same rigor others brought to circuits.
He separated holists, who first build the overall map and then fill it in, from serialists, who move step by step along a chain of reasoning and won't take the next step until the previous one is solid.
The most useful thing about Pask isn't the classification. It's that he described each one's typical failure.
The holist overgeneralizes. They see a pattern where there's a coincidence, connect things that weren't connected and jump to a conclusion the data doesn't support. Pask called it globetrotting, roaming all over the map without setting foot firmly anywhere.
The serialist has the opposite problem. They master each step, but they don't see the map, that is, they don't know what what they learned is for or how it connects to everything else. Pask called it improvidence.
And he found something that strikes me as the most important part of all this, which is that people learn better when the two are combined. It's not about each person finding their style and staying there. It's about each style covering the other's gap.
Birds and frogs
Freeman Dyson put it with an image I can't get out of my head. In Birds and Frogs (2009), the written version of a lecture he was to give the American Mathematical Society in 2008, which was cancelled, he split mathematicians into two species.
Correction (November 25, 2026). The first version said Dyson gave Birds and Frogs as a lecture. He never got to give it, because the AMS Einstein Lecture, planned for October 2008, was cancelled, and the text came out in Notices of the AMS in February 2009, as the footnote on its first page says. The image of birds and frogs doesn't change. I found it in a review of the series.
Birds fly high. They see the whole landscape and connect territories that look far apart from the ground, like an algebra problem with a geometry one or an idea from physics with one from number theory.
Frogs live in the mud. They pick a spot and dig to the bottom, patiently, solving one concrete problem in all its detail.
Dyson considered himself a frog, and said mathematics needs both species. I picture that birds without frogs produce beautiful visions nobody ever finishes proving, and frogs without birds dig incredibly deep wells that never touch each other.
Exploring isn't getting distracted
There's a recent finding I liked, though it should be taken with a grain of salt.
Barack and colleagues (2024) gave 457 adults an online foraging task, which consisted of gathering resources in a patch that keeps running out and deciding at each moment whether to stay or leave to look for another. It's a classic problem in ecology —when it pays to abandon the known in order to explore— and it has a known optimal solution.
Those who screened positive on a short ADHD screening questionnaire left each patch sooner, explored more, and gathered more in total.
It's preliminary. A six-question questionnaire isn't a diagnosis, and a short computer task isn't life. But it suggests something that interests me, that what looks like a lack of attention in a classroom can, in another environment, be an exploration strategy that works. That the same head that can't sit still through a paragraph is the one that finds sooner where there's something.
A holist and a serialist on the same team
Read this way, Fidel and I aren't a charming coincidence. We're what Pask was asking for, a holist and a serialist correcting each other.
I find the pattern. I see that two things that looked different are the same, I jump, I connect. Fidel builds the path so someone else can get there without jumping. He puts together the sequence of small steps, each one justified, that takes you from what you already know to what you don't yet.
And the failure Pask attributes to the holist is one I know up close. While I was writing Building or Pruning the Infinite, I'd come up with a metaphor from quantum physics that sounded great and didn't hold up. I had to stop it and swap it for another one that really was the same math. Pattern recognition is a very powerful generator, but it also generates patterns that aren't there. For a bricoleur, the pruning has to be as strong as the generating.
Why functional programming appeals to both of us
For a long time it puzzled me that Fidel and I both like functional programming, and for reasons that look opposite. He likes it because everything is built in small, safe steps. I like it because I can see the shape of an entire program at a glance.
I don't think the reasons are opposite, and the explanation is in a paper we both know very well, Why Functional Programming Matters, by John Hughes (1989). Hughes, as it happens, was also Fidel's thesis director.
Hughes says functional programming brings two new kinds of "glue" for building programs out of smaller pieces:
- Higher-order functions. They're functions that take other functions. They let you write a recurring pattern once —"walk a list and combine its elements", for example— and then reuse it by passing in only the part that changes. Each new program is a small, safe application of something you already know works. It's induction, with short steps, each one justified. That's Fidel's side.
- Lazy evaluation. The program computes nothing until someone needs it. That lets you describe something infinite —all the numbers, all the possible moves in a game— and separate whoever generates the options from whoever chooses among them. It's generating the infinite and pruning it. That's my side.
And underneath both there's something more important still, which the jargon calls equational reasoning. It means something simple. Since there's no hidden state changing behind your back, an expression means the same thing wherever it appears. If you know doble 3 (doble is Spanish for double) is 6, it's 6 always, anywhere in the program.
For the serialist, that means every step of the reasoning is an equality they can check, like in a math problem. For the holist, it means they can trust a piece without reading its insides, because nothing outside is going to change it.
Fidel's scaffolding and my bird's-eye view turn out to be the same object, seen from two sides.
A tireless bricoleur
All this started as a question about me, but it ends up somewhere else.
A language model is a tireless bricoleur. It doesn't plan but tries, generates, rearranges, and does it at a speed no person can match. It has every virtue of the style. And it has its typical failure, amplified, which is overgeneralizing, jumping to conclusions and seeing patterns where there are coincidences. It's Pask's globetrotting on an industrial scale.
If that's so, programming with models isn't about replacing the bricoleur. It's about putting the serialist next to it, something that prunes, that checks each step, that doesn't let through the pattern that isn't there. Sometimes that's a person. More and more, it has to be the language itself —its types, its compiler, its tests—, because nobody can read everything a model generates.
Which language plays that role best is another conversation, and I tell it in A Filter You Can't Turn Off. What I took from this one is simpler. Pask was right that each style fails on its own and that together they correct each other. I found that first working with Fidel. Now I find it every time I ask a model for code.
References
- Turkle, S. & Papert, S. (1990). Epistemological Pluralism: Styles and Voices within the Computer Culture. Signs, 16(1). DOI
- Lévi-Strauss, C. (1962). La pensée sauvage. Plon. (In English, The Savage Mind.)
- Pask, G. (1976). Styles and Strategies of Learning. British Journal of Educational Psychology, 46(2). DOI
- Dyson, F. (2009). Birds and Frogs. Notices of the AMS, 56(2). PDF
- Barack, D. L. et al. (2024). Attention deficits linked with proclivity to explore while foraging. Proceedings of the Royal Society B, 291(2017). DOI
- Hughes, J. (1989). Why Functional Programming Matters. The Computer Journal, 32(2). DOI
If this article was useful to you, you can sponsor the blog on GitHub. It helps me keep writing.