r/programminghorror • u/Dayshadow_ • 1d 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_ • 1d ago
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/just-a-hriday • 1d ago
r/programminghorror • u/cat_sphere • 4d ago
Who said you shouldn't edit HTML with regex?
(for any mods, my title is the code gone wrong)
r/programminghorror • u/HeWhoShantNotBeNamed • 4d ago
I wrote this several years ago. It does work.
r/programminghorror • u/Aaxper • 5d ago
This also happens to be the first bit of Java I've ever written
r/programminghorror • u/igorrto2 • 9d ago
r/programminghorror • u/navierstokes88 • 8d ago
r/programminghorror • u/NanoCozmo • 14d ago
r/programminghorror • u/TheSum239 • 15d ago
i didnt know what to do and spammed anyway
r/programminghorror • u/Successful_Toe_4130 • 17d ago
Basically it injects memory into other processes, which made me laugh at work today.
r/programminghorror • u/TheSupremePebble69 • 17d ago
r/programminghorror • u/MaintenanceKlutzy431 • 19d ago
r/programminghorror • u/letmehaveanameyoudum • 21d ago

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 • 23d ago
r/programminghorror • u/sugarw0000kie • 25d ago
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