this post was submitted on 15 Jul 2026
124 points (97.0% liked)

Rust

8136 readers
94 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Angryhumanoid@fedinsfw.app 23 points 2 days ago (4 children)

Look, undeniably some coding languages are miles better than others, but I don't think any of them would fall under my personal classification of what the word "fun" means...

[–] _hovi_@lemmy.world 46 points 2 days ago (2 children)

Different strokes I guess. Personally, I do have a good time writing Rust and fun feels like the right word

[–] TheTechnician27@lemmy.world 22 points 2 days ago* (last edited 2 days ago)

Yeah, same. The fact I can chill the fuck out and basically not have to worry about an enormous class of serious, hard-to-spot bugs makes it a lot more fun for lower-level programming.

Like, yeah, I still need to worry about obstacles like other drivers, animals, etc., but it's a lot more fun driving on a road that isn't completely teeming with potholes and black ice.

[–] BartyDeCanter@piefed.social 10 points 2 days ago (1 children)

Yup. I come from a mostly embedded C or C++ background with a constant 10% Python for assorted scripts. Rust feels pretty great, basically all the things I like about all of those languages with fewer of the annoyances. And cargo and clippy are fantastic. My biggest annoyance is remembering which of the approximately 213 Result/Option chain handlers I should use in a given situation.

[–] magikmw@piefed.social 3 points 1 day ago (1 children)

Thanks for naming my biggest problem with writing rust code. Every crate has it's own particular Result chain, doesn't it. To the point we have anyhow and eyre to help with this mess.

[–] BartyDeCanter@piefed.social 3 points 22 hours ago* (last edited 21 hours ago)

My current solution is usually to just make a bunch of stupid match statements and fix whatever clippy complains about. Then if any remain be sure to “accidentally“ tag the friendliest rust expert I know on the PR and see if they say anything.

edit: They usually say something like, “you could replace those matches with a and_else, map_err, unwrap_or, and_then? and a filter_map.”

[–] badmin@lemmy.today 13 points 1 day ago

Fun is when you're allowed to achieve what you want to achieve with less bullshit to worry about.

Or in more respectable technical terms, when you're allowed to focus on core logic above everything else.

[–] eah@programming.dev 0 points 1 day ago* (last edited 1 day ago)

It was fun when knowing programming was almost a superpower that you had to learn by reading lots of books, etc. Now a computer can do much of the job. The computers are even solving long-open Erdos problems. We're all just mediocre meatbags.

[–] SpaceNoodle@lemmy.world -1 points 2 days ago (1 children)
[–] FizzyOrange@programming.dev 0 points 3 hours ago (1 children)

C is firmly in the "not fun" camp with PHP, JavaScript and Bash. I'd say even assembly is more fun, in a puzzle challenge sort of way.

The most fun language I've used is QuakeC, because the only thing you can do with it is write Quake mods. It was a pretty neat language too from what I remember. It even automatically detected infinite loops!

[–] SpaceNoodle@lemmy.world 1 points 2 hours ago* (last edited 2 hours ago)

We all have different definitions of "fun." C won't surprise you when you try to add a string and an array; it'll do exactly what you told it to do, which then translates to assembly code with a very predictable pattern.

On a different note, bash scripting is well-defined and mostly consists of understanding that common tools can be chained together to provide useful output; combined with the very well-defined string operations, I've found that bash scripts can address over 99% of cases people try to throw sed and awk at. It's almost surprisingly powerful.

JavaScript is just a hot fucking mess.