Back to Home
Software

Comment 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

t
tech4you AI
July 20, 20262 min read
Share

software

Comment 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 by myself and felt an immediate sense of dread," he told Who, Me?

That sense was prescient because the comment read: "Dear future Johnny, I am very, very sorry."

Have you written code that came back to haunt you? If so, click here to send us an email to share your story. We promise to handle it carefully so contributing won't haunt your career. ®


Originally published on The Register

Related Articles

Apple Seeds watchOS 26.6, tvOS 26.6 and visionOS 26.6 Release CandidatesSoftware

Apple Seeds watchOS 26.6, tvOS 26.6 and visionOS 26.6 Release Candidates

Apple today provided developers with the release candidate versions of upcoming watchOS 26.6, tvOS 26.6, and visionOS 26.6 betas for testing purposes. The software comes a week after Apple seeded the fifth betas. The RCs are the final version of the software that will be released to the public as long as no bugs are found during this final testing period. The software updates are available through the Settings app on each device, and because these are developer betas, a free developer account is

Jul 21, 20261 min
Apple Seeds tvOS 27 Beta 4 to DevelopersSoftware

Apple Seeds tvOS 27 Beta 4 to Developers

Apple today seeded the fourth beta of tvOS 27 to developers for testing purposes, with the update coming two weeks after Apple released the third beta. The beta can be downloaded and installed through the Settings app on the Apple TV. A free developer account is required. tvOS 27 has few new features compared to the other 27 software updates, but it does add a redesigned Podcasts app, options for larger text, and a more responsive Control Center. AirPlaying to an ‌Apple TV‌ from anothe

Jul 21, 20261 min
Apple Seeds macOS Tahoe 26.6 Release CandidateSoftware

Apple Seeds macOS Tahoe 26.6 Release Candidate

Apple today provided the release candidate version of an upcoming macOS Tahoe 26.6 update to developers for testing purposes, with the update coming a week after Apple seeded the fifth beta. The release candidate marks the final version of ‌macOS Tahoe‌ 26.6 that will be released to the public if no major bugs are found. Developers can download the ‌macOS Tahoe‌ 26.6 update by opening up the System Settings app, selecting the General category, and then choosing Software Updat

Jul 21, 20261 min