this post was submitted on 27 Jul 2023
14 points (100.0% liked)

Programmer Humor

32050 readers
1518 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
top 18 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 1 year ago (1 children)

Rust has pretty strong stability guarantees. Backwards incompatible changes are only made using "editions" where every compiler version supports all previous editions and editions are fully interoperable.

https://doc.rust-lang.org/stable/edition-guide/editions/index.html#what-are-editions

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

The versions still make me reluctant to try rust. I'm sure it's reliable in theory but I'm always getting cockblocked when someone's python project doesn't work because of dependencies and different versions. I once remade a python 3d object format converter in c++ because that was easier than a) fixing whatever dependency and runtime version shenanigans or b) using whatever bullshit ass Windows-only propriety software most people used to make that file conversion

[–] [email protected] 3 points 1 year ago

I use both python and rust extensively and they are literally day and night when it comes to dependency issues. The only problems I've ever had with rust are when there is a non-rust dependency that's not cross platform (which would be a problem in c as well). The editions (which are different from versions) are nothing to be afraid of either, iirc a rust 2021 project can depend on 2018 and 2015 libraries without issues.

[–] [email protected] 3 points 1 year ago (1 children)

Finding my own old projects: "What the hell did this guy do and why does it work?"

[–] [email protected] 2 points 1 year ago (1 children)

that is me with regex that I wrote from scratch like 5 mins ago

[–] [email protected] 1 points 1 year ago (1 children)

“Finally! It works! I’ll never touch it again! I’ll just move it in a variable and–… WHYYYY???!?!11!”

[–] [email protected] 1 points 1 year ago

Its always the backslash before the forward slash. Every. Time.

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago)

install minor cc update

compiler exploits undefined behavior as it always was technically allowed to

Checkmate, Cniles!

[–] [email protected] 2 points 1 year ago (1 children)

Better not pay in cash, if you're so afraid of change, I mean.

[–] [email protected] 0 points 1 year ago (1 children)

Why would someone who is afraid of change pay cash? Wouldn't they be given change?

[–] [email protected] -1 points 1 year ago

/c/whooosh anyone?

[–] [email protected] 2 points 11 months ago

Everything I'll ever make will be done in C. Try and stop me.

[–] [email protected] 2 points 1 year ago (1 children)

bash is veeery old and it implements all of posix.

[–] [email protected] 3 points 1 year ago

Bash's posix mode still has a lot of bashisms. The only way to test true posix compliance is to test with other shells like dash and ash. I have found this is the case a lot of time. People will say it's POSIX compliant shell, but it'll obviously only be tested in bash Like at that point just make it a bash script, since pretty much every system under the sun has it.

[–] [email protected] 2 points 1 year ago

And don't even get me started with C# and Node.js projects, chances are you will need to reimplement the entire application just to get the project out of vulnerable library versions.

[–] [email protected] 1 points 1 year ago

Ew, used languages? Yuck! Gimme a brand, spanking new language, hot off the factory floor.

[–] [email protected] 0 points 1 year ago (1 children)

I am sick of these meme. Of course we know c is better than python on many aspects but python is also. Lets say you are building... I an continuing, I hope you are capable of continuing it by yourself. Everyone knows which is better for their particular needs, so just let these memes go. We can be more creative with memes