this post was submitted on 10 Jul 2025
877 points (99.8% liked)

Programmer Humor

24932 readers
1170 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 50 comments
sorted by: hot top controversial new old
[–] ChickenLadyLovesLife@lemmy.world 32 points 18 hours ago (1 children)

I moved from Visual Basic (3 no less!) to C because I needed to optimize the performance of a software synthesis (like, sound synthesis) application I was developing at the time (mid-1990s). It boggles my mind to this day how much fucking work you had to do just to create a simple window in C. It instantly made clear why UIs at the time were so bad and I went back to Visual Basic for the UI with a compiled C DLL to do the heavy lifting.

There's no excuse for why UIs are still so bad today.

[–] lordbritishbusiness@lemmy.world 22 points 18 hours ago (1 children)

The "excuse" is more or less the 20 or so replacements that have been made and died. I think Microsoft alone is responsible for 5 over the life of Windows.

We've more or less kinda settled on HTML only because it's already wide spread. But it's not perfect so more standards for the standards pile. Don't worry, react will end up buried by the next thing on the pile eventually.

[–] ChickenLadyLovesLife@lemmy.world 13 points 18 hours ago

We’ve more or less kinda settled on HTML

It's funny, one of the modern UI glitches that I hate the most is when a long bit of text is just truncated with ellipses instead of the whole thing being shown and you have to hold the mouse over to get it in a tooltip, or shudder actually click on the thing. HTML is great at word-wrapping and allowing the whole UI to "flow" with variable heights and widths as necessary - and yet that is never allowed to happen in apps.

[–] vala@lemmy.world 2 points 10 hours ago

Honestly "C + SDL + Lua" is basically the best, most sane"full stack" I have ever used.

IMO it allows for the perfect level of abstraction.

[–] harbard@fedia.io 18 points 21 hours ago (3 children)

this is like when I built that web server in x86 assembly lol.

[–] Ad4mWayn3@sh.itjust.works 22 points 16 hours ago (1 children)
[–] harbard@fedia.io 3 points 13 hours ago

This. This project drained my soul lol.

[–] laserm@lemmy.world 3 points 15 hours ago (1 children)

I once write a web app in C, but this terrifies even me.. though Tsoding, the guy in the video, did that, too..

[–] harbard@fedia.io 2 points 13 hours ago

My favorite so far is either my websever in bash or my webserver in Common Lisp. my webserver in C was fun too though

[–] Im_old@lemmy.world 8 points 20 hours ago (4 children)

I bet that thing was fast!

[–] frezik@lemmy.blahaj.zone 7 points 15 hours ago

Meh. Even hosting static files in a RAM disk over localhost, you're 99% as good as you can be by using the sendfile() system call. The kernel can copy data from one file descriptor to another faster than any userspace program can. Implementing the Length header is a stat() call.

If you're not on a RAM disk and not on localhost, then disk access or network throughput will predominate.

Assembly is not magic go faster sauce.

[–] Ad4mWayn3@sh.itjust.works 8 points 16 hours ago

I mean, just because you implemented something in a low level lang, it doesn't mean you're gonna have the fastest implementation. Even in high level langs, there's usually heavy optimization involved in things that are done all the time (e.g. web servers)

[–] harbard@fedia.io 1 points 13 hours ago

yeah, in one sense it was lol.

[–] anton@lemmy.blahaj.zone 1 points 14 hours ago (1 children)

Who do you think is better at writing assembly? @harbard@fedia.io or a modern compiler with hundreds of contributors.

[–] harbard@fedia.io 2 points 13 hours ago

It’s definitely not me

[–] snekmuffin@lemmy.dbzer0.com 7 points 18 hours ago (1 children)

can your React do that?? didn't fackin think so dabs mockingly

[–] yetAnotherUser@lemmy.ca 5 points 16 hours ago

How I love mista azozin...

[–] Phoenix3875@lemmy.world 10 points 22 hours ago

React Native

[–] meme_historian@lemmy.dbzer0.com 195 points 1 day ago (2 children)

I see your pitiful vibe coding and raise you... SPITE CODING 👿

[–] ryathal@sh.itjust.works 84 points 1 day ago (1 children)

Spite coding is almost the original coding.

[–] sp3ctr4l@lemmy.dbzer0.com 19 points 1 day ago* (last edited 1 day ago) (2 children)

I have definitely gone into a rageful fugue state and woken up a week later after reworking an entire code base from being an inconsistent mess of slop...

...into actually having a common library of functions instead of just rewriting slightly different versions of them 8 times, having those functions only actually instantiated for necesarry classes...

...rewriting every variable name and function name to an actually consistent and intelligible naming scheme...

