Much too long a method?

โš“ Rust    ๐Ÿ“… 2026-03-29    ๐Ÿ‘ค surdeus    ๐Ÿ‘๏ธ 9      

surdeus

Info

This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Much too long a method?

I finally have my initial project to the point that it appears to run, is properly formatted, and passes clippy without complains. And I got enough help to put it up on github. Which gets to the quesiton I am now asking.
In Rolodex/src/rolo_window/person_gui.rs at main ยท JoelHalpern/Rolodex ยท GitHub there is a person_update function, called from my main iced update function. It is so long as to be hard for me to understand, and I know what it is doing. I could take the longest part out into a separate function, but it would still be a monster. Am I doing something fundamentally wrong, is there a technique I am missing, or is this just what happens with iced update methods?
Thanks,
Joel

4 posts - 3 participants

Read full topic

๐Ÿท๏ธ Rust_feed