十三年握手分成合作告終,開發者回顧沉沒成本與退出教訓
13 Years on a Handshake: Sunk Costs, Hope and the Deal I Should Have Walked Away From
作者回顧自己在沒有合約的情況下,按收入分成為商業夥伴建置及維護網上交易平台 13 年;合作三度破裂後,本週正式結束。第三次重建耗時逾 8 個月全職工作,按市場價格計只收回約五分之一價值;月報曾稱沒有銷售,作者後來從第三方資料發現並非如此,對方仍欠款。
For thirteen years I built and maintained an online marketplace for a business partner, on a handshake. No contract, no hourly rate: I'd build and run the platform, and he'd pay me a percentage of the income it generated, backed by a transparent monthly report.
The deal broke three times. This week it ended for good.
I've written shorter versions of this story elsewhere. This one is for developers and founders, and it goes further, because the technical lessons turned out to be the easy part. Keep your code in your own repository, write down who owns what: that sort of thing one can learn in an afternoon. What took me thirteen years was everything else. Why I stayed. Why I kept saying yes. Why someone who reasons about systems for a living couldn't see the system he was in.
No names. The names don't matter; the pattern does.
TL;DR
- A percentage of future income is worth nothing until it lands, and even less if you can't verify what it's calculated on.
- The sunk cost fallacy is not a textbook curiosity. It's the main reason people like me stay in deals like this.
- Occasional payments after a push don't prove the deal works. They're what keeps you in a deal that doesn't.
- Caring about the product is not the same as owing the person.
- Reasonable conditions are the best character test there is. Watch which ones get refused.
- Make reality visible. Never use your technical access as leverage.
- Decide in advance what ends the deal, and put it in writing while everyone is still reasonable.
- Paper has limits. The real protection is never being owed more than you can afford to lose.
The setup
In 2013 I started building the platform. The arrangement felt fair and modern: no upfront fee, no invoices for hours, we grow together. We'd known each other for a while, so putting it in writing felt unnecessary to us both. For my part, asking for a contract felt like saying "I don't trust you" to someone I genuinely wanted to trust.
That one moment of good manners turned out to be the most expensive thing in this story.
The cycle
Over thirteen years, the same cycle ran three times:
- After a while, reports start arriving late.
- Payments slow down, then stop.
- The deal quietly dies.
- Some time later, he comes back: "Let's rebuild it. I've learned from my mistakes, I've changed, this time I'll be 100% transparent, you'll see."
- I say yes.
If you'd shown me this as a flowchart about someone else, I'd have spotted the loop before the kettle had boiled. From inside, each round felt different. There was always a new context, a new company, a new plan. The reasons changed; the loop didn't.
The third round
The third rebuild was the biggest: more than eight months of full-time work on a modern stack, an admin console, automated imports of dealer offers, and all the dull, essential plumbing that keeps a live marketplace running. Measured against market rates, I recovered roughly a fifth of its value.
Along the way, an extra feature became essential: an import system that brought offers into the platform automatically. We agreed I'd build it on credit and be paid in instalments. I built it. A few instalments arrived. After a while, the rest were "forgotten". When I brought it up, there was always a reason why this month wasn't a good one.
Maintenance was never meant to be free, and yet it quietly became free. A system like that needs constant attention: an import strategy breaks, offers need correcting by hand, a server fills up. I fixed things, because the platform was my work and I cared about it.
Then the reports thinned out. For months I was told there had been no sales. Eventually I found out, from third-party sources, that this wasn't true. Public reviews from verified customers showed cars sold in exactly the months reported as empty; one of those customers even contacted me directly, because they knew me. Later, paperwork reached me showing commission collected on sales from a month that had been reported to me as having none. When I asked, the explanation changed twice in as many minutes.
Around the same time, I found the platform on another website of his, presented as his "own product", with a case study on how it had been built and no mention of who had built it. His answer, when I asked: a laughing emoji and "just until we land a few projects".
And, for the record, he still owes me money.
Why I stayed: the part developers should read
It would be tempting to tell this as a story about being taken for a ride. It wouldn't be entirely honest. I heard the alarm bells after the first default. I chose to ignore them. Twice.
Here's what was actually going on in my head. I suspect some of it is going on in yours, if you're in a deal like this.
1. The sunk cost fallacy
The sunk cost fallacy is continuing something because of what you've already put into it, rather than because of what it will give you from now on. Every economics student learns that past costs are gone and shouldn't drive future decisions. Every human being, stock-market investors very much included, then cheerfully ignores it.
Here's how it looked from inside:
- After the first rebuild: "I've put years into this. Walking away means it was all for nothing."
- After the second: "Now I've invested even more. It would be daft to quit just as it's finally working."
- During the third: "Eight months of work. If I stop now, I lose all of it."
Every round made the next "yes" easier, because every round raised the price of admitting the previous ones were a mistake. That's the trap: the more you've lost, the more you feel you need to stay to win it back. Anyone who has ever chased a losing hand knows the feeling. So, it turns out, do developers on a revenue share.
The way out is one question, asked honestly:
Knowing everything I know today, would I start this deal from scratch, on these terms, with this person?
If the answer is no, the years you've already put in don't change it. They're gone either way. The only thing you still control is the next year.
2. Intermittent reinforcement
Payments didn't stop completely. They came late, after a reminder, after a meeting, after an escalation. Then they came. One commission arrived a good few weeks after "next week", following a nudge, then a push, then a sit-down.
Psychologists call this intermittent reinforcement: rewards that come unpredictably are far more habit-forming than rewards that come reliably. A fruit machine that never paid out would be abandoned in minutes. One that pays out now and then keeps you feeding it all evening.
Each late payment felt like evidence that the deal worked, if I just pushed a bit. In reality it was the opposite: proof that payment depended on pressure, not on the agreement. A deal that only works when you chase it doesn't work.
3. Hope, and the dream of another source of passive income
What kept me in wasn't trust. It was hope: that something I was building on my own terms would bring in another small but recurring income, that a long-term project would finally pay off, that one day I'd completely stop trading hours for money.
Many developers carry that dream. It's a perfectly good dream. It's also exactly the lever a bad deal pulls. Hope is a fine thing to have and a terrible thing to base a deal on, because it will always be used as an argument against you: "Don't give up now, we're so close."
4. Caring about the product is not owing the person
I'm proud of what I built. Every fix I did for free, I did partly for the platform, not for him. When you build something, it becomes part of you; psychologists even have a name for over-valuing things you made yourself (the IKEA effect).
That attachment is good for craft and terrible for negotiation. The other side doesn't need to ask you for free work if you'll do it anyway because you can't bear to see your system break. Your care for the product is not a debt to the person who owns it. Treat them separately, or someone else will use the first to collect the second.
5. Friendship as a contract-killer
"We've known each other for years" was increasingly the reason we never wrote anything down. Later, the friendship became the reason not to push: pushing felt like an accusation.
And here's the irony. A contract protects the friendship. It turns "you owe me" from a personal accusation into a line in a document. Without one, every overdue payment becomes an argument about character. The closer you are to someone, the more you need the paperwork, precisely so you never have to fight about it.
6. The builder's bias
Most developers would rather spend a week writing code than an hour in an awkward conversation. I'm hardly an exception. When something went wrong, my instinct was to build a better system, fix the import, ship the feature, and assume good work would speak for itself.
Good work doesn't speak for itself. It speaks for whoever presents it, which is how my platform ended up on someone else's website as their "own product". The skills that make you a good developer (patience, absorbing complexity, fixing things quietly) are exactly the ones that make you easy to take advantage of in a business relationship.
The red flags, with hindsight
Every one of these was visible long before the end. I saw each of them and explained it away.
Extra work on credit, "in instalments". Instalments without dates aren't instalments. They're a hope with a schedule-shaped label.
Free maintenance by drift. Nobody agreed maintenance was free. It became free one fix at a time. Anything you do twice for free becomes, in the other person's mind, part of the deal.
Reports you can't verify. The deal depended on monthly reports. They came late, in a different format each time, or not at all. If the only source of truth about your income is the person paying you, you don't have a source of truth.
Hardship that arrives on schedule. Every time a payment was due, there was a crisis: a late client, a tax problem, a family issue. Some were surely real. But they always arrived exactly when money was due, and never seemed to affect any other spending. Pay attention to when hardship appears.
Not knowing who you're actually dealing with. I shook hands with a person, but I invoiced a company, and the two weren't the same thing. The company wasn't even in his name. At one point it ran into trouble with the tax authorities and was quietly replaced by another. I learned all of this after the fact, served up as reasons why a payment couldn't be made. If the entity paying you can change, stall or disappear without you knowing, you're not in a deal with anyone in particular.
Your work presented as theirs. If someone is comfortable claiming your work publicly while you're still working together, imagine what they'll claim when you're not.
History rewritten in real time. During one negotiation I was asked why I'd "gone up to 70" an hour, when "40–50 wasn't a problem a few days ago… for a friend". Forty had never been mentioned. Fifty had been a figure I gave before I'd seen the project. When the past keeps changing in conversations, that's your sign to move everything to writing.
Distrust running the wrong way. When I asked for hours to be logged and reported, the answer was that he didn't believe I could actually work fifty or sixty hours a month, "no offence". Do read that again: the side refusing verification justified it by distrusting the side asking for it.
Assumptions about your dependence. "Considering you don't have other projects…" was said to me in a negotiation. People who believe you have no alternatives will price you accordingly. Never correct it with words. Correct it by being willing to walk away.
How they treat other people. This is the one I'd weigh most heavily now. I learned the hard way that I wasn't the only one affected: some of the people he calls friends had been told one story while the facts told another. Which brings me to the side project.
The side project: conditions as a filter
A few weeks before the end, he offered me a role in a separate project: two products for a client, a friend of his. I said I'd be glad to, on five conditions:
- A written contract with the company actually paying.
- A rate proportional to the risk.
- An advance at the start of each month.
- Hours logged and reported.
- A direct line to the client.
None of these is unusual. A healthy client accepts all five without so much as raising an eyebrow.
The last one had a reason. Before any terms were discussed, he had explained to me how he'd presented the project to the client: besides me, whom the client would pay directly, he was supposedly paying for an additional developer. There was no such developer. He planned to do that part himself, with AI, and told me plainly that he couldn't tell the client, because, as he put it, "I'm not a developer, and he knows it". Later he confirmed it in writing: the "other developer" was him. It would also have made him look like a co-investor, which he wasn't. I wasn't willing to put my name on a project whose team was a fiction and whose timeline depended on someone who didn't exist.
What followed was rather instructive, so here it is, step by step:
- First answer: an advance was out of the question "in times like these"; hours didn't matter; he'd do part of it himself.
- A few hours later: a counter-offer at a lower rate, with "us" making the offer.
- When I repeated that the conditions mattered more than the rate: "That's not where we got stuck, it's the price… write whatever you want. How big an advance? Pro-forma first?"
- When I gave a concrete answer: everything withdrawn. No detailed contract, because "why complicate our lives". No hours: "that doesn't work any more, with these AIs". All communication through him only; my asking the client a question "made him think". A fixed budget for two products in six months, with no limit on scope.
That's why I call it a filter. You don't need to judge anyone's character. State normal, professional terms and watch which ones get refused. If the refusals are exactly the ones that would let you verify what's going on (the contract, the hours, the direct line to whoever pays), you have your answer. It doesn't matter how nicely it's phrased.
I said no. The reply, more or less, was that he'd tried to put a large sum of money in my pocket and I'd turned it down. Note the neat bit of reframing: refusing bad terms became ingratitude. The same day, for the first time, he threatened to shut down the platform I'd built.
Making reality visible
I'm not one for confrontation, and I decided early on not to go to a lawyer. Partly because a lawsuit over a gentlemen's agreement is slow, expensive and draining. But mostly because of a simple question every developer should ask before suing anyone: what exactly would I recover? A judgment against a company with nothing in it, run by someone who keeps nothing in his own name, is a very expensive piece of paper. You can't get blood from a stone.
So I did what developers do. I built something. The admin console got a partnership-status view:
- which monthly reports were due, and which were overdue, and by how many days;
- which invoices were outstanding, and by how many days;
- a scheduled reminder email every morning while anything was overdue.
Nothing was blocked, hidden or switched off. It simply put the facts where they couldn't be ignored. No accusations needed: dates and numbers do the talking.
Five days later I was asked, angrily, to switch the reminders off, in the very message that admitted an invoice was unpaid. Apparently they were spoiling his mornings. A few messages later the partnership was over, from both sides. The last messages were angry, and one of them was the kind you screenshot and keep.
I switched the reminders off that evening, and all maintenance and development along with them.
If plain facts are unbearable to the other side, that tells you something. I hadn't said a single cross word. I'd just made the numbers visible.
What I deliberately did not build
I had toyed with the idea of a feature that would suspend admin access after 90+ days of overdue invoices. I never built it, and I'd advise you not to either, unless the other side has agreed to it in writing beforehand.
When you control the code and the servers, it's tempting to treat that as leverage. Resist it:
- It hands them the victim's story. Overnight, "he didn't pay" becomes "the developer took our site down".
- The legitimate lever is your own work. Give written notice, stop maintenance, stop new development. That is always yours to withhold.
So: no lockouts. I won't shut the platform down. I just won't work on it any more. Or with him ever again.
The decisions that gave me my peace back
The end wasn't only about what happened to me; it was about a handful of decisions I made, mostly too late. If you're in the middle of something like this, these are the ones I'd make first.
Write the money off, in your head. Not legally, not on paper: mentally. Decide that what you're owed is gone, and that anything that arrives is a bonus. It sounds like giving up. It's the opposite: as long as you're waiting for the money, the other side controls your mood. Once you've written it off, they don't.
Pick a closure date. "I'll give it until the end of the month, then it's closed in my head, whatever happens." Open-ended situations eat your attention. A date turns a swamp into a deadline.
Make payment the only trigger. Not promises, not plans, not "next week". Work resumes when money arrives, and not before. It removes a dozen negotiations at once.
Don't fill silences with reasons. Every explanation you give is something to argue with. "I don't do maintenance without a paid invoice" is complete. Reasons invite negotiation; a boundary doesn't.
Move everything to writing. After every call, a three-line summary: what was decided, by whom, by when. Calls are for discussion; writing is for decisions. It's the simplest defence against a rewritten history.
Protect your focus, not just your money. The biggest cost of a bad deal isn't the unpaid invoices. It's the evenings spent rereading messages, rehearsing arguments and checking whether a payment came in. That time and energy belong to your next project.
If you're in a deal like this right now
Ask yourself these questions, and answer them as if a friend had asked you for advice:
- Would I sign this deal today, from scratch, knowing what I know?
- If my share were zero for the next twelve months, would I still be doing this work?
- Am I being paid for my work, or for my hope?
- Has "this time it'll be different" been said before? How many times?
- Can I verify, independently, what my share is calculated on?
- If I stopped working tomorrow, what would I actually lose, apart from the time I've already spent?
- What would I tell a friend who described this exact situation to me?
If you find yourself defending the deal against your own answers, that's the sunk cost talking.
The practical checklist for next time
If I ever do a revenue-share or "build now, get paid from the business" deal again, it will have all of this in writing, or it won't happen:
- An auditable base. The share is calculated on something I can check, such as collected revenue minus a listed set of costs, with access to the source data (invoicing exports, payment reports), not a summary typed into a chat.
- Reporting deadline and payment term. For example: report by the 5th, payment within 15 days. Dates, not "soon".
- A floor. A small fixed monthly fee on top of the share, so the risk isn't all mine.
- Paid maintenance, priced separately. With a rate and a scope. "Can you just quickly…" is a change request.
- Extra features paid up front, or in instalments with dates.
- A licence until paid. The client gets the right to use the software; ownership transfers only once everything owed is paid, if at all.
- Attribution. Who may present the work as theirs, and how.
- A stop condition. If a report or payment is more than N days late, work pauses automatically, with no discussion needed.
- An exit clause. Notice period, handover scope and the price of the handover, agreed at the start.
- Direct contact with whoever pays. No intermediary as the only channel.
- Know your counterparty. Who exactly signs, who exactly pays, and is it the same person you're shaking hands with? Check the company in the public registers before you start: who owns it, whether it's in good standing, whether it has tax debts. It takes ten minutes, and it's the only due diligence most freelancers never do.
And the technical hygiene, briefly, because it's the easy part (drawn from my own experience and other people's):
- Keep the source in a repository you control, with access for others scoped and revocable.
- Ship build artifacts, not source, so production is never a copy of your codebase.
- Write down who owns what: code, data, accounts, keys. Agreeing that on day one is easy; arguing about it at the end is thoroughly miserable.
- Keys in their name, rotation their responsibility. If you send reminders about keys or costs, keep them. If a bill or a leak is ever blamed on your code, you'll want that paper trail.
- Keep your own records: invoices, payment confirmations, the messages where terms were agreed. Not to build a case; just so your memory isn't the only evidence.
A word on lawyers. I'm not one, and none of this is legal advice. Good lawyers are also bloody expensive, so match the effort to the stake:
- If the stake is high (months of work, a share of a real business, ownership of the code), pay for a lawyer. It will cost less than one bad year.
- If it isn't, don't let the cost of a lawyer become an excuse for writing nothing down. A one-page agreement in plain language, signed by both sides, beats the most sincere handshake. Even an email that sets out the terms and gets a "yes, agreed" back is far better than nothing.
- If you do these deals regularly, pay a lawyer once to review a template, then reuse it. One review spread over many deals is affordable.
The point isn't to be legally bulletproof. It's to make sure that, when memories start to differ, there's a page you can both go back to.
When paper isn't enough
Now for the uncomfortable bit, which undercuts much of the advice above.
Contracts, lawyers, registers, procedures: all of it assumes the other side can be held to something. It doesn't hold up against someone who is prepared to close a company and carry on with a fresh one, or who keeps nothing in their own name. And even when the law is on your side, enforcing it can easily cost more, in money, time and sleep, than you'd ever get back. A contract tells you what you're owed. It doesn't make anyone pay.
So the paperwork is necessary, but it isn't the real protection. The real protection is limiting your exposure:
- Never be owed more than you can afford to lose. Decide that number at the start, before anyone is behind on anything. When the balance reaches it, you stop. Not after one more favour; at the number.
- Get paid as you go. Small, frequent payments, ideally in advance. The shorter the credit you extend, the less a default can cost you, whatever the other side's company is called this month.
- Keep your leverage where it's real. Your only reliable lever is your willingness to stop working. It only works if you haven't already delivered everything up front. Eight months of work delivered on credit is eight months of leverage handed over.
- Choose the person, not the paper. A contract with an honest person is a formality; a contract with a dishonest one is a lawsuit you'll probably decide not to bring. The terms you ask for are less useful for enforcement than as a test, and the way someone reacts to them tells you most of what you need to know.
In other words: you can't always make someone pay, but you can almost always decide how much they're able to cost you. That decision is entirely yours, and it's best made on day one.
Where I am now
I hold no grudge. I'm tired, disappointed, strangely relieved, and more than a little embarrassed that it took me thirteen years to learn what I stubbornly refused to learn in one.
The lesson is paid for, and it was expensive. If this post saves one person from paying the same price, it will have earned something back.
I'm open to new projects, and looking forward to them. On written terms.
If you've been through something similar, or you're in a deal like this right now, I'd genuinely like to hear how you handled it (or what's keeping you in) in the comments.
來源:DEV Community · dev.to