... and finally, moving a whole bunch of shit out of some kind of global 'think' type loop that doesn't actually need to be called or checked every goddamned micro second.

Done that more than once actually.

Never look inside 'baby's first video game mod' code, unless you have healthy blood pressure.

But uh yeah, spite, hatred, and anger are indeed powerful motivators for making good code, lol.

... so many idiots just jam everything into a global, called every tick loop, and then claim that it just can't be optimized, because "the game engine just can't handle it"...

[–] ChickenLadyLovesLife@lemmy.world 8 points 18 hours ago (3 children)

I spent a good fraction of my career taking over and trying to fix code bases that my company refused to scrap and replace outright because they didn't want to admit their worthlessness. Complete rewrites would have taken maybe a tenth of the time I spent.

My favorite thing to encounter (which was nearly universal) was the phenomenon of a young programmer fresh out of college encountering SQL for the first time, deciding he hated it, and writing a huge mess of code to handle auto-generating the necessary SQL. I remember taking over one C# application that had classes named "AND.cs" and "OR.cs" which just took a String as a parameter and returned that String with " AND " and " OR " appended to it, respectively. In about an hour, I replaced three months of this guy's work that had bottlenecked the project with like five SQL statements.

It's insane to think what the civil engineering world would be like if it had the career structure of the software world.

[–] sp3ctr4l@lemmy.dbzer0.com 7 points 16 hours ago* (last edited 16 hours ago)

Jesus Fucking Christ.

I've done a lot of SQL/Database type work as well, and yep, I've been the person learning their insane spider web of db structures, and then either trying to enforce some kind of actual defined standards going forward, or in some instances, succeeding at restrucuring the dbs, transitioning them, and convincing corporate that this actually needed to be done.

It's insane to think what the civil engineering world would be like if it had the career structure of the software world.

Points at understaffed ATC tower, collapsing bridge that hasn't been even evaluated in a decade, general state of roadway disrepair and constant re-repair, also the new highway/overpass/lane expansion being built to 'solve traffic' despite doing that literally never working

[–] lordbritishbusiness@lemmy.world 8 points 18 hours ago (2 children)

First thing I tell my interns: "The guys that made that database are smarter than you, they got PhD's for the algorithms the database uses. You are going to use SQL properly, and query properly, because the database will always do it better than your python code."

[–] ChickenLadyLovesLife@lemmy.world 7 points 18 hours ago

Job interviewer: "What's the best sorting algorithm for {whatever}?"
Me: "The SORT BY clause in SQL."

[–] AldinTheMage@ttrpg.network 3 points 15 hours ago

Nah, we'll just SELECT * from both tables and loop through the arrays in JavaScript to associate the records.

[–] Gumbyyy@lemmy.world 3 points 16 hours ago (1 children)

Holy shit, have we worked with the same guy?

[–] ChickenLadyLovesLife@lemmy.world 3 points 12 hours ago* (last edited 12 hours ago)

This guy's code once fired a 125 mph knuckleball a foot above a 10-year-old kid's head. Probably not the same guy.

load more comments (1 replies)
load more comments (1 replies)
[–] Hackworth@sh.itjust.works 51 points 1 day ago (1 children)

I tried vibe coding a simple assembly program and it couldn't do it

[–] mohab@piefed.social 48 points 1 day ago (6 children)

What's this dude talking about?! Everyone knows no one hates React like people who code in React 😂 No one is gonna get pissed off watching this.

[–] Schmoo@startrek.website 11 points 1 day ago

I used to be a React dev. The only thing I hated more than React was my boss.

[–] criss_cross@lemmy.world 7 points 1 day ago

I remember years ago when React was the savior of web apps Swooping in engineers from the clutches of JQuery and AngularJS (not to be confused with Angular 2+). Components we’re gonna make things simpler than the mess of JS files and global state.

And generally that’s true but we’ve traded that off for a mess of hooks and 700 line nested functions in nested functions and obtuse rules that only apply to react and not JS.

Complex web apps are hard.

load more comments (4 replies)
[–] dejected_warp_core@piefed.world 32 points 1 day ago (8 children)

Speaking of coding out of spite, is nobody going to mention that his C code features a struct with over 20 fields in it?

[–] calcopiritus@lemmy.world 35 points 1 day ago

Sometimes you can't not have a god class (struct in this case). When doing UI specifically, I always end up with one.

You can try using encapsulation to reduce the amount of fields technically, but in the end it's the same amount of information in a single god class.

load more comments (7 replies)
[–] SingularEye@lemmy.blahaj.zone 27 points 1 day ago

I love this guy he's a fucking freak of nature

[–] PokerChips@programming.dev 6 points 1 day ago

This reminds me. I got a search engine to build.

load more comments
view more: next ›