922
top 50 comments
sorted by: hot top controversial new old
[-] vala@lemmy.world 1 points 1 hour 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.

[-] ChickenLadyLovesLife@lemmy.world 32 points 9 hours ago

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 23 points 9 hours ago

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 14 points 8 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.

[-] snekmuffin@lemmy.dbzer0.com 7 points 9 hours ago

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

[-] yetAnotherUser@lemmy.ca 5 points 6 hours ago

How I love mista azozin...

[-] harbard@fedia.io 18 points 11 hours ago

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

[-] Ad4mWayn3@sh.itjust.works 21 points 7 hours ago
[-] harbard@fedia.io 2 points 4 hours ago

This. This project drained my soul lol.

[-] laserm@lemmy.world 4 points 6 hours ago

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 4 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 11 hours ago

I bet that thing was fast!

[-] frezik@lemmy.blahaj.zone 7 points 6 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 9 points 7 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 4 hours ago

yeah, in one sense it was lol.

[-] anton@lemmy.blahaj.zone 1 points 5 hours ago

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 4 hours ago

It’s definitely not me

[-] Phoenix3875@lemmy.world 10 points 13 hours ago

React Native

[-] MITM0@lemmy.world 1 points 9 hours ago

I'm still waiting for the day we get a proper alternative to JavaScript.

If I had to make one, it would have a Bash-like syntax

[-] meme_historian@lemmy.dbzer0.com 204 points 1 day ago

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

[-] ryathal@sh.itjust.works 88 points 1 day ago

Spite coding is almost the original coding.

[-] sp3ctr4l@lemmy.dbzer0.com 19 points 22 hours ago* (last edited 21 hours ago)

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 7 points 9 hours ago

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 7 hours ago* (last edited 7 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 7 points 9 hours ago

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."

[-] AldinTheMage@ttrpg.network 3 points 6 hours ago

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

[-] ChickenLadyLovesLife@lemmy.world 6 points 8 hours ago

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

[-] Gumbyyy@lemmy.world 2 points 6 hours ago

Holy shit, have we worked with the same guy?

[-] ChickenLadyLovesLife@lemmy.world 2 points 3 hours ago* (last edited 3 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 52 points 1 day ago
[-] pineapplelover@lemmy.dbzer0.com 6 points 14 hours ago

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

[-] dejected_warp_core@piefed.world 33 points 1 day ago

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

[-] wheezy@lemmy.ml 31 points 16 hours ago

Oh man. You should see the source code for IOS (the Cisco one not Apple).

Spent 5 years working on it out of college. I think it's the most cursed code base you can imagine.

Not necessarily because of the massive struct defs everywhere. They are kinda needed when you're running an entire OS as basically a set of interacting Linux processes pretending to be an OS.

At some point Cisco realized they could not compete without putting a Linux kernel as their base. So they basically just copy and pasted the old code written in the early 90s for the IOS and put it into a set Linux processes.

To be clear. It's not just the front end. They didn't really change the code much from the old IOS. Its a cluster fuck of interprocess communication hacks that probably seemed like a good idea at the time.

It is a massive pain in the ass to code because you're basically doing everything on the Linux kernel and then frustratingly have to write the CLIs for IOS just so Cisco can continue to sell their proprietary OS with some of the most unnecessary hardware locks. Massive learning curve for any new engineer.

Literally, no one on the entire switching team knew how to send a message from a specific process to the IOS process. I had been assigned something that needed it. So I somehow figured it out and was "the guy" for that for the time I spent there.

Fuck. I'm gonna start ranting more if I go any further. But yeah, sometimes you need a massive struct because some idiot decided that forcing a closed source CLI on the market is a good idea for profits.

Definitely not a good idea for coding. But you learn quickly that no one actually cares about good code in this industry. There is no time for it. There is no reason for it. Just spit out garbage until it works and your manager won't care.

If you want clean code. Go write an open source project or a personal project.

[-] ChickenLadyLovesLife@lemmy.world 11 points 9 hours ago

I used to work for Cisco but I can't say what it's like internally. Not because of an NDA but because I literally have no idea. I worked for a much smaller competitor of theirs that they acquired, obviously just to remove a competitor from the marketplace. We were all allowed to work remotely but given nothing at all to do for six months and then everybody (except the executives, of course) was laid off.

[-] wheezy@lemmy.ml 3 points 3 hours ago

Literally just had the same thing happen to me. This time at Microsoft. Worked for a small startup. It got bought out in 2023 after investments in actual hardware that wasn't named Nvidia died.

Layoffs on most of our engineers. Somehow I survived and basically did no work for 2 years. Was finally laid off.

I hated it. But I basically stole a salary from Microsoft for two years. Fuck these big tech companies.

[-] calcopiritus@lemmy.world 37 points 22 hours 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)
[-] PokerChips@programming.dev 6 points 17 hours ago

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

load more comments
view more: next ›
this post was submitted on 10 Jul 2025
922 points (99.8% liked)

Programmer Humor

24932 readers
1100 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