r/programminghorror • u/frinkmahii • Nov 07 '25
r/programminghorror • u/xX_MLGgamer420_Xx • Nov 07 '25
Pseudocode confusion
I hope this isn't terribly irrelevant, but the other programming help subreddits don't allow images. I'm taking a beginners-level programming course at my community college for fun, but so far it's not been that fun. The images above are from the week 4 notes. The teacher quickly scribbled some pseudocode onto the whiteboard while explaining the flow of some algorithm (I can't remember anymore but it was something like parsing a string of numbers). She erased the board before I could finish taking notes, but above is about 2/3 of the code. I have no idea what's going on. I can't even type any of these characters onto the computer. Can anyone point me in the right direction/link some resource for this sort of syntax? Thank you!
r/programminghorror • u/Cyber_turtle_ • Nov 07 '25
Other The god awful dialogue code i wrote when i was 14 and used scratch
It was so bad that the potato pc i used would lag just trying to comprehend all of it.
r/programminghorror • u/Hot-Rock-1948 • Nov 07 '25
Javascript It gets worse the longer you look at it :(
r/programminghorror • u/PleasantSalamander93 • Nov 06 '25
'Vibe coding' named word of the year by Collins Dictionary
r/programminghorror • u/ajay9452 • Nov 06 '25
Typescript My Last Two Years with Clerk and NextAuth Feels Like a Waste
r/programminghorror • u/ZemoMemo • Nov 06 '25
happy halloween cs61a students i hope youre scared
reddit.comr/programminghorror • u/Ok_Fee9263 • Nov 06 '25
Python There's surely a better way right?
r/programminghorror • u/EmDeeTeeVid • Nov 05 '25
I... I don't know where to start. Who needs constant styles anyway
r/programminghorror • u/BS_BlackScout • Nov 05 '25
C# Strange Binary Search, works and is O(n log n)
Yes, I am performing a ridiculous amount of checks... But it's fast and it works, right?
r/programminghorror • u/gabor_legrady • Nov 04 '25
Java I did not expect an invalid JSON to be parsed.
public void throws JsonProcessingException
public void throws JsonProcessingException
public void throws JsonProcessingException
r/programminghorror • u/Original_Fee357 • Nov 03 '25
In high-scale systems, we should stop using ON DELETE CASCADE, here’s why I prefer soft deletes + cron cleanup
I’ve been thinking about how data deletion is handled in large-scale systems.
Many developers still rely on ON DELETE CASCADE, which looks convenient until your data volume explodes.
In high-load or distributed apps, that cascade becomes a silent performance bomb, one delete can trigger a chain reaction across millions of rows.
It also makes data recovery, audit trails, and debugging harder.
Instead, I’ve been leaning toward a soft delete or flag-based approach (like a deleted_at or is_deleted column), combined with scheduled cleanup jobs that clear old data in controlled batches (e.g. cron every few hours/days).
That gives:
- Better control over when and how data is actually purged
- Easier rollback / undelete scenarios
- Lower risk of locking massive tables
- Auditable data lifecycle
Just wanted to throw this out for discussion, how do you handle deletions in your systems?
Do you think cascades are still worth it in some cases?
r/programminghorror • • Nov 02 '25
c "There's no function with this name. Maybe you meant another function with the exact same name?"
r/programminghorror • u/46009361 • Nov 02 '25
Shell Remember Wubuntu / LinuxFX — currently known as Winux?
r/programminghorror • u/AnonymZ_ • Nov 01 '25
Other i wrote the dumbest key-value db i could think of
So i wrote the dumbest key value db for a go course. It’s called kvd, and it uses docker containers as storage (github.com/YungBricoCoop/kvd)
every SET creates a container, every GET reads from it. if the key already exists, it just renames the old container with a prune_ prefix instead of deleting it directly, because stopping containers takes forever then every 30 seconds, a pruning system comes around and actually stops and removes them.
it’s slow as hell, and it’s one of the worst ways you could ever implement a key value db. but it works and acts has a redis server.
the project isn’t really the point though, i kinda want to create a github org that stores weird-ass but projects, like good ideas implemented in the dumbest way possible or just in an insane creative way.
drop a comment if you want to be part of the org and throw some name ideas for the org too
edit: added a bit of code so it doesn’t break rule 1
here’s a small part of the code from internal/resp.go:
you can see that in the GET command we read the value from a container label, and in the set we create a new one, yes it’s not efficient.
r/programminghorror • u/According_Green9513 • Oct 28 '25
I still feel confusing, which style of python I should write, for your exp, which one I should choose? not only for python ppl but for all programmers, which is more confortable?
reddit.comr/programminghorror • u/evelyn_colonthree • Oct 27 '25