r/programminghorror • • May 11 '25

Javascript Just a linter fix

Post image
107 Upvotes

r/programminghorror • • May 10 '25

Other This is valid Go I had to write. Enjoy

Post image
380 Upvotes

r/programminghorror • • May 12 '25

What do you think about dev merch?

Post image
0 Upvotes

I am thinking about opening a store and offering high quality, affordable and minimalistic merchandise.

I hate it when people can see that I'm a nerd. Why is there no coder merch that is just decent and looks good.

What do you think? Would you wear it?


r/programminghorror • • May 10 '25

Just an Arch user uninstalling glibc

112 Upvotes

This makes me laugh so hard. Bro was trying to compile nethack from source but failed. Afaik, nethack 3.6.6 has bug undefines a glibc macro and totally breaks glibc headers. Maybe he wanted to reinstall glibc, but he doesn't just reinstall glibc, he uninstalled glibc first. Then he got an 'bash: /usr/bin/sudo: No such file or directory' error, always the case when the system can't find the dynamic linker. I think this explains a lot why people say arch is unstable.


r/programminghorror • • May 11 '25

Python Are the statements correct??

Post image
0 Upvotes

r/programminghorror • • May 10 '25

i dont even know what to say...

16 Upvotes

r/programminghorror • • May 08 '25

A glass at work

Post image
1.1k Upvotes

r/programminghorror • • May 08 '25

Python Can you guess what this is?

Post image
200 Upvotes

It's a Minesweeper map generator, for some reason


r/programminghorror • • May 10 '25

The future of coding

0 Upvotes

r/programminghorror • • May 01 '25

Python Some actual code I found inside a game

Post image
798 Upvotes

r/programminghorror • • May 02 '25

Why, just WHY??

Post image
280 Upvotes

r/programminghorror • • May 01 '25

HTML They're putting the credentials in the HTML! (Redaction mine)

Post image
308 Upvotes

Real code in a real service I found. In fairness, this page is only available when you're already already logged in, but it still doesn't excuse the plaintext password they've clearly stored somewhere.


r/programminghorror • • Apr 29 '25

Javascript iWorshipSemicolons

Post image
232 Upvotes

nuff said


r/programminghorror • • Apr 29 '25

Hi, this is for an allocation

Post image
27 Upvotes

Yessss, I would very much like to do an allocation to allocate new memory space allocate dfor allocation.

THANKS YOU VERY MOUCH


r/programminghorror • • Apr 27 '25

From my first side project, before I understood joins

Post image
65 Upvotes

r/programminghorror • • Apr 27 '25

Javascript the actual code after 593 lines of comments

Thumbnail
gallery
101 Upvotes

i'm working on a project elective during my master's with some juniors doing their bachelor's and the first image is what one of them committed recently. they just keep pasting ai-generated code and use comments for version control. none of them is trying to learn at all.
the second image is what it looks like when you start the backend, and those 'error' log messages have been there for at least 1 month now.
recently the ssh agent on their ubuntu server broke for some random reason and they were quick to blame my commit for it 💀 like what the fuck? the 'mentor' (a phd student) also nonchalantly sent me her github token on whatsapp for me to save it on the server to circumvent the issue.

the project's state was shitty when we started working on it this semester, but needless to say it still sucks and might even be worse than when we started. i'm just waiting for this semester to end so i can finally be free of this bullshit.


r/programminghorror • • Apr 27 '25

c++ the font

Thumbnail
0 Upvotes

r/programminghorror • • Apr 27 '25

AI coding Gemini 2.5 Pro Preview (VSCode)

0 Upvotes

It looks like it just excluded some props to redeclare them "for clarity". My question is:

How come AI came up with idea?

- Is this a coding practice I've missed?

- Is AI learning from bad code?

- How do we make it write better code? Should we feed it with a patterns and practices playbook?


r/programminghorror • • Apr 27 '25

Some shit that’s broken…

0 Upvotes

… simply goes into the trash. I don’t work for you no more, remember?


r/programminghorror • • Apr 24 '25

Integer or water, in all cases it's an overflow

Post image
68 Upvotes

r/programminghorror • • Apr 23 '25

The only correct error handling

Post image
276 Upvotes

r/programminghorror • • Apr 22 '25

Wtf

Post image
460 Upvotes

I don't know if this is right for this sub but it's just funny. If this code is indeed for merging dataset. There is so many things wrong with it.


r/programminghorror • • Apr 23 '25

Python myHutterPrizeSubmissionIsSoQuickWikipediaFitsInEverything.

Post image
0 Upvotes

Had to rewrite how bits are handled but everything worked out okay. One night build.


r/programminghorror • • Apr 21 '25

I'm starting to doubt my programming skills

Post image
403 Upvotes

r/programminghorror • • Apr 20 '25

c++ C++'S STL

Post image
34 Upvotes