Mar-25-2022, 06:38 PM
Are you saying that your functions/classes are so big that it's difficult to find where they end? If so, refactor to make them simpler - it sounds like there's a lot going on in these things which makes them difficult to understand. Clean Code has good advice on the sorts of things you want to go for.
If that's not what you mean, please clarify.
Also, what kind of editor/IDE are you using? They tend to at least let you collapse (and expand) blocks and should be able to show you where the ends are. Note that most of my experience is with using IntelliJ for Java/Scala/Kotlin, but I assume that the tooling is there for Python in other editors.
Still, I strongly suggest refactoring these large things.
If that's not what you mean, please clarify.
Also, what kind of editor/IDE are you using? They tend to at least let you collapse (and expand) blocks and should be able to show you where the ends are. Note that most of my experience is with using IntelliJ for Java/Scala/Kotlin, but I assume that the tooling is there for Python in other editors.
Still, I strongly suggest refactoring these large things.