hachyderm.io is one of the many independent Mastodon servers you can use to participate in the fediverse.
Hachyderm is a safe space, LGBTQIA+ and BLM, primarily comprised of tech industry professionals world wide. Note that many non-user account types have restrictions - please see our About page.

Administered by:

Server stats:

8.9K
active users

Everyone always wants to say worthy things about the qualities that make a good programmer. But I occasionally think that "a sense of humour" isn't given enough credit.

In programming, you're constantly making mistakes, and being told you're wrong (by code reviewers, bug reporters, and the computer itself). If you let that get you down, you'll quickly find another career.

When I realise I've made a mistake, my reaction is often to find it amusing – smile a bit, maybe laugh out loud, share it with a friend if it's funny enough.

I can't remember how I got that attitude in the first place. Perhaps just luck. But I sometimes think it's the main reason I stuck with what would otherwise be a frustrating profession!

@simontatham @genehack Pretty sure I've told this story here before, but I was once responsible for a team that managed daily log file analysis. For various reasons sometimes some of the necessary log files might be missing when the scheduled job ran, so I built a tool admins could use to rerun the daily analysis after trying to fetch the missing logs. In certain circumstances that tool could restart itself, leading to a subtle bug related to an open filehandle.

I (eventually) found and fixed the bug, and added a Bart Simpson style comment below the bug fix:

#I will always close my filehandles.
#I will always close my filehandles.
#I will always ...

Months after I left that job, I got a text from somebody still at the company, containing just that code comment. He'd gotten a big laugh out of it.

@fedward @simontatham I have a friend and former coworker who is currently maintaining a stack of bioinformatics/sequence analysis stuff originally developed by ...let's be kind and say, "non-coders", that I completely rewrote during a period of pretty high stress, and he periodically toots out comments that I left behind. It's amusing.

(As a sample, the first line of the project's README.md was "Lasciate ogne speranza, voi ch'intrate"...)

Simon Tatham

@genehack @fedward I suspect that's a fairly common opening line of terrifying comments, along with variations on 'here be dragons'!

One of my favourite comments I ever wrote occurred when I found an incomprehensible source file, spent an afternoon making sense of it, and since there wasn't an explanation already, wrote up what I'd found in a big comment at the top, with the opening paragraph

"This module is totally incomprehensible without hours of drawing small diagrams and swearing, so I'm going to write a comment for the benefit of the next poor sucker."

The reason I liked this so much was that, ten years later, it turned out that the next poor sucker was Future Me, who was very grateful to Past Me!