this post was submitted on 01 Mar 2025
196 points (93.4% liked)

Programmer Humor

20906 readers
482 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
 

Probably not a good title to seek upvotes. If it does get upvotes, more programmers get share in your pain ๐Ÿ˜…

you are viewing a single comment's thread
view the rest of the comments
[โ€“] troyunrau@lemmy.ca 41 points 3 days ago (3 children)

Insist they index from 1. Like God and Fortran intended it. ;)

[โ€“] deadbeef79000@lemmy.nz 8 points 3 days ago (1 children)

Fuck C and it's lazy shit pointer arithmetic array indexing shortcut. I.e. you just add the index ร— size(t) to the array pointer.

Bounds checking? We've heard of it.

[โ€“] Naich@lemmings.world 7 points 3 days ago (2 children)

so what if it's 100x slower /nosarc

[โ€“] deadbeef79000@lemmy.nz 15 points 3 days ago (2 children)

Like riding a motorcycle in a tee shirt and shorts.

[โ€“] BigDanishGuy@sh.itjust.works 12 points 3 days ago* (last edited 3 days ago) (1 children)

And sun glasses, don't forget the aviators.

While Mr "I can't code without a garbage collector" is still putting on his backplate of "oh no pointers are bad" and a duck typed full face helmet, to ride his interpreted moped, the big boys, Mr C-ool and Mr ASSembly, are already downing grain alcohol at the finish line.

But then again I really don't like to step out of my embedded RTOS bubble. It really depends on what you want to accomplish and how complicated your system is.

[โ€“] deadbeef79000@lemmy.nz 4 points 3 days ago (1 children)

embedded RTOS

That sounds like a domain where memory safety is secondary to size and speed... though compile time memory safety guarantees could help.

Good thing we have so many options!

[โ€“] whats_all_this_then@programming.dev 6 points 2 days ago (1 children)

This is the hardest I've seen a someone try to not mention Rust. I'm actually impressed.

Have you seen rust? I couldn't code like that, what a silly language https://lemmy.world/post/26105353

[โ€“] letsgo@lemm.ee 5 points 3 days ago

I've ridden a motorbike in a T-shirt and kilt before. That's ... fun ...

[โ€“] Jestzer@lemmy.world 5 points 3 days ago (1 children)
[โ€“] troyunrau@lemmy.ca 6 points 3 days ago

MATLAB is basically a UI wrapper around Fortran's BLAS and LAPACK -- change my mind. ;)