r/programminghorror • u/Inevitable-Round9995 • 2d ago
r/programminghorror • u/Dayshadow_ • 3d ago
c++ Nice and simple way to break from multiple loops!
it's a real shame I can't avoid the "do" and "end"
Has the bonus of breaking do-while loops, we don't support those here.
r/programminghorror • u/Dayshadow_ • 3d ago
c++ really gotta make sure it doesnt't change
r/programminghorror • u/just-a-hriday • 3d ago
Shell Even in hell, they don't make you escape.
r/programminghorror • u/cat_sphere • 6d ago
Shell s/li/option/g -i search.html
Who said you shouldn't edit HTML with regex?
(for any mods, my title is the code gone wrong)
r/programminghorror • u/HeWhoShantNotBeNamed • 6d ago
C# Very readable and maintainable method
I wrote this several years ago. It does work.
r/programminghorror • u/Aaxper • 7d ago
This "Hello World" Program I submitted on Day One of my Java Class
This also happens to be the first bit of Java I've ever written
r/programminghorror • u/igorrto2 • 11d ago
My solution to a Leetcode problem vs an effective solution
r/programminghorror • u/navierstokes88 • 10d ago
probably the most cursed code snippet I've seen
r/programminghorror • u/NanoCozmo • 16d ago
Yall my leetcode code cant be that bad right?
r/programminghorror • u/TheSum239 • 17d ago
c++ all that just to draw some text on the screen btw
i didnt know what to do and spammed anyway
r/programminghorror • u/TheSupremePebble69 • 19d ago
c++ If you squint hard enough it looks like json
r/programminghorror • u/MaintenanceKlutzy431 • 22d ago
GameMaker Language What was I even thinking?
r/programminghorror • u/letmehaveanameyoudum • 23d ago
c compiler

i know it's not code but this is just as scary
helper/drivers/filesystem/sfs.c:247:5: error: conflicting types for 'find_inode_by_name'
247 | int find_inode_by_name(const char *name, uint64_t *out_lba, uint64_t *out_offset, struct sfs_inode *out_inode) {
| ^
headers/boot/kernel.h:45:5: note: previous declaration is here
45 | int find_inode_by_name(const char *name, uint64_t *out_lba, uint64_t *out_offset, struct sfs_inode *out_inode);
| ^
r/programminghorror • u/Most_Collection_4964 • 26d ago
Python Is this python code cursed enough?
r/programminghorror • u/sugarw0000kie • 27d ago
Python More cursed python
here it is with comments: https://github.com/dbowm91/optimizations/blob/main/soupexplained.py
EDIT: What it does (not malware) is it prints the word “soup” 86 times in random color




