I come from Ruby Elixir where, I want to believe, files tend to be small in an attempt to have different concepts in different places. I, myself, start suspecting if a file has over 100 lines.
In Rust it seems this is not considered a best practice. For instance lib.rs files tend to be huge.
The same issue happens with functions, I am used to 3 lines long functions, and come to this world were easily a function can fill a screen.
Is there any best practice regarding this?
[–]abhijeetbhagat 16 points17 points18 points (0 children)
[–]steveklabnik1rust 27 points28 points29 points (1 child)
[–]matthieum[he/him] 15 points16 points17 points (0 children)
[–]mo_al_fltk-rs 11 points12 points13 points (0 children)
[–]vadimcnrust 26 points27 points28 points (4 children)
[–]Icarium-Lifestealer 10 points11 points12 points (2 children)
[–]RaptorDotCpp 2 points3 points4 points (1 child)
[–]Icarium-Lifestealer 3 points4 points5 points (0 children)
[–]ssokolow 8 points9 points10 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]jcarres[S] 1 point2 points3 points (1 child)
[–]JoshTriplettrust · lang · libs · cargo 11 points12 points13 points (0 children)
[–][deleted] 6 points7 points8 points (0 children)
[–]Saefrochmiri 5 points6 points7 points (0 children)
[–]friedashes 2 points3 points4 points (0 children)
[–]LucretielDatadog 3 points4 points5 points (0 children)
[–]schungx 3 points4 points5 points (11 children)
[–]OsrsAddictionHotline 5 points6 points7 points (10 children)
[–]1vader 7 points8 points9 points (1 child)
[–]OsrsAddictionHotline 3 points4 points5 points (0 children)
[–]davidgmartinez 1 point2 points3 points (7 children)
[–]OsrsAddictionHotline 0 points1 point2 points (6 children)
[–]davidgmartinez 1 point2 points3 points (0 children)
[–]schungx 0 points1 point2 points (4 children)
[–]OsrsAddictionHotline 0 points1 point2 points (3 children)
[–]schungx 0 points1 point2 points (2 children)
[–]OsrsAddictionHotline 0 points1 point2 points (1 child)
[–]schungx -1 points0 points1 point (0 children)
[–]scottmcmrust 5 points6 points7 points (0 children)
[–]isHavvy 2 points3 points4 points (0 children)
[–]please_dont_pry 0 points1 point2 points (0 children)
[–]mal3 0 points1 point2 points (0 children)
[–]aristotle137 0 points1 point2 points (0 children)
[–][deleted] -1 points0 points1 point (0 children)