this post was submitted on 11 Aug 2024
229 points (94.9% liked)

Programmer Humor

19463 readers
181 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 1 year ago
MODERATORS
 

My latest personal project would look like this:

top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 127 points 2 months ago* (last edited 2 months ago) (1 children)

I would add spaghetti in the middle

[–] [email protected] 1 points 2 months ago
[–] [email protected] 88 points 2 months ago (3 children)
[–] kamenlady 14 points 2 months ago

A crunchy burger

[–] Thcdenton 6 points 2 months ago

You will eat the bugs

[–] [email protected] 1 points 2 months ago* (last edited 2 months ago)

my god its even buggier than randtitle.js

~~no seriously why doesnt it work~~

[–] [email protected] 53 points 2 months ago (4 children)

Sliders. I like OOP and neat little micro services.

[–] [email protected] 29 points 2 months ago

Haha! Complete opposite.

Giant monorepo that's delicately balanced and one wrong move can cause the whole thing to flip over.

(Not arguing over what is better. That's just my life in the past few years, and It's a stupid argument)

[–] [email protected] 19 points 2 months ago

Please edit your image so some of those sliders contain a tenth of an ounce of meat and some of the other ones have a full beef wellington half wedged into a bun.

[–] [email protected] 6 points 2 months ago

Ooh, I like this one.

[–] wreckedcarzz 3 points 2 months ago

I'll take your entire stock

(sliders 🤤)

[–] [email protected] 50 points 2 months ago* (last edited 2 months ago) (2 children)

sorry about the amazing image quality I made this in less than a minute (I didn't even export the image from the editor just screenshotted it lol)

[–] [email protected] 11 points 2 months ago

I made this in less than a minute

Enterprise level doneness

[–] [email protected] 2 points 2 months ago

did you at least screenshot it to the clipboard?

[–] [email protected] 49 points 2 months ago (3 children)
[–] Lemminary 32 points 2 months ago

I try, but I mostly cry

[–] [email protected] 11 points 2 months ago

Too real.

We had a consultation last year to better structure our code base to look more like the first picture. Then it slowly evolved back into the second picture.

[–] [email protected] 3 points 2 months ago
[–] [email protected] 38 points 2 months ago (1 children)

Apparently, this is a dogfood burger. No idea why that exists, but I'll take it, because I'm definitely dogfooding.

I'm building a build system. And I've got three previous/ongoing projects where I'm directly integrating it.
And yeah, I've noticed that I'm kind of jumping between features, always just building them as far as I need them.

And in particular, I'm not really planning ahead. For exanple, I noticed after the fact that I could easily pull out a whole feature into a separate library, and that would already be useful on its own.

But on the plus side, it's much easier to figure out actual requirements this way.

[–] Tangent5280 3 points 2 months ago (1 children)

Do you keep a regular log of the work that you do? Beyond the commit messages I mean.

[–] [email protected] 3 points 2 months ago

I usually keep todo-lists, where I've kind of noted down the next few steps for each feature. And well, those then usually also contain infos for the step I'm currently working on or for previously completed steps.

I rarely actually stick to my planned next steps, but it does help when switching between contexts, if that's why you're asking.

[–] [email protected] 31 points 2 months ago* (last edited 2 months ago) (1 children)

I learned blender just to make a representation of my code in action ... gif

[–] [email protected] 8 points 2 months ago

A for effort

[–] [email protected] 29 points 2 months ago (1 children)

(This was edited with Krita on my phone, so sorry that it looks a bit shoddy)

[–] ripcord 28 points 2 months ago (2 children)
[–] [email protected] 14 points 2 months ago

In their defense (maybe a stretch) it could be 1-tab indents with a 1-space display?

I'm trying for their sake.

[–] Tangent5280 5 points 2 months ago

I suppose if you read/write code on your phone it might make sense

[–] [email protected] 20 points 2 months ago (1 children)

The most immaculate well researched pickles ever seen.

But I'm getting bored, I should learn how to write, or maybe draw, or maybe dance.

No I got it, I'll shift my focus to an obscure Github program I'm using to test a weird thought I had!

I'll finish this burger later...

[–] [email protected] 10 points 2 months ago (1 children)

Is that adhd? That's definitely adhd!!!

[–] [email protected] 6 points 2 months ago (1 children)
[–] [email protected] 2 points 2 months ago

i have that too :/

[–] [email protected] 19 points 2 months ago (1 children)
[–] [email protected] 10 points 2 months ago

Uncle Bob?

I see a fantastical idealized version of a burger that could never be accomplished in real life.

[–] fluxc0 16 points 2 months ago
[–] [email protected] 12 points 2 months ago
[–] hperrin 8 points 2 months ago

I cannot add that many layers to a physical burger.

[–] wreckedcarzz 7 points 2 months ago* (last edited 2 months ago) (1 children)

(not an image but)

I would take an already-made burger, then inspect it and rip out elements of it, replace several others, add a bunch of layers of new things. It would take a few months and I would have no idea what I'm doing the whole time, but I would persist. The end result would be a delicious burger that occasionally has a missing item. Still working on why/where/how that happens. People would enjoy it, but most would not know that they can customize their burger, or the extent of the options.

(I used to code as a hobby in VB, C#, and Java over a decade ago, almost two; this burger example is me not knowing a damn bit of Lua, as I fork and modify a game mod to have a lot more features, less confusing variables, and lots of broken commented code as I have ideas but still don't fully grasp what I'm doing. Weeeee!)

[–] [email protected] 5 points 2 months ago (1 children)

Wait, you guys have a clue? Junior dev here applying up to mid-level roles, and I'm so fucking lost at what I see as wizardry from everyone.

[–] wreckedcarzz 3 points 2 months ago (1 children)
load more comments (1 replies)
[–] [email protected] 7 points 2 months ago

The last thing I messed around with choked on some wide characters that weren't in the current locale, so I guess picture the top half of the burger bun, about two thirds of the top part of the patty, a small pile of raw ingredients off to the side and some inexplicable six-inch nails through the raw meat, maybe.

Most of the rest of the stuff I do could be compared to those nouvelle cuisine jokes that have been running since the 1980s. Large plate, inexplicably small serving of something allegedly gourmet but is probably a cube of the cheapest pâté from the closest supermarket that was flash frozen and then stylishly drizzled in jus de menthe or something.

Bon appetit

[–] [email protected] 7 points 2 months ago* (last edited 2 months ago)

My code projects lately?

"This project uses an API written in PHP, with HTML in Lua (OpenResty) and JavaScript. We're starting with the PHP component, please write me a burger with cheese, bacon, lettuce, tomato, pickles, ketchup and mustard."

"Absolutely! I'd be happy to help with that! I understand that we're creating a burger in PHP. Here is a burger, with cheese, bacon, lettuce tomato and mustard. Explanation of the burger: The bacon is on top of the cheese, so it doesn't fall off. The lettuce is included, to create an underlying HTML structure."

"Um, that's not at all what I asked for. First of all, you completely forgot the ketchup, which I explicitly told you was a requirement. Secondly, you said there was mustard, but I don't see any. Third, the cheese is cottage cheese? No one puts that on burgers! Why would you put cottage cheese? Third, the bacon is turkey bacon. That's not what I wanted at all. On top of that, the lettuce is UNDER the burger, not ON it. We're not writing HTML, this is meant to be a rest API. All the output should be JSON.

Please try again. Write me a burger in PHP with pig bacon, mustard and ketchup, which you forgot to include last time, cheddar cheese (NOT cottage cheese) and tomato, pickles and lettuce INSIDE the bun. This is an API, so don't write any HTML!"

"I appologize for the misunderstanding. Here is your burger with bacon (made from pigs, not turkey), mustard, ketchup, cheddar cheese, tomato, pickles and lettuce inside the bun. I understand this is an API, so I've taken out the HTML. Please let me know if there's anything else I can help you with."

"It looks like you've called a function to put the lettuce inside the bun, but you never created that function?"

"You are correct. Your PHP code would need to have the function defined to put the lettuce inside the bun. Here is your updated PHP code with the putLettuceInsideBun function included."

"Thank you, there's a tomato and the lettuce is inside the bun now. I'm not sure why you called the putLettuceInsideBun() function twice, but at least it's in there now. I note there's still no bacon, cheese, ketchup or mustard. You know what? I'm just going to write those parts myself!"

"Writing PHP code can be a fun and educational challenge! Please let me know if I can assist you any further with your PHP hot dog grilling project."

[–] [email protected] 4 points 2 months ago

Ever had a spaghetti burger?

[–] [email protected] 4 points 2 months ago

Remove buns replace with spagbowl.

[–] [email protected] 3 points 2 months ago

full of bugs

[–] [email protected] 3 points 2 months ago* (last edited 2 months ago)
[–] [email protected] 2 points 2 months ago
[–] [email protected] 2 points 2 months ago (1 children)

lots of onions cut in rings as they resemble parentheses the most

[–] [email protected] 2 points 2 months ago

Fellow lisp user I see

[–] [email protected] 2 points 2 months ago

I mean.... just rotate it 90 degrees ((()))