this post was submitted on 16 Jun 2023
45 points (95.9% liked)

Programmer Humor

19821 readers
2 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
top 8 comments
sorted by: hot top controversial new old
[–] gkd@lemmy.ml 2 points 2 years ago

Comments? What are comments?

[–] tiny_fingers@programming.dev 2 points 2 years ago (1 children)

Heheh. Sometimes if it's getting close to going home time, but I just had an epiphany, I'll add comments to my code so I can remember my train of thought for the next day. Then I promptly forget to remove the comment after I add the code because I get pulled into some other 'emergency'.

[–] odama626@lemmy.world 1 points 2 years ago

I do this too, will have a list of todos. There is an atlassian vscode extension that lets you create tickets from todos though so that can be pretty helpful

[–] freopen@lemmy.world 1 points 2 years ago

Yet another useless use of cat...

[–] snowseth@startrek.website 1 points 2 years ago

It's self-documenting.

[–] JustinFTL@kbin.social 1 points 2 years ago (1 children)

@odama626 when my brain goes in auto-mode, mine ends up like:

`// opens dialog window
openDialogWindow(){

// set dialog config
const config = new DialogWindowConfig({...});

// open window
dialogWindow.Open(config);
}`

[–] tortoise@tortoisewrath.com 1 points 2 years ago* (last edited 2 years ago)

mrw the style guide requires documentation for every function

[–] dylanTheDeveloper@lemmy.world -1 points 2 years ago* (last edited 2 years ago)

I read peoples code submit descriptions and a bunch are extremely detailed, then the ones after from the same user same day are usually "oh this doesn't work, should work now" or more regularly "iwqrjtqwiuht"