this post was submitted on 17 Sep 2024
410 points (97.7% liked)

Programmer Humor

19623 readers
167 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
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] dudinax@programming.dev 11 points 2 months ago (1 children)

Rust crates have the second and third problems.

Rust at least has type annotation.

The type has private fields. There's no constructor. There's no implementation of the From trait except on itself. You can't find a function anywhere that returns the type.

[โ€“] KindaABigDyl@programming.dev 9 points 2 months ago

I find Rust crates generally have pretty good docs. Docs.rs is a major time saver