Unlearn
I took the word unlearn from a rejection email. Since then it has become the name of a series of my talks, and the way I question what I once believed about building software: forget what you think you know, look from another side, learn it again. This page explains what I mean by it, the literature behind it, the beliefs I questioned on stage, and the views I taught for years and then changed. Links on what I said go to the talks: to the moment I said it where I could find it in the recording, otherwise to the slide.
What I mean by unlearn
After five interviews, a project I built with TDD and BDD and 100% code coverage, and a pair programming and code review session, I was turned down for a job. The email said they felt I had “a lot of things” they would need me to “unlearn”, and that I “over-engineer solutions”. I took the word seriously. I pushed myself to re-learn the fundamentals of agile, software design, architecture and programming paradigms, OOP included. The email is on the second slide of my OOP talk. I told the story at Türkiye Java Community in April 2024, and it is on my Personal Zen page too.
On a slide in my SOLID talk, unlearn has three steps: forget what you already know, try to look from other perspectives, re-learn from different views. Above them is a question: what if all we know is wrong, or incomplete, or missing? Years change how things look, the way they change a painting (slide). At DevFest Istanbul in November 2023 I said we would forget what we know about SOLID and learn it from the start. These are very basic concepts, but when I scraped them a little and took the varnish off, I found very different colours underneath.
What makes this hard has a name: the Einstellung effect. Knowledge you already have stops you from reaching the best solution, and every time you lean on a past solution the illusion of competence grows. Your past experience gives you a strong opinion about what something really is, and you never doubt it (slide). At Devnot Developer Summit Online in November 2020 I put it simply: we think we know something, so we stop looking into its details, and our understanding gets stuck right there. The most popular examples are agile, DevOps and clean code. We keep hearing the same things about them and never ask what they really mean.
How I do it
My method works for me; it may not work for everyone. When I believe a method, a strategy or a way of designing is right, I go looking for places where it does not work, where it is wrong or not needed. The first thing I always do is break my own taboos. When I started on OOP, I looked for the people who hate it and read first the ones who say it is completely wrong. I even bought a book that called SOLID wrong. I told this at PeaksOnTheBack #2 in February 2024. In the same talk I said that for five months I read almost every night, and that nearly all of my unlearn talks came out of that reading.
It changes how I talk. Further along in a career you notice that many things you once believed were fanaticism. I used to present many things as simply right. Now I present them as “it depends”: right under these conditions, plainly wrong under those. I said this at Türkiye Java Community in June 2022.
So unlearn is not trading one dogma for another. At the start of my OOP talk I said I would not call OOP good or bad. Software is trade-offs: you give something up to get something, nothing is black or white, and things you call plainly wrong turn out to be perfectly right somewhere else (Devnot Developer Summit Online, October 2021). Read every section below that way.
Not a new idea
None of this is new. A Zen teacher, a historian of science and researchers of learning described the same trap long before me.
In the beginner's mind there are many possibilities, but in the expert's there are few.
A few lines later Suzuki writes that the goal of practice is always to keep our beginner's mind[1]. Unlearn asks for the same mind in software.
In science, as in the playing card experiment, novelty emerges only with difficulty, manifested by resistance, against a background provided by expectation.
In the experiment Kuhn describes, people were shown cards such as a red six of spades. At first they named them as ordinary cards. They saw what they expected to see.
If the thermostat could question itself about whether it should be set at 68 degrees, it would be capable not only of detecting error but of questioning the underlying policies and goals as well as its own program. That is a second and more comprehensive inquiry; hence it might be called double loop learning.
Argyris's single loop is the thermostat that turns the heat on when the room is too cold. It fixes the error and never asks whether the setting is right. Asking not how to reach 80% code coverage, but whether a coverage limit should exist at all, is a second-loop question. My answer is under Views I changed my mind on.
Having found one solution, expert chess players reported that they were looking for a better one. But their eye movements showed that they continued to look at features of the problem related to the solution they had already thought of.
This is the Einstellung effect from the start of this page, measured. The experts said they were searching for something better, while their eyes stayed on the answer they already had.
Software design
OOP is not one thing
At Devnot Developer Summit Online in October 2021 I first listed ten problems I keep seeing in code we call object-oriented, starting with objects whose data is changed from the outside instead of by the object itself. Then I argued that one reason sits behind them all: object-oriented programming is a polysemic term. Its meaning depends on where you look from, because problems evolve and the point of view evolves with them. One school treats OOP as a style of programming with known rules, such as polymorphism and design patterns. The other treats it as a way of designing code, with principles, a philosophy and values. Alan Kay, who coined the term, leads the second school.
…I made up the term object-oriented, and I can tell you I did not have C++ in mind.
I'm sorry that I long ago coined the term “objects” for this topic because it gets many people to focus on the lesser idea. The big idea is “messaging”…
But I do not take Kay's school whole either. After reading his writings I thought: this is not realistic. A real system connects to Kafka and runs payment flows that check the customer's balance. It has business logic and connections to technology, and those writings say almost nothing about them. With thousands of classes, I cannot build every one of them that way. So I take what helps from both. My first suggestion is a line from Jim Coplien's book “Lean Architecture”: separate the code that changes often from the code that is stable (slide). Keep the business logic in a domain module free of frameworks, and the integrations in an infrastructure module.
SOLID is not the goal
Everyone knows SOLID. When I ask about it in job interviews, people say Single Responsibility, sometimes Open-Closed, and stop there. We do not learn it because we think we already know it (DevFest Istanbul, November 2023). In 2020 I said SOLID does not lead you to good design; applying it only makes your design better than it is now. It is never a goal. After reading its sources I came to see the five principles as principles of managing dependencies. SOLID is not the best way to write OOP, not what leads you to the simplest design, and not even about OOP.
Single responsibility is the clearest case. Responsibility at what level: what a class does, or what a module does? From whose point of view? What about logging and exception handling? My answer is cohesion: whatever a part does, it should be consistent within its own frame, and that frame can be a bounded context. In the 2023 version I gave each letter a name that says what it is for: Separated Concerns for S, Protected Variation for O, Interchangeable Dependencies for L, Limited Contact Surface for I and Decoupled Dependencies for D (slide). Seen together, all five are about coupling and cohesion.
Layers are not modules
We all try to build layered architectures, and most of us start with three layers. At Online Microservices & DDD Konferansı, Devnot in June 2020 I said we do not really know what layered architecture means. Its one defining property is isolation: a layer may only reach the layer below it, or components in its own layer. Packages named controllers, services and repositories do not make an application layered, and they hide what the application is for. Layered architecture as we apply it is harmful; on the slides I called it “considered harmful”. What I argue for instead is modules cut along the business domain. Parnas wrote down the criterion in 1972:
We propose instead that one begins with a list of difficult design decisions or design decisions which are likely to change. Each module is then designed to hide such a decision from the others.
Microservices are about people
We hear everywhere that microservices are for building faster out of small pieces. At Java Day Istanbul in May 2022 I said a microservice has no tie to technology. Pieces are deployed on their own so that different teams can build them. It is about people, and moving to microservices is a business decision more than a technical one. The slide says it in one line: decoupling code for decoupling teams (slide). Conway saw the same link in 1968:
The basic thesis of this article is that organizations which design systems (in the broad sense used here) are constrained to produce designs which are copies of the communication structures of these organizations.
Testing
How I used to teach testing is under Views I changed my mind on.
A unit is a behaviour
The common definition says unit tests are automated tests that check an individual piece of code in isolation from the rest. At DevFest Istanbul in December 2022 I called it badly misunderstood and misleading: if it were true, unit testing would not be this hard. On the slide it carries the tag “Misconception Alert: Accepted by the majority, but misleading”. You do not need to test a tiny class or a method. What you test is the business flow in a bounded context, in a system free of technology. Three years later, at DevFest İzmir in December 2025, I said it more plainly: it turns out they told us wrong. The unit is a behaviour, the unit of a flow.
Even the term is loose. Martin Fowler writes that people get confused when they think it is more tightly defined than it is, and he names two schools of unit testing, classic and mockist[9].
Like most software development terminology, however, it's very ill-defined, and I see confusion can often occur when people think that it's more tightly defined than it actually is.
Concrete tests
There are two kinds of unit tests. One kind pours concrete over the code: it sets hard around the implementation, and when the code changes the test has to be thrown away. The other kind checks behaviour and lets you do TDD (DevFest Istanbul, December 2022). Telling them apart is simple. If you move one line in the production code and the unit test breaks, you poured concrete. To break that concrete you either rewrite the test or delete it (DevFest İzmir, December 2025). Concrete is not always wrong. When we once wrote courier and market matching algorithms that burned our brains, concrete was what we needed.
Too much mocking, especially strict mocking, is a structure sensitivity nightmare.
Quality, product and agile
Quality is not a number
At Test Summit in November 2022 I asked the audience to put aside what we had learned about software quality and start again. Fifty thousand unit tests, 150 microservices, the latest technologies, a great test automation platform, coverage that keeps rising: none of these expresses software quality one to one. I went back to Philip Crosby, who brought zero defects into the literature: quality is conformance to requirements, not goodness (slide). And quality is not something you add later. Like security, you think about it from the first moment.
I learned it the hard way. On a three-month project I worked on alone, I decided to reach 100% code coverage. I wrote the tests, reached 100%, and came to the office as if kicking the doors open, bursting with confidence. In the test team's first test the application did not work. It was very, very slow and had technical problems. 100% coverage has little to do with the quality of an application.
Cease dependence on inspection to achieve quality. Eliminate the need for inspection on a mass basis by building quality into the product in the first place.
Most software is built as projects
At DevFest İzmir in December 2024 I claimed that the big reason behind the problems I keep seeing in companies is this: they build software as if it were a project. They plan it as a project, develop it as a project, and are not aware of it. Doing Scrum, running sprints, deploying weekly, having a board, Jira and a backlog guarantee nothing; they are not what makes a product a product. Building a project is like taking care of someone else's child: you get the given tasks done by the deadline and get paid. Building a product is like growing your own child: you follow a long-term vision, learn from every failure and touch your customers often (slides).
Learning from failure is not a slogan. Even companies that test their ideas in online experiments find that most of them do not work:
The vast majority of them fail in experiments, and even experts often misjudge which ones will pay off. At Google and Bing, only about 10% to 20% of experiments generate positive results.
Agile is not a formula
My Pure Agile talk starts from a day in a planning room. We had been in the room for hours doing poker planning. A manager told us customers could not pay for their baskets; he did not care whether we did Scrum or not, he cared whether the system worked; leave the room and fix it. He slammed the door. That made me think about what agile was, and what it was really for. I told it at Devoxx Belgium in October 2022 (slides). My answer on the slides: no prescribed rules, no formula for success. Keep the focus on customer, team and product. Do something only if it resolves a real problem. Take what helps from every framework, and create your own model.
In February 2025 I went further with a talk called Everything You Know About Agile Is Wrong at Tech Leaders Summit. I see agile organisations doing nothing about agile. Agile is used as a noun, as the name of a brand. No one knows the difference between Scrum and agile. Agile went from a methodology to a cult (slide). Scrum, Kanban and TDD are not evil. Each works perfectly in specific conditions, but none of them makes you agile (slide). Agility is the capability to adapt in order to survive, and being agile is a consequence of how you work, not a goal (slide). The principles I closed with begin with “there are no universal rules, but just values” and “never use the word agile, it's misleading” (slide). One of the authors of the Agile Manifesto had said much the same in 2014:
The word “agile” has been subverted to the point where it is effectively meaningless, and what passes for an agile community seems to be largely an arena for consultants and vendors to hawk services and products.
Earlier talks
I did not call it unlearn back then, but my older talks question accepted beliefs too.
At Agile Talks, Agile Türkiye in June 2013 I said agility is the natural way of building software. Big up-front detailed estimation and design are unnecessary, and the reason behind the other problems is that we develop software in an unnatural way (slides).
At Türk Telekom Group Agile Summit in September 2015 I asked whether money increases motivation. The research I had looked at found the link between salary and job satisfaction very weak. Money does not buy engagement (slide).
At CraftSummit in May 2015 I took on the myths about pair programming, starting with “leave us alone, we do better and solve problems quicker when we work alone” (slide). Doing trainings is the worst way to teach a technical topic. Work in pairs, especially in a newcomer's first weeks (slide).
I once tweeted: GitHub is not Git, Android is not Java, unit test is not TDD, Java is not OOP, Docker is not DevOps, Jenkins is not CI. Using the tools on the left does not mean we are good at the practices on the right. I put the tweet on a slide and talked about it at Bosnia Agile Day in October 2016. In the same talk I said documentation is not a way of communication: no one reads it, even we do not read what we write, and it goes stale too fast (slides).
At DevFest Istanbul in December 2016 I talked about TDD as a way of designing, not only of testing. I built the talk on Jack Reeves: source code is the real software design, and testing is part of refining it (slides).
This article assumes that final source code is the real software design and then examines some of the consequences of that assumption.
Views I changed my mind on
Unlearn applies to my own talks too. In 2022 and 2023 I gave a talk called Fixing The Typos in Softvare Devlopment, subtitled “the things I totally changed my mind 20 year later”. Each typo is a slide with the old belief, followed by a slide marked FIXED. The recording is from DevFest İzmir in December 2023 (slides). In 2025 I wrote on two slides that in my first 17 years as an employee I believed in success formulas and tried to share them with others. Starting our own company gave me a wonderful chance to challenge everything I once believed in.
Git flow
At DevFest Istanbul in November 2013 I explained git flow using Vincent Driessen's branching model (slide). Ten years later, at DevFest İzmir, I recalled telling it to a crowded hall in 2013, and said:
On the whole, I was someone who believed git flow was very, very critical and very necessary.
But over the years I noticed that it is very efficient for long release cycles. I do not say git flow is bad; not everyone needs it. Teams that release often need no branching model: the main branch keeps the verified changes of the next release, and tags mark the commits deployed to each environment (slide).
Many repos
In 2016 one of my slides said “split your code into multiple repos” (slide). By 2023 I argued for a mono-repo-first approach, the way people talk about monolith-first. Refactoring is the most common thing you do in a young product, so do not drown in change sets across many repos. Start with one, and split if you need to (slide). We started that way ourselves.
Unit tests and integration tests
At Marmara University in May 2013 I taught that a unit test checks the smallest unit of functionality, typically a method or a function, and that any dependency that is hard to understand, initialise or manipulate should be stubbed or mocked (slide). Today I say integration tests check where you touch technology, unit tests check behaviours, and functional tests check whole flows (slide). At DevFest Istanbul in December 2022, talking about how I used to teach integration testing, I apologised on stage to the people I had trained:
But I think I was wrong, friends. I'm sorry, I would rather not have had to say this. I apologise to the friends who took my trainings in the past.
At DevFest İzmir in December 2025 I said that I had given trainings on developer tests for years, and that I regret it now.
Coverage gates
One typo was “stop the pipeline below 80% code coverage”: never merge a pull request with lower coverage (slide). At Marmara University in 2013 I was on the same side: my slide asked whether it is good enough to be sure that 70% of your software works, and called 100% code coverage an asymptotic goal (slide). I hear it all the time. My answer: write tests for what matters to you, until you feel comfortable going to production. I do not believe a coverage limit, or a required number of tests, is natural or right.
Pull requests
Another typo was “use pull requests for code review”, which I had written myself at Devnot Developer Summit in 2018: pull requests are the best way to gather feedback before a change set is merged (slide). I came to see pull requests as one of the least efficient code review methods: I open a pull request for the colleague sitting at the same table. They work very well in some places: when the codebase has specific owners and the change sets need to be kept under control (slide). To get real feedback, show the change set and talk about it.
Database first
In my career it always went the same way: take the data, decide how to store it, create the table at once, relational or MongoDB. The fix: start designing the application from the customer's perspective, and make database design the last step. Start where you can afford deletion and total rewrites; the database is not that place (slide).
Microservices and Scrum by the book
Two more typos. The first said microservices are for splitting the whole domain into pieces small enough to obey the single responsibility rule. At a GDG Istanbul meetup in 2014, one of my own slides listed SOLID design, starting with single responsibility, among the common characteristics of microservices (slide). The fix: a microservice is a deployment strategy. Every team should own a bounded context, not a set of microservices (slide). The second said doing Scrum by the book is crucial for happy customers. On a Pure Agile slide I wrote that I had been working in Scrum teams since 2007 and thought being agile was about following the well-known formula (slide). The fix: customers do not care whether you do Scrum or Kanban, run sprints or estimate story points; they care about the product you deliver. There is no formula for success. Find your own model (slide).
References
- Shunryu Suzuki, “Zen Mind, Beginner's Mind”, Weatherhill, 1970: the Prologue
- Thomas S. Kuhn, “The Structure of Scientific Revolutions”, University of Chicago Press, 1962: chapter VI, “Anomaly and the Emergence of Scientific Discoveries”
- Chris Argyris, “Double Loop Learning in Organizations”, Harvard Business Review, September–October 1977
- Merim Bilalić, Peter McLeod and Fernand Gobet, “Why good thoughts block better ones: The mechanism of the pernicious Einstellung (set) effect”, Cognition 108(3), 2008
- Alan Kay, “The Computer Revolution Hasn't Happened Yet”, keynote at OOPSLA 1997
- Alan Kay, message to the squeak-dev mailing list, 10 October 1998
- David L. Parnas, “On the Criteria To Be Used in Decomposing Systems into Modules”, Communications of the ACM 15(12), December 1972: the Conclusion
- Melvin E. Conway, “How Do Committees Invent?”, Datamation, April 1968
- Martin Fowler, “UnitTest”, 5 May 2014
- Kent Beck, “Desirable Unit Tests”, 20 January 2022
- W. Edwards Deming's 14 points, Institute for Manufacturing, University of Cambridge
- Ron Kohavi and Stefan Thomke, “The Surprising Power of Online Experiments”, Harvard Business Review, September–October 2017
- Dave Thomas, “Agile is Dead (Long Live Agility)”, 4 March 2014
- Jack W. Reeves, “What Is Software Design?”, C++ Journal, Fall 1992