this post was submitted on 11 Jun 2026
26 points (100.0% liked)

Rust

8059 readers
78 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
[–] treadful@lemmy.zip 1 points 13 hours ago (1 children)

This idea of having to write as little code as possible is stupid.

Is it? Not only is it less work, but generally makes the code way easier to reason about. In this case, instead of just seeing simple function calls explaining the logic flow, you visually have to parse all this weird extra cruft that is generally irrelevant to what the block is doing.

[–] jerkface@lemmy.ca 0 points 12 hours ago* (last edited 12 hours ago) (1 children)

Yes, code golf practiced for any reason other than the sheer joy of it is "stupid." It especially doesn't belong in production code. If typing is really so bad, there are any number of local agents that are competent to finish that map fragment for you.

[–] treadful@lemmy.zip 1 points 4 hours ago

It's not about "sheer joy", nor obfuscation. It's about making code easier to write and easier to grok.