Adarsh Khatri

~ writings

Refactor the Self

personal growthreflectionself-improvement
Refactor the Self

I've been meaning to write about this for a while, but never found the time to jot it down and finally I have got some spare time.

I've spent countless hours maintaining the codebase:
Pulling out dead logic, cleaning up messy conditionals, renaming things that made no sense.

But I didn't realize how much of my own behavior was written like legacy code.

For a while, I was just running tasks on a loop.

  • Work from 3 to 11.
  • Come home.
  • Sleep.
  • Repeat.

No change in input. No surprise in output.
It felt efficient, until it didn't. Because even robots needs maintenance.

So I've started treating myself as a codebase worth maintaining.

  • Deprecated the habits that don't scale.
  • Remove outdated dependencies.
  • Added boundaries like I would add type safety.
  • Documented what I need, instead of assuming what people will guess.

This is not a rewrite. It's just a refactor.

And honestly? I feel a lot better after writing this down.