-
Notifications
You must be signed in to change notification settings - Fork 682
Suggestion: Increases readability of PageableExecutionUtils
code
#3103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Readability is subjective. I find |
Thank you for your feedback on the naming of the method isSubsequentPageWithLessThanOneFullPage. I understand the importance of balancing explicitness and readability in method names. I took the current name directly from the test code to maintain consistency and clarity regarding its functionality. However, I agree that the name can be quite lengthy and difficult to parse. If you think it's worth refactoring, I could try changing the name. @mp911de |
In general a refactoring would be a good thing. Maybe the solution for good names comes with splitting the methods differently, like separating the question first/subsequent Page from the question of full/partial page. |
Do you want to come up with a PR? |
Sure, thank you! I'll work on the PR and let you know. @schauder |
Submitted PR for the issue above. Your feedback is appreciated! :) Thank you! @schauder |
I noticed
PageableExecutionUtils
code could potentially benefit from refactoring. I found it too complex due to multiple branches ofif
statements. I think these adjustments could improve readability of the codebase. I am open to any feedback or suggestions you might have. I would be happy to open a pull request with these changes if needed. Please let me know your thoughts.Here's the suggested code. All tests passed.
Thank you.
AS_IS
TO_BE
The text was updated successfully, but these errors were encountered: