Me, six months ago: "This is elegant, maintainable, future-proof code!"

Also me, today: "Who the hell wrote this shit?!"

It's funny how code apparently decomposes even though not a single byte has changed.

@fribbledom I'm sure I was once told that the first law of programming is that any code that you wrote yourself more than 6 months ago is indistinguishable from code written by some other bugger
@statsguy @fribbledom Very true. This is one reason the first thing a good programmer prioritizes after basic correctness is not performance, or elegance, or whatever, but readability-- because if it works at all, someday the poor asshole trying to puzzle out how and why will be you.
@statsguy
I wouldnt be so sure, I can sometimes look at code that's 5 years old and tell which of my colleagues wrote it.
@fribbledom

@statsguy @fribbledom Being sick for a few weeks and having to read back my own code is what taught me to comment my code well in university.

Not my teachers, although they definitely tried. But experiencing that. Some things need to be felt before believing I guess  .

@fribbledom I‘m pretty sure when the day comes and I think „wow, that’s flawless! who tf wrote this?!!“ and git blame shows my name, I am screwed. Because I learned nothing since and forgot I even wrote that „flawless“ piece of code.

@fribbledom

I bet I'm still writing code like this today!

"Here" they say "fix this bug written in Ruby."

"I have never written any Ruby code in my life" I reply.

🤔 they jestered.

Sure, I fixed the code. But what's #Ruby?

@fribbledom This is one of the reasons I'm not super critical of other people's code... months or years later, I look at my own code and wonder what I was thinking when I wrote that.
@raven @fribbledom I don't write comments for others to maintain the code, but to tell me what the hell I was thinking when I wrote it in the first place.
@fribbledom That’s why I always tell my devs maintainable code. It doesn’t mean that the algorithm is the best. But it makes you in 6 months or the poor junior having to extend it in 12 months at least get the idea behind your thoughts. Really helps when doing refactoring in teams.
@fribbledom mine is like good wine. It gets better while you are drinking the wine and keep looking at it.
@fribbledom i have seen this happen in the space of 2 weeks with code, and over the duration of a pee break with drawings.
@fribbledom remember that software quality is measured in WTFs/minute. If your other software has a higher value you might did okay 😂

@fribbledom I'm fighting intermittent Golang segfaults in a GitHub Actions -> Terraform -> AWS chain.

0 code changes: works fine.
0 code changes: Golang segfault
0 code changes: works fine.
0 code changes: Golang segfault

Are we having fun yet?