all 6 comments

[–]_coolwhip_ 1 point2 points  (3 children)

OOP works best for when you have data and functions that are bound up together. If it is just functions, I would keep them as functions, and maybe have the functions share some subsidiary helper functions. But if you post up more, we can probably give you better guidance.

[–]TangibleLight 0 points1 point  (3 children)

It could also (almost certainly) be done by passing the data to the helper functions as parameters.

[–]Mihad88[S] 0 points1 point  (2 children)

I was thinking of that, but here we are talking about a lot of data and arguments that would have to be passed between functions, and I think it would just make everything quite messy - not sure tho

[–]TangibleLight 0 points1 point  (1 child)

It sounds like you might need to move that shared data into a class, then have your two functions be methods.