I want to read your code… not travel through it.
I want code for a single Java method to fit on one screen. I do not want to scroll vertically or horizontally when I am looking at a single method. Making me scroll is an opportunity for me to lose focus and context and have to waste time scrolling back and forth. I use big fonts on my laptop. I can switch to smaller fonts but it’s harder on my eyes.
My metric for a good Java method is less than ten Java statements, and less than thirty lines of text with method signature and curly braces included. Code should not have to scroll horizontally to achieve this. Horizontal scrolling is much worse than vertical scrolling. Nested generics in Java can be challenging. Maybe add missing types to simplify generics. Requiring scrolling in both directions will slow comprehension down.
Thank you for reading this brief message, and for not making me scroll.