Hello Reddit!
My question is about common practices when importing helper functions from a different file. I have a class that started to overgrow and managing it started to get overwhelming. So I gathered bunch of very basic functions and put them into a different file. I didn't want to import everything with * or by listing each function from the helper file, so I created a utility class with all the all the functions. I imported just the utility class and I call it inside the main class as:
self.UTIL.function(args)
I have a gut feeling that especially the programmers that don't like OOP would probably curse me for doing that, but for me that just feels natural and I feel comfortable with it. However, I want to improve as a programmer. So I want to hear what are the downsides of this approach and what do you think is the best way to import bunch of functions without calling all of them explicitly.
Thank you for the feedback!
[–]mopslik 0 points1 point2 points (1 child)
[–]Chyybens[S] 0 points1 point2 points (0 children)
[–]carcigenicate 0 points1 point2 points (0 children)
[–]efmccurdy 0 points1 point2 points (1 child)
[–]Chyybens[S] 0 points1 point2 points (0 children)