code4craft / webmagic

A scalable web crawler framework for Java.
http://webmagic.io/
Apache License 2.0
11.37k stars 4.18k forks source link

Refactored code for increased optimization. #1139

Closed Parthgajera056 closed 5 months ago

Parthgajera056 commented 9 months ago

Rename method/variable: This commit focuses on improving the codebase by renaming methods and variables to adhere to better naming conventions. This enhances the code's readability and makes it more maintainable.

Decompose conditional: In this commit, conditional statements are decomposed to simplify the code logic. This not only improves the code structure but also makes it easier to understand and maintain.

Introduce explaining variable: This commit introduces explaining variables to clarify complex expressions and conditions in the code. This enhances the code's comprehensibility and aids future development. These changes are aimed at refining the codebase, making it more understandable, maintainable, and aligned with best practices.