Comment in code read 'Dear future me, sorry I wrote this'

https://www.theregister.com/headlines.atom Hits: 55
Summary

software in code read 'Dear future me, sorry I wrote this' Developer was hired to write VB, used C# instead, and thought he mostly made it work WHO, ME? Regrets? We've had a few. And so have many readers of The Register, who we try to help by getting their stories of workplace mistakes off their chests every Friday in a reader-contributed column we call "Who, Me?"This week, meet a reader who asked to be Regomized as "Johnny," who told us he was once hired as a Visual Basic developer, a job he thought was beneath him.He got on with things anyway, until he was given a new project that he decided to write in C# despite that language being new at the time. "To my satisfaction, it handled everything the customer required," Johnny told The Register. But then he hit trouble. A complex string manipulation routine that determined how tasks were routed started to glitch."About half the time, it worked perfectly. The rest of the time, it failed completely," Johnny wrote. "I stepped through the code repeatedly, checking every transformation, every condition, every variable – but nothing stood out as wrong."He therefore started making small and random changes in the hope it would flush the bug into the open.One of those changes broke everything, so Johnny reverted it – and after that the glitch magically disappeared."I compared versions, searched for differences, retraced my steps – and found no reason," he told The Register. "To this day, I have no idea what caused it or why it disappeared." Over time, the incident faded from Johnny's memory.Several years later, Johnny was still at the company and had climbed the career ladder to become a senior developer."One day, the support team escalated an issue to me: an intermittent bug that no one could solve. I agreed to take a look," he said. His first step was to look for comments in the code to understand the intent of whoever wrote this piece of software."Scrolling through the header, I found the author's note originally written b...

First seen: 2026-07-20 07:00

Last seen: 2026-07-22 13:45