this post was submitted on 02 Oct 2023
1281 points (98.4% liked)

Programmer Humor

32495 readers
613 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[–] BlackPenguins@lemmy.world 84 points 1 year ago (5 children)

Every Friday I take 2 min to write a detailed note for the future me so I remember what I was doing. No matter how simple the task was.

[–] Diplomjodler@feddit.de 44 points 1 year ago

That's cheating! Guards! Arrest this filthy impostor!

[–] camr_on@lemmy.world 21 points 1 year ago (1 children)

Every Friday I think that I should do this for my benefit on Monday, and then immediately forget the thought and log off

[–] BlackPenguins@lemmy.world 8 points 1 year ago

Depending on how complex it could be as short as two sentences or just bullet points. Just enough to kick start my memory.

[–] NOT_RICK@lemmy.world 9 points 1 year ago (3 children)

You expect me to actually comment my code?

[–] DoomBot5@lemmy.world 11 points 1 year ago

Not even your code. He's expecting you to comment your life.

[–] BlackPenguins@lemmy.world 10 points 1 year ago* (last edited 1 year ago)

Not code. I keep a text file "work_log.txt" on my desktop that has the date and what I worked on that day. Useful for scrum too.

Today's:

  • Finished the modal

  • Solved the swallowing of the exception with parsing errors

  • Next: Review modal code and test

[–] hakunawazo@lemmy.world 6 points 1 year ago

No Mr. Bond, I expect you to panic in the Monday morning stand-up meeting.

[–] AlexWIWA@lemmy.ml 5 points 1 year ago

Yup. "finished this, start on this next week"

Usually less than two complete sentences. I find this more important with personal projects that I may not pick up in a few weeks

[–] pomfritten@feddit.dk 2 points 1 year ago

This is the way.

[–] tslnox@reddthat.com 44 points 1 year ago (3 children)

I'm not really a programmer but when I code something at work to make my job easier and I have to go before I finish it, I write a little comment for my future self to explain how I'm thinking at the moment, to help restore the flow.

Usually it doesn't work. :-D

[–] chiliedogg@lemmy.world 27 points 1 year ago (1 children)

You didn't have to explain you aren't really a programmer.

Saying you write comments implies it.

[–] ram@bookwormstory.social 11 points 1 year ago (1 children)

My code's self documenting I swear

[–] megane_kun@lemm.ee 6 points 1 year ago

My comment is self-documenting, I swear!

[–] megane_kun@lemm.ee 6 points 1 year ago* (last edited 1 year ago)

Because my work tends to have me working on a wide variety of features, and thus operating on vastly different parts of the codebase, I make it a point to comment out every change I make complete with the ticket that requested the change, and what the intended effect of the change is.

Cue me returning to piece of code I made (after the inevitable bug has arisen) and me staring at my own code changes in bewilderment, wondering what past me really wanted to do. Hahaha!

load more comments (1 replies)
[–] FUCKRedditMods@lemm.ee 41 points 1 year ago (2 children)

Sometimes working at something for long enough puts you into like a fugue state. It’s like the opposite of “flow” where you just dumb down.

^This happens to me only when I had entered my dumbzone the previous shift

[–] herr@lemmy.world 19 points 1 year ago* (last edited 1 year ago) (1 children)

Happens. Then you come back to it after a few days and all the shitfuckery of last session becomes so damn obvious.

[–] danwardvs@sh.itjust.works 11 points 1 year ago

I’ve done this so many times at school and work. It’s crazy what you can accomplish by leaving a problem until the morning.

[–] BlackPenguins@lemmy.world 5 points 1 year ago* (last edited 1 year ago)

Tunnel vision. I get this all the time. Actually more beneficial to go for a walk and not work.

[–] sxan@midwest.social 24 points 1 year ago (1 children)

You very well could have substituted "Monday" with "after lunch."

[–] hexaflexagonbear@hexbear.net 10 points 1 year ago (1 children)

I stg sometimes conversations with my coworkers will give me memento disease and I have to go on a hunt for clues I lefy myself to figure out what I was working on 5 mins ago.

[–] kungen@feddit.nu 5 points 1 year ago (1 children)

Yeah, task interruptions and task switching is awful for productivity. That's why I love WFH and will never voluntarily go back to the office.

load more comments (1 replies)
[–] dustyData@lemmy.world 23 points 1 year ago (2 children)

Opening a repository for the first time in months.

Which brainless moron wrote this idiotic code?

Runs blame.

Oh, it was me.

[–] pjhenry1216@kbin.social 22 points 1 year ago (1 children)

Fuck, I'll look at code I wrote like a month ago and be like, "what was I thinking?". So I try to fix it, run into some stupid issue and be like, "oh, right."

And this is why comments are useful on code who's purpose or reasoning isn't super obvious or even looks counter intuitive.

[–] dustyData@lemmy.world 13 points 1 year ago (2 children)

A professor used to say, we don't write code for the machine. The machine doesn't need code. It would be just as happy whether we hand carve 1s and 0s on ferromagnetic disks or if we wrote a compiler for emojis. Binary is binary. We write code for the humans. So make it legible.

load more comments (2 replies)
[–] Bishma@discuss.tchncs.de 8 points 1 year ago

No one is a real programmer until they've experienced that sensation.

It was more fun before blame, because sometimes it would take 10 minutes to figure out you're the dumbass.

[–] Digital_man@lemmy.one 17 points 1 year ago (1 children)

“Wow, Friday me is an idiot and a jerk.”

[–] fosho@lemmy.ca 15 points 1 year ago (3 children)

I understand and think the intended content is good. but who would post this with such an obvious layout flaw? it used to be posts with terribly distracting grammar whose intent was relatively easy to decipher. lately it feels like even more basic and obvious rules are being lazily ignored and even shared.

WE LIVE IN A SOCIETY.

[–] Gestrid@lemmy.ca 5 points 1 year ago

My brain honestly just skipped over it until I saw your comment.

[–] Numuruzero@lemmy.dbzer0.com 3 points 1 year ago

I'll be honest, for a minute I thought it was not a flaw but referring to "Monday Me, on Monday" which is a concept I can relate to

load more comments (1 replies)
[–] ProfessorPuzzleCode@lemmy.world 13 points 1 year ago* (last edited 1 year ago)

I'm always pretty happy if I have a bug last thing on a Friday. Gets me right back into it first thing on Monday. It's kinda weird, but works for me.

[–] Okalaydokalay@lemm.ee 13 points 1 year ago (1 children)

My boss has a morning meeting where we tell him what we’re working on for the day. And every Monday, this meeting is at 8:00 when my shift starts. I’m thankful my name makes me further down the list because I would be stumbling to get that.

He’s a cool guy and not overly micromanager or anything, so it’s not a huge thing, but just reminded me seeing this meme.

[–] comrade_pibb@hexbear.net 6 points 1 year ago (1 children)

Monday morning stand-ups are like, "yeah what AMi working on this week"

"I'll have it figured out by lunch, probably."

[–] Bye@lemmy.world 11 points 1 year ago

If I didn’t do this, I wouldn’t have a job

Gotta leave unfinished tasks and make frivolous jira issues so it looks like there’s a reason to keep paying me to do 2 hours of work a week

[–] HKayn@dormi.zone 8 points 1 year ago* (last edited 1 year ago)

Someone forgot a <br>

[–] dragnucs@lemmy.ml 7 points 1 year ago (2 children)

That is why you should not leave atomic tasks incomplete.

[–] ikapoz@sh.itjust.works 9 points 1 year ago (1 children)

I’d argue that if it’s possible to only partially complete it, it wasn’t an atomic task to begin with.

[–] QuazarOmega@lemy.lol 3 points 1 year ago (1 children)
$ sudo rm -r_

..Ok, I'll type the rest next week

[–] ikapoz@sh.itjust.works 3 points 1 year ago (1 children)

Exactly, each keystroke is an atomic task! Doesn’t that make you feel more productive?

load more comments (1 replies)
[–] pjhenry1216@kbin.social 4 points 1 year ago (1 children)

For someone who gets paid hourly, I'm only willing to go so far with unpaid work past when I'm supposed to stop.

[–] Knusper@feddit.de 3 points 1 year ago

I mean, I do get paid for overtime (flexible work hours) and do like to complete tasks before I go into the weekend, but sometimes all your team mates decide to call it a day, and then yeah, I don't care that hard either...

[–] brax@sh.itjust.works 4 points 1 year ago

I always thought this was just a "me" thing. I'm so glad it's not. I just wish my wife understood...

[–] xilliah@beehaw.org 2 points 1 year ago

//TODO write todo comments in your wip code.

Your IDE will make them easy to find or you'll just run into them.

[–] Cwilliams@beehaw.org 2 points 1 year ago

I started using suspend on my dev laptop. I basically never close Neovim, and I write notes to myself about what the code does for the next time I open my laptop. I know that's what comments are for, but whatever

[–] ChaoticEntropy@feddit.uk 2 points 1 year ago

"Who were you..."

[–] EfreetSK@lemmy.world 2 points 1 year ago* (last edited 1 year ago) (1 children)

I know this is a common joke but how many of us don't have a problem like this?

Personally I usually have a horible memory but this is never an issue for me, I can stop at any moment and pick up relatively quickly later

[–] Knusper@feddit.de 3 points 1 year ago

Yeah, I've developed a habit of writing TODO-comments wherever there's still something unfinished. And well, I usually leave in a compile error to force me to continue exactly there.

load more comments
view more: next ›