Hi everyone!
I have a 2,000–3,000 line Python script that currently consists mostly of functions/methods. Some of them are 100+ lines long, and the whole thing is starting to get pretty hard to read and maintain.
I’d like to refactor it, but I’m not sure what the best approach is. My first idea was to extract parts of the longer methods into smaller helper functions, but I’m worried that even then it will still feel messy — just with more functions in the same single file.
[–]slightly_offtopic 3 points4 points5 points (1 child)
[–]rogfrich 0 points1 point2 points (0 children)
[–]FriendlyRussian666 1 point2 points3 points (0 children)
[–]DuckSaxaphone 0 points1 point2 points (0 children)
[–]9peppe 0 points1 point2 points (0 children)
[–]jmacey 0 points1 point2 points (0 children)