The problem ime is that those methods grow organically - I often end up putting everything in main while prototyping and have to force myself to refactor later. It seems that people find it difficult thinking about the problem at hand and their code layout at the same time.
Doing TDD helps a lot. You can't write big methods while doing it. If not, than you have to force yourself to split code in multiple methods.
But to be honest, it's not easy. I am still struggling sometimes to do it while writing code.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
The problem ime is that those methods grow organically - I often end up putting everything in main while prototyping and have to force myself to refactor later. It seems that people find it difficult thinking about the problem at hand and their code layout at the same time.
Doing TDD helps a lot. You can't write big methods while doing it. If not, than you have to force yourself to split code in multiple methods.
But to be honest, it's not easy. I am still struggling sometimes to do it while writing code.