I don't think this is a good fit for this site since it's quite broad and there's a lot of unknowns, like what the 350 lines of code look like. For example, does each
fn*
need to access
self
? Are they pure functions? Would any of the code be useful beyond initializing the class? Speaking of that, I can also imagine a fifth option: moving the functions into the
module namespace. Stack Overflow is meant for specific problems -- things preventing you from accomplishing a goal. For this, which is more about design / best practices, it might be better to ask on
Software Engineering. —
wjandrea 37 secs ago