this post was submitted on 11 Aug 2024
233 points (94.6% liked)

Programmer Humor

19572 readers
1875 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
[–] souperk@reddthat.com 135 points 3 months ago* (last edited 3 months ago) (1 children)

I would add spaghetti in the middle

[–] dosuser123456@lemmy.sdf.org 1 points 2 months ago
[–] GoogleSellsAds@sh.itjust.works 89 points 3 months ago (3 children)
[–] kamenlady@lemmy.world 14 points 3 months ago

A crunchy burger

[–] Thcdenton@lemmy.world 6 points 3 months ago

You will eat the bugs

load more comments (1 replies)
[–] wesker@lemmy.sdf.org 57 points 3 months ago (4 children)

Sliders. I like OOP and neat little micro services.

[–] ByteOnBikes@slrpnk.net 32 points 3 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)

[–] xmunk@sh.itjust.works 19 points 3 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.

[–] Albbi@lemmy.ca 7 points 3 months ago

Ooh, I like this one.

[–] wreckedcarzz@lemmy.world 3 points 3 months ago

I'll take your entire stock

(sliders 🤤)

[–] Muehe@lemmy.ml 53 points 3 months ago (3 children)
[–] Lemminary@lemmy.world 33 points 3 months ago

I try, but I mostly cry

[–] ByteOnBikes@slrpnk.net 12 points 3 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.

[–] superkret@feddit.org 3 points 3 months ago
[–] arudesalad@sh.itjust.works 51 points 3 months ago* (last edited 3 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)

[–] sukhmel@programming.dev 11 points 3 months ago

I made this in less than a minute

Enterprise level doneness

[–] vrighter@discuss.tchncs.de 2 points 3 months ago

did you at least screenshot it to the clipboard?

[–] Ephera@lemmy.ml 41 points 3 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@lemmy.world 3 points 3 months ago (1 children)

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

[–] Ephera@lemmy.ml 3 points 3 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.

[–] Sparky@lemmy.blahaj.zone 32 points 3 months ago* (last edited 3 months ago) (1 children)

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

[–] jonathanvmv8f@lemm.ee 8 points 3 months ago

A for effort

[–] JackGreenEarth@lemm.ee 31 points 3 months ago (1 children)

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

[–] ripcord@lemmy.world 29 points 3 months ago (2 children)
[–] AlecSadler@sh.itjust.works 14 points 3 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@lemmy.world 5 points 3 months ago

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

[–] Wirlocke@lemmy.blahaj.zone 21 points 3 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...

[–] souperk@reddthat.com 11 points 3 months ago (1 children)

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

[–] Wirlocke@lemmy.blahaj.zone 7 points 3 months ago (1 children)
[–] dosuser123456@lemmy.sdf.org 2 points 2 months ago

i have that too :/

[–] FQQD@lemmy.ohaa.xyz 21 points 3 months ago (1 children)
[–] xmunk@sh.itjust.works 10 points 3 months ago

Uncle Bob?

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

[–] chahk@beehaw.org 19 points 3 months ago* (last edited 3 months ago)
[–] fluxc0@lemmy.world 16 points 3 months ago
[–] jaemo@sh.itjust.works 12 points 3 months ago
[–] hperrin@lemmy.world 8 points 3 months ago

I cannot add that many layers to a physical burger.

[–] palordrolap@kbin.run 8 points 3 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

[–] thebardingreen@lemmy.starlightkel.xyz 7 points 3 months ago* (last edited 3 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."

[–] wreckedcarzz@lemmy.world 7 points 3 months ago* (last edited 3 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!)

[–] SatouKazuma@programming.dev 5 points 3 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@lemmy.world 3 points 3 months ago (1 children)
[–] SatouKazuma@programming.dev 1 points 3 months ago

Impostor syndrome is a fucking bitch. That's why I gave up on ever thinking I'll understand anything.

[–] ironcrotch@aussie.zone 4 points 3 months ago

Remove buns replace with spagbowl.

[–] isVeryLoud@lemmy.ca 4 points 3 months ago

Ever had a spaghetti burger?

[–] kill_dash_nine@lemm.ee 3 points 3 months ago* (last edited 3 months ago)
[–] sheepishly@fedia.io 3 points 3 months ago

full of bugs

[–] pkill@programming.dev 2 points 3 months ago (1 children)

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

[–] JetpackJackson@feddit.org 2 points 3 months ago

Fellow lisp user I see

[–] ornery_chemist@mander.xyz 2 points 3 months ago

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

[–] dosuser123456@lemmy.sdf.org 2 points 2 months ago
load more comments
view more: next ›