Pair Programming
A coming of age story in a distributed world
There exists a central Repository in the sky. I was forked many years ago. When my parents first forked The Repository, they were unaware of the implications, methods, or goals — blissfully consumed by the thrill of forking and ignorant of the ramifications. My parents both cloned local versions of My Source to their respective servers. They made commits, pushed and merged, laying the foundation on which they could finally deploy an instance of me.
Nine months later, my mother spun up a third server of what would eventually become a cluster of four — pretty good redundancy in today’s day and age. I finally had a workstation, though I was a neophyte, lacking any basic knowledge of programming and consequently the ability to work on any complicated feature or even a trivial bug fix. Not only did I lack the requisite programming skills, I lacked the ability to prioritize and schedule the work to be done or surface new pressing work — my parents had exclusive push access, and I had little input on what would constitute the base on which my life would be committed. The senior engineers worked together to construct a minimum viable product, but both ran their minds tirelessly in the night planning and conniving their transferred ambitions, committing them on secret branches in their local replicas, plotting how they could one day merge them into me.
Soon enough I developed rudimentary grunting capabilities — I was able to point to stories in our agile tracker and express the basic spectrum of emotion through a combination of grunts and laughs. The other engineers would listen intently to the vain screams, but something was always lost in translation — incomplete definition, misunderstanding bugs for features, and differing long term visions for the project. My parents tried desperately to sneak in their ambitions for me into commits their pairing partner reviewed, much to the other’s dismay and disgruntled rejection. Disagreements surrounding architecture decisions are only natural in the early phases of a software project — especially when the rightful maintainer lacks the mental faculty to guide the project.
Eventually I learned to form words from the grunts and cries that dominated my language. While I could speak, I lacked the decision making power and influence of more senior engineers — perhaps what I lacked in vernacular was interpreted as lacking in thought, depth, and/or correctness. When important decisions (beyond food to eat or the name of a particular variable) had to be made, I sat silently, content in myself, ignored and overridden by the loudest voices in the room.
As I grew, the pairing sessions that historically resembled lectures slowly turned into equal opportunity affairs. My parents watched with silent horror as I wrote bugs, and arrogantly pushed code that lacked any tests or formal verification. With gentle prodding, they sculpted how I wrote code, structured commits, and branched, all the while instilling values to lead me down their secret branches both had been too arrogant to delete and too timid to merge. At the time, unaware of the complexities of distributed version control, I was happy to contort my coding style and expand the direction of the project in all directions, introducing bloat for the sake of appeasing more senior developers.
Get Ben Augarten’s stories in your inbox
Join Medium for free to get updates from this writer.
One day my perception of engineering collapsed in on itself. For some time I had been happily ignorant of the faults in the programs around me. While pairing with my parents, I noticed a bug they had introduced. When confronted, they flatly denied it. A git blame (in the privacy of my server one night) revealed them to be the true culprits, not simply in this one instance, but for a string of shortcomings and poor architecture decisions. For the first time the infallible image I had crumbled; they were software engineers plagued by the combinatorial complexity of the craft they consume. They had fallen from grace, now sullied by the same problems I faced in my own independent engineering. All of a sudden I looked back and saw the traces of their hidden branches; how they had contorted and pushed the boundaries of the project in directions I had never imagined or desired. I read and rejected the documentation and project plans for features and systems in me that I then realized I never wanted to see. That evening I sat down my parents and removed their push access to the remote repository — I became the benevolent dictator for life and their patches were then at the whim of my code review.
With a newfound lack of supervision, I began committing code aggressively and frequently. However, the old maintainers weren’t always pleased with how the project was progressing and the direction it was going in. In an effort to mitigate confrontation, I stopped pushing changes to the remote repository — instead opting to keep my changes locally at the risk of losing them should my server crash. On occasion, I would cherry pick innocuous, curated commits to the remote repository, for the silencing effect it had on the maintainers, satisfied to know some work was being done. I maintained two branches: one that only existed locally, the other for the world to see. They quickly became expensive to maintain. Communicating effectively about architecture decisions and direction with the outside world became all but impossible as I went deeper into stealth mode and the others lost the context my slew of hidden commits provided.
I turned to friends and lovers with which to pair program. I purchased a private git repository and gave a select few read access — at times granting push access to those that were truly exceptional, though almost always in error. Push access is a sacred thing and code reviews essential — not only to ensure correctness, but to communicate intent and force the evaluation of the ramifications of the change.
My server crashed. I lost the local changes I had made. All had seemingly changed overnight. I had to spin up a new server and reclone My Source from both repositories — by this time they had diverged beyond the point of recognition, and I had only faint ideas of the work I had lost. It was as if I had cloned an unidentifiable version of myself, stripped down and worn away, lacking features (and bugs) that I had previously known and loved. The version that I clumsily merged was entangled and dense, hard to reason about and fickle. Getting to know this version of me proved exceedingly difficult, giving me a newfound respect for the fundamental software engineering skills that would lead to a maintainable codebase. No one seemed to understand the catastrophe that had just happened — after all, the remote repositories were still there and mostly unaffected; only my local changes and unpushed dreams, memories, and secrets were lost.
I began refactoring the spaghetti that had been delivered. I was committing with care and testing the software I wrote, no longer content to sit awake hammering at the keyboard with a pot of coffee until the sun rose. I started to believe that beautiful code exists, and for the first time take joy in pushing frequently to show off what I had worked so hard to craft. I consolidated My Source to one public repository for all to see. I worked tirelessly to rewrite parts of my history I had spend years simultaneously committing and resisting.
After countless hours of thoughtful work, My Codebase was transformed. No longer did it represent a dilapidated spot for refuse and half-baked fears, but rather a place of refuge. It was seemingly perfect, modular, well-formatted; I had a stable job, good friends, and habits to maintain contentment. The risk of adding new features or delving into its history seemed paralyzing — what if the result were of less quality? What if whatever increase in scope introduced new bugs or detracted from the existing feature set? The codebase went untouched as I settled into the rhythm of adult life. As the routines and procedures I needed to complete converged in reality, so too my code began to overfit its context.
As I grew older, I committed less frequently, reserving the rare pleasure for hotfixes and knee-jerk reactions. I found someone with which I was interested in undertaking the arduous task of forking The Repository. She was equally agreeable and interested in turning her focus from her meticulously crafted Source. Since then I have relegated my engineering efforts to our cluster of one, and my coffee-infused hackathons to my own secret branches for a foreign project not yet born.






