this post was submitted on 26 Jul 2025
2 points (100.0% liked)

Programmer Humor

25885 readers
694 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 22 comments
sorted by: hot top controversial new old
[–] skip0110@lemmy.zip 2 points 3 weeks ago (2 children)

AI just enables the shit programmers to create a greater volume of shit

[–] Asetru@feddit.org 2 points 3 weeks ago

I'll tape this to my office door.

[–] Hasherm0n@lemmy.world 2 points 3 weeks ago

My favorite one I've seen so far was "AI can take a junior programmer and make them a 10x junior programmer."

[–] ignotum@lemmy.world 1 points 3 weeks ago (1 children)

I remember when a senior developer where i worked was tired of connecting to the servers to check its configuration, so they added a public facing rest endpoint that just dumped the entire active config, including credentials and secrets

That was a smaller slip-up than exposing a database like that (he just forgot that the config contained secrets) but still funny that it happened

[–] PattyMcB@lemmy.world 2 points 3 weeks ago (1 children)

That's not a "senior developer." That's a developer that has just been around for too long.

Secrets shouldn't be in configurations, and developers shouldn't be mucking around in production, nor with production data.

[–] ignotum@lemmy.world 1 points 3 weeks ago

Yeah the whole config thing in that project was an eldritch horror of a legacy, too ingrained in both the services and tooling to be modified without massive rewrites

[–] fmstrat@lemmy.nowsci.com 1 points 3 weeks ago (1 children)
[–] funkless_eck@sh.itjust.works 0 points 3 weeks ago (2 children)
[–] FooBarrington@lemmy.world 1 points 3 weeks ago (1 children)

You know that's not the Tea code, but the downloader, right?

[–] mobotsar@sh.itjust.works 0 points 3 weeks ago (1 children)

There's nothing wrong with manually breaking a loop.

[–] funkless_eck@sh.itjust.works 1 points 3 weeks ago

There's nothing wrong with eating a banana with a knife and fork, either.

Except living with the shame.

[–] Stillwater@sh.itjust.works 1 points 3 weeks ago

Believe it or not a lot of hacking is more like this than you think.

[–] EmilyIsTrans@lemmy.blahaj.zone 1 points 3 weeks ago (2 children)

I absolutely despise Firebase Firestore (the database technology that was "hacked"). It's like a clarion call for amateur developers, especially low rate/skill contractors who clearly picked it not as part of a considered tech stack, but merely as the simplest and most lax hammer out there. Clearly even DynamoDB with an API gateway is too scary for some professionals. It almost always interfaces directly with clients/the internet without sufficient security rules preventing access to private information (or entire database deletion), and no real forethought as to ongoing maintenance and technical debt.

A Firestore database facing the client directly on any serious project is a code smell in my opinion.

[–] tiramichu@sh.itjust.works 1 points 3 weeks ago* (last edited 3 weeks ago)

It's like people learn how to make a phone app in React Native or whatever, but then come to the shocking and unpleasant realisation that a data-driven service isn't just a shiny user interface - it needs a backend too.

But they don't know anything about backend, and don't want to, because as far as they are concerned all those pesky considerations like data architecture, availability, security, integrity etc are all just unwanted roadblocks on the path to launching their shiny app.

And so, when a service seemingly provides a way to build an app without needing to care about any of those things, of course they take it.

And I get it, I really do. The backend usually is the genuine hard part in any project, because it's the part with all the risk. The part with all the problems. The place where everything can come crashing down or leak all your data if you make bad decisions. That's the bothersome nature of data-driven services.

But that's exactly why the backend is important, and especially the part you can't build anything decent without thinking about.

[–] grendel84@tiny.tilde.website 1 points 3 weeks ago

@EmilyIsTrans @lena

sounds like firebase itself is a hack.

I'm honestly embarrassed by my fellow devs more often than not these days.

What the fuck happened to craftsmanship? Or taking pride in your work?

oh right, techbro startup culture garbage ended it.

[–] taiyang@lemmy.world 1 points 3 weeks ago (2 children)

This reminds me of how I showed a friend and her company how to get databases from BLS and it's basically all just text files with urls. "What API did you call? How did you scrape the data?"

Nah man, it's just... there. As government data should be. They called it a hack.

[–] lord_ryvan@ttrpg.network 3 points 4 days ago

When getting data legitimately is beyond them…

[–] kieron115@startrek.website 2 points 3 weeks ago* (last edited 3 weeks ago)

ah yes, the forbidden curl hack

[–] Diplomjodler3@lemmy.world 0 points 3 weeks ago (1 children)

I always get irrationally angry when i see python code using os.path instead of pathlib. What is this, the nineties?

[–] UndercoverUlrikHD@programming.dev 0 points 3 weeks ago (1 children)

What big advantages does pathlib provide? os.path works just fine

[–] Diplomjodler3@lemmy.world 1 points 3 weeks ago
  • Everything is in one library which offers consistency for all operations.
  • You can use forward slashes on Windows paths, which makes for much better readability.
  • You can access all the parts of a pathlib object with attributes like .stem, .suffix or .parent.
  • You can easily find the differences between paths with .relative_to()
  • You can easily build up complex paths with the / operator (no string additions).

Just off the top of my head.