this post was submitted on 25 Jan 2025
724 points (98.3% liked)

Programmer Humor

33090 readers
290 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] drrodneymckay_@sh.itjust.works -3 points 5 days ago (1 children)

Files should have ended on line 200...

[โ€“] Ephera@lemmy.ml 4 points 5 days ago

I was kind of thinking that yesterday when looking at a Rust library. Rust is competent with line numbers, so you don't really have an incentive for splitting files from that angle, but sometimes, folks just seem to keep adding to their files ad infinitum.

Well, specifically that library has a few files with more than 1k lines. And I hope this one's the largest at 4k lines: https://docs.rs/git2/latest/src/git2/repo.rs.html

What also needs to be said, is that this library is actually maintained by the Rust language team. Really makes me want to open an issue to tell them that Rust has a pretty cool module system. ๐Ÿ™ƒ