What makes a problem hard?
I've always been drawn to working on harder and harder problems, especially in my career as a software engineer. They weren't necessarily the hardest problems in the world, but they were hard for me.
A problem is hard when getting from what you know to a solution you can trust requires a step you don't yet know how to take. Sometimes that step is finding an explanation, deciding what to give up, or figuring out whether your solution actually works.
You might see the symptoms without knowing which ones share a cause or what a satisfactory outcome would look like. You might understand individual parts without knowing how to reason about them together. Constraints can pull in different directions, making it difficult to satisfy all the requirements.
Experimentation can be slow, and several explanations may fit the same evidence. Even promising ideas can be hard to evaluate, and turning a solution you have in your head into an actual design can be difficult.
Working on these problems can be stressful, but I've found a lot to like about it.
You learn more along the way
After working on several hard problems throughout my career, I've realized that one of the biggest benefits is how much you learn. A problem can be a little harder and teach you a lot more.
That's because the value isn't just in the solution. It's also in the process of finding it. Getting stuck, simplifying the problem in your head, and breaking it into smaller parts can teach you things you might never have learned otherwise. You may even need to develop new techniques just to make the problem solvable.
I've been thinking about how this applies to big discoveries, too. Sometimes the tools, systems, and abstractions developed to arrive at a discovery are as impactful as the discovery itself, if not more so. Calculus, for example, was developed to solve particular problems, but the ideas of derivatives and integrals went on to transform many fields and change the world.
I believe that using AI to solve the hardest problems will be one of the most impactful developments in our history. But I worry that AI tends to take a more direct path to a solution, skipping the detours we might take when reasoning through a problem ourselves. Those detours can lead to discoveries we weren't looking for in the first place.
You work with exceptional people
Hard problems tend to draw ambitious, curious people. Working on such problems is usually a good way to get to know these kinds of people.
The harder a problem looks, the more motivation it takes just to get started. It's easy to decide it isn't worth the effort and leave things as they are.
Some of the engineers I've worked with are drawn to that complexity. It gives them a chance to follow their curiosity and see what they're capable of.
They take on these problems when they find them meaningful. Being around them helps you develop a taste for which problems are worth solving and a sense of how hard they might be.
I've been lucky to work with some incredible engineers. The best of them make the people around them better. Sometimes I learn just by watching how they work through a problem.
You learn how to reason effectively
Solving hard problems stretches your ability to reason. You have to build one line of reasoning on top of another and keep track of the assumptions and expectations each depends on. Most of these problems are too complex to hold in your head. It helps to break them into parts you can reason about one at a time.
I find it beautiful that the more effectively you learn to reason, the more elegant your solutions become. You might be seeking generalizations or simplifications of a problem, and the beauty of this process lies in the possibility of discovering, while reasoning, that a certain problem was framed in the completely wrong way. By simply reframing it, sometimes you can solve it in a much better way while maintaining the same quality of the solution.
I ran into this while building a schema change system for Supabase ETL. The goal was to make schema changes deterministic and let replication resume safely after a crash, with a design we could use across destinations.
After trying several approaches, I decided to capture the table's schema in the same PostgreSQL transaction that changed it. Writing those snapshots to the write-ahead log (WAL) gave us an ordered history of schema versions.
That turned schema application into a diffing problem. We could compare the schema the destination had already applied with the one it needed next.
If we crashed after applying a schema change and streaming data under the new schema, we could still have to resume from a point before the change. The same comparison could guide us in applying earlier schema versions during replay.
It took a lot of trial and error to get there. Changing how we thought about the problem made a big part of it simpler. We kept finding edge cases months after we released the first version. The solution is still far from perfect. We're constantly improving it.
You get used to being stuck
The more often you get stuck, the better you become at getting unstuck.
Over time, you get a better feel for what to try next when something fails. You might question an assumption, run an experiment, or break the problem into smaller pieces.
All of these directions that you are actively exploring will make the resolution of a problem much more impactful. You might learn along the way how to run, for example, an experiment that demonstrates a specific problem. You might be able to, or you might need to, actually build a completely new system just to solve the problem. As I mentioned, all of these artifacts, whether they are thoughts, programs, or papers, are extremely important independently of whether the problem is ultimately solved.
We have great examples of this. For instance, to solve problems in manufacturing, one might have to build very complicated machines that produce certain pieces, even though the whole project is scrapped in the end. Those machines could actually be used for something else.
You develop a taste for what is worth solving
I recently wrote about the concept of taste, exploring what it means to possess it. I believe that working on hard problems is one of the primary ways to develop a taste for which problems are worth solving. This aligns with my earlier observations about exceptional people who tackle such challenges; most of them have a strong intuition for whether the problem they are addressing will be impactful once solved.
Problems can be difficult for very different reasons. One might be technically complex because it takes several new ideas to solve it. Another might be difficult because of the way the system is designed.
A small change can be arduous if it means touching a hundred files.
While working on both types of problems offers educational value, the learning opportunities differ significantly. The more of these problems you solve, the better you become at recognizing whether a problem is inherently hard or whether the surrounding context makes it so. This distinction is crucial for deciding which problems merit your time.
There is no real way to learn this skill other than through practice, particularly because the nature of difficulty shifts heavily depending on the time, context, and type of problem you are solving.
A problem may be worth solving even if emerging technology or ongoing research is likely to make it easier in the future. Knowing when to wait requires a specific degree of judgment and taste, qualities that are acquired only through the experience of working on these problems.
You get a lot of satisfaction
It's easy to underestimate how much work a hard problem can take. For many of us, what keeps us going is the satisfaction of figuring it out. It's even better when solving one hard problem makes the next one easier.
I cannot stress enough how addictive it is to solve these problems one after another, provided you are passionate about them. The satisfaction derived from this process is unlike anything else, and I believe this is what makes the entire experience so beautiful. There's a distinct thrill when the solution finally arrives, or even in the moments when you generate ideas that might lead to it.
I would also argue that the satisfaction often depends on how a solution is implemented, not just that it was found. The same problem can be solved in vastly different ways, and different solutions will inevitably possess varying degrees of complexity and elegance.
What makes a good solution depends on the field. In mathematics, it might be an elegant proof. In software engineering, it might be a design that makes the code easier to understand. In mechanical engineering, it might be a way to do the same job with fewer parts.
I get the most satisfaction when the solution itself feels elegant.
You make other work possible
Solving a hard problem can make it possible for others to take on problems they couldn't tackle before. The work accomplished is likely to be passed down through generations, enabling new problems to be solved, new fields to be opened, and new discoveries to be made, ultimately improving society as a whole.
We often say that we stand on the shoulders of giants. The giants to whom we refer are previous individuals who dedicated their lives to solving some of the hardest problems across any discipline. They enabled us as a society to live, dream, and think in certain ways.
Do it for the love of the game
At Supabase Select, we hosted Steve Wozniak, one of the people who inspired me to become a software engineer. He and Steve Jobs made me fall in love with computers. Seeing him in person felt surreal.
I find it refreshing to hear people talk about work they do simply because they love it. In his talk, Wozniak said he'd done a lot of work for others for very little pay because he enjoyed it. Although he acknowledged being taken advantage of by some due to this approach, he continued because he genuinely loved the work.
I left thinking that loving the work is the only way to keep solving problems this hard.