Literary Fiction Β· Emotional Tech

The Code of
Heartbreak

by Mitanshu Bhasin

April 8, 2026
πŸ“– Novella
⭐ 4.9 / 5.0
πŸ†“ Free PDF

A haunting narrative told through the lens of a sleep-deprived developer who discovers that love, like software, can crash without warning β€” and recovery requires more than just a reboot. A deeply personal story of loss, longing, and the quiet act of healing.

Read Summary
The Code of Heartbreak Β· Mitanshu Bhasin
About the Book

Where Algorithms Meet Aching Hearts

Aryan Mehta is a backend developer at a buzzing Bangalore startup, the kind of person who debugs exception stacks at 2 AM and finds a strange peace in the determinism of code β€” until he meets Rhea. She is warmth personified: spontaneous, creative, impossibly alive in ways his structured mind struggles to understand. For eight months, she rewrites every function he thought his life ran on.

"She was the runtime error I never wrote a handler for β€” the one exception that actually mattered."

β€” Aryan Mehta, Chapter 3

When Rhea walks away on a rainy Thursday, citing a need for "something real," Aryan does what any developer would: he tries to diagnose the problem. He opens a new file, names it heartbreak.log, and begins to write. Not code β€” but feeling, raw and unformatted, spilling past every naming convention he knows.

The Code of Heartbreak is that file. Part journal, part confession, part philosophical descent into the intersection of technology and human emotion. Aryan wrestles with questions no Stack Overflow thread can answer: Why do we love people we cannot retain? Can grief be refactored into growth? Is moving on a clean build, or just a patch on a broken codebase?

A Journey in Seven Commits

Chapter 01
git init β€” The Beginning

The night two strangers share a cab home from a hackathon. The universe stages the first commit of a love story written in imperfect code.

Chapter 02
push origin β€” Falling In

Late-night conversations, shared playlists, and the terrifying vulnerability of letting someone into your repository for the first time.

Chapter 03
merge conflict β€” The Friction

Two fundamentally different ways of seeing the world collide. The first argument that felt like an unresolvable diff across parallel branches.

Chapter 04
deprecated β€” The Distance

The silence that grows when two people stop updating each other. A love slowly deprecated β€” still technically functional, but no longer maintained.

Chapter 05
fatal error β€” The End

The rainy Thursday. The words said in 47 seconds that undo 8 months. Aryan opens heartbreak.log for the very first time.

Chapter 06
rollback β€” Grieving

He tries to restore from backups. To return to who he was before her. But there's no snapshot that doesn't have her fingerprints in it.

Chapter 07
deploy β€” Moving On

Not forgetting. Not recovering. Simply deploying a newer version of himself β€” one that carries the scar as a feature, not a bug.

Deep Dive

What This Book Is Really About

On the surface, The Code of Heartbreak is a love story. But at its core, it is an interrogation of how modern men β€” particularly those who live in their heads, in logic loops and system architectures β€” experience and suppress emotion. Aryan is not a tragic hero; he is recognizable: the friend who deflects with a joke, the colleague who optimizes rather than feels.

Mitanshu Bhasin draws from the very real alienation that exists inside tech culture β€” the myth of the stoic engineer β€” and dismantles it page by page. Through Aryan's logs, we see the humanity hiding beneath the jargon. Every function he names, every comment he writes, is a translation of something too tender to say out loud.

The story asks: What happens when the most logical person you know falls apart? Not dramatically, not in a scene β€” but quietly, over fifty late nights and one unanswered text that he rewrites forty times and never sends.

Rhea, though largely seen through Aryan's eyes, is never reduced to a muse or a plot device. The book is careful to honor both perspectives β€” two people who loved each other correctly and still could not make it work. Because sometimes the code is right, and it still doesn't compile.

By the final chapter, Aryan doesn't find closure. He finds something more honest: acceptance. He closes the file, pushes the commit, and ships himself back into the world β€” a little slower, a little more careful, and infinitely more alive.

Why Readers Love It

  • Captures the emotional landscape of young professionals in India's tech scene
  • Blends technical metaphors with raw, poetic introspection
  • Male vulnerability written without apology or melodrama
  • Short enough to read in one sitting, heavy enough to linger for days
  • Ending that respects the reader's intelligence β€” no tidy resolution
  • Rhea is a full, complex character β€” not a plot device
  • Written in a voice that feels like a conversation with a brilliant friend
M

Mitanshu Bhasin

Developer Β· Writer Β· Founder, Explyra

Mitanshu Bhasin is a developer and entrepreneur based in Delhi, India. He is the founder of Explyra, a platform redefining how professionals track and present their work experiences. The Code of Heartbreak is his debut as an author β€” a book he wrote across late-night sessions when he was building his startup and learning, simultaneously, what it means to lose something you love and keep going anyway. He writes about emotion the same way he writes software: with precision, with care, and always late at night.

Begin Reading Today β€” It's Free

No strings. No subscription. Just a story worth your evening.