1062
C++ (lemmy.zip)
you are viewing a single comment's thread
view the rest of the comments
[-] deadcream@sopuli.xyz 7 points 4 months ago

That's the problem of most general-use languages out there, including "safe" ones like Java or Go. They all require manual synchronization for shared mutable state.

[-] 5C5C5C@programming.dev 20 points 4 months ago* (last edited 4 months ago)

There's a difference between "You have to decide when to synchronize your state" and "If you make any very small mistake that appears to be perfectly fine in the absence of extremely rigorous scrutiny then this code block will cause a crash or some other incomprehensible undefined behavior 1/10000 times that it gets run, leaving you with no indication of what went wrong or where the problem is."

this post was submitted on 08 Jun 2024
1062 points (98.5% liked)

Programmer Humor

19452 readers
72 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 1 year ago
MODERATORS