this post was submitted on 17 Jan 2025
741 points (99.3% liked)

Programmer Humor

32930 readers
38 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
top 25 comments
sorted by: hot top controversial new old
[–] perishthethought@lemm.ee 66 points 3 days ago (1 children)
[–] king_tronzington@lemm.ee 49 points 3 days ago (4 children)

Pro tip: Keep a log of your work in a text file. I write a few bullet points for each day and on Friday write a "Next Week" section for my todos on that following Monday. Helps reduce the cognitive load of trying to remember what the hell you were about to do next.

[–] thebestaquaman@lemmy.world 9 points 2 days ago* (last edited 2 days ago)

I actually enjoy this part, where I've written some intricate code of sorts and get to spend some time writing a memo that explains how it works.

I usually don't even end up reading them, because the process of writing a good memo will make me remember it.

[–] SpaceNoodle@lemmy.world 15 points 3 days ago* (last edited 3 days ago)

I write down my current/next thoughts on a Post-It and stick it to my keyboard for Monday Noodle.

[–] toynbee@lemmy.world 5 points 3 days ago (1 children)

AKA a WAR, which is an unnecessarily aggressive acronym for "weekly action report."

[–] GregorGizeh@lemmy.zip 3 points 3 days ago

"Weekly action report!? Oh, that means war for sure"

[–] Landless2029@lemmy.world 6 points 3 days ago

I sort of do this in a block comment at the top of some scripts I write.

Changelog for Completed Stuff and Future Features for todo

[–] Neptr@lemmy.blahaj.zone 14 points 2 days ago

Even if documentation can be time-consuming, it is such a lifesaver and makes the whole process of coding much smoother. It means not as much time wasted backtracking. If you think there is any part of your code you won't understand when you coming back to it, document, document, document.

Sometimes I write some multiline psuedocode comments or/and an explaination of specific choices, especially those invisible choices you make while debugging that aren't apparent when your just reading through your code.

Good thing to do is make code that is generally readable too lol.

[–] limer@lemmy.dbzer0.com 16 points 3 days ago

I secretly have forgotten a lot of the working code I wrote months ago; and whenever someone asks, I need to go back and read it like new

[–] 3dmvr@lemm.ee 21 points 3 days ago (1 children)

Its always like 3 hours to remember why I was doing what I was doing, just to scrap it because the core is all wrong.

[–] psud@aussie.zone 5 points 3 days ago

Make up something quickly stand-up is only 30 minutes after starting time

I always leave my project in a state where it doesn't compile or run (not commits, obvs) so I'm forced back into understanding exactly what I was doing when I left off to fix the error.

[–] Crazyslinkz@lemmy.world 16 points 3 days ago* (last edited 3 days ago) (1 children)

If only there were some way to leave some sort of ... what's it called a comment maybe 🤔 idk...

/s

[–] Earflap@reddthat.com 37 points 3 days ago* (last edited 3 days ago) (1 children)
/*
look I know this sucks ass but its Friday and I want to go home.
 I'll fix it on Monday.
*/

Last committed 2014.

[–] WanakaTree@lemm.ee 4 points 2 days ago

Didn't say which Monday

[–] Bosht@lemmy.world 16 points 3 days ago

As is tradition.

[–] veni_vedi_veni@lemmy.world 10 points 3 days ago

Monday stand-ups are the worst

[–] Telorand@reddthat.com 11 points 3 days ago (1 children)

Me except it's everyday, and it's my boss's code, so I'm not able to complain 🫠

[–] veroxii@aussie.zone 5 points 3 days ago (1 children)

You can always complain. You're complaining right now.

[–] Telorand@reddthat.com 3 points 3 days ago (1 children)

But I'm smart enough not to do it to my boss.

[–] Neptr@lemmy.blahaj.zone 3 points 2 days ago

Or are you? Try it, just a lil 😼

[–] DSTGU@sopuli.xyz 2 points 2 days ago

My coworker with whom I m assigned on a project was off on thursday and friday and I m off on monday. Good luck understanding my autistic ass code. Tee hee

[–] comfy@lemmy.ml 1 points 2 days ago

Maybe I'm getting alright at in-code documentation because when my code breaks after months of me not looking at it, I can return and get up to speed in a few minutes.

(or maybe these people are working on much more advanced stuff)

[–] agentshags@sh.itjust.works 5 points 3 days ago

Me coming back to my run of 'luck be a landlord' and trying to figure out what strategy I was even thinking of, when I witness the chaos I left myself as I press 'continue'..

[–] YurkshireLad@lemmy.ca 4 points 3 days ago

This is so me!