this post was submitted on 01 Mar 2025
195 points (93.0% liked)

Programmer Humor

20893 readers
1212 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
[โ€“] [email protected] 40 points 2 days ago (3 children)

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

[โ€“] [email protected] 8 points 2 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.

[โ€“] [email protected] 7 points 2 days ago (2 children)
[โ€“] logging_strict 1 points 7 hours ago

so what if it's 100x slower /nosarc

[โ€“] [email protected] 15 points 2 days ago (2 children)

Like riding a motorcycle in a tee shirt and shorts.

[โ€“] [email protected] 11 points 2 days ago* (last edited 2 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.

[โ€“] [email protected] 4 points 2 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 6 points 1 day ago (1 children)

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

[โ€“] [email protected] 1 points 5 hours ago

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

[โ€“] [email protected] 5 points 2 days ago

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

[โ€“] [email protected] 5 points 2 days ago (1 children)
[โ€“] [email protected] 6 points 2 days ago

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