The medina never sleeps — it just shifts registers
On the phenomenology of a layered city
There is a moment, around 11pm in the Tunis medina, when the last tourist disappears and something older takes over.
The souvenir shops fold their scarves and lock their gates. The men selling jasmine on strings retreat. And then — quietly, without announcement — the medina becomes itself again. Older women in white safsari cross the stone corridors carrying groceries. A boy on a motorcycle navigates the impossible geometry of Rue de la Kasbah with the casual fluency of someone who has done it ten thousand times. Two men argue at full volume about nothing, the way old friends do. Someone is playing Oum Kalthoum from a window three floors up.
The medina hasn't changed. It has simply shifted registers.
A city that remembers
Most cities are written in the present tense. Tunis is written in all tenses simultaneously.
The medina — a UNESCO World Heritage site since 1979, and a living city long before that designation meant anything — is one of the few urban spaces I know that holds a millennium of inhabitation without apology. The Zitouna Mosque at its center has been there since the 8th century. The souks radiating outward from it follow a logic that is at once commercial and cosmological: the closer to the sacred, the more elevated the trade. Perfumers and bookmakers ring the mosque. Metalworkers and cobblers occupy the periphery. The urban form is an argument about what matters.
This arrangement is not accidental. It is a philosophy of space made permanent in stone.
What strikes me, having grown up in Tunis and returned to it over and over, is how the medina teaches you to read human intention in architecture. Every bent corridor was bent for a reason — to catch the prevailing wind, to frustrate invaders, to give the interior courtyard its privacy. Every derb (blind alley) is not a dead end but a threshold: public space becoming semi-public becoming private, the city's grammar of trust written in stone.
In a world obsessed with open-plan everything, the medina whispers a counter-argument: boundaries are not hostility. They are how communities manage intimacy at scale.
The coffee as social protocol
I want to talk about the café at the bottom of Rue Sidi Ben Arous.
It has no name that I know of. It has perhaps eight tables. It has been there, I believe, since before I was born. Every morning, at roughly the same hours, the same cluster of men — ranging in age from 40 to genuinely unknowable — occupy its chairs and conduct what can only be described as the neighborhood's operating system.
Business is transacted here. Disputes are mediated. Information moves. The man who knows a plumber, the woman who needs one — these connections happen at that café before they happen anywhere else. It is a node in a human network that predates the internet and outperforms it in latency.
What I find philosophically remarkable about this is its structure: it is a reputation-based system with no central authority. There is no Yelp rating for the plumber. There is no verified review. There is only the word of someone whose word is worth something, staked in a social context where that stake is real. Trust is the protocol. Presence is the authentication.
Silicon Valley spent thirty years trying to digitize this and largely failed. What it built was fast. What the café has is weight.
On being known in a place
There is a specific kind of belonging that only comes from being known in a neighborhood — not famous, not important, just recognized. The baker who remembers you take no sugar. The parking attendant who waves you through. The woman at the hanut who already has your brand when she sees you coming.
This is not nostalgia. It is a description of something that functions. Being embedded in a place provides what psychologists call ambient social contact — the low-level hum of human recognition that constitutes, in ways we don't fully appreciate, a significant portion of psychological wellbeing.
Modern city planning has systematically designed this out of urban life, in the name of efficiency and scale. The medina, by contrast, is so dense, so layered, so resistant to automobiles, that it has accidentally preserved the conditions for this kind of knowing.
Walking the medina is a reminder that legibility — being readable by your neighbors, and reading them in return — is not a quaint artifact of small-town life. It is a human need. One that cities, at their best, are infrastructure for.
What I take back to my work
I build products. Every day I make decisions about how software mediates human interaction — how authentication works, how users navigate, what information is surfaced and what is hidden, how trust is established between a platform and its users.
The medina is, I have come to believe, one of my most useful teachers.
It teaches me that good systems are legible: users should be able to read the logic of what they're using, the way a medina visitor can read the logic of proximity to the mosque.
It teaches me that threshold design matters: the transition from public to private, from anonymous to known, is a design problem with ancient solutions worth studying.
It teaches me that the most robust networks are built on reputation and presence, not verification and algorithms. And that speed, alone, is not the same as trust.
Every time I return to the medina at 11pm, after the tourists leave and the registers shift, I'm reminded of this. Some things survive because they work. Not despite their age. Because of it.