I've refactored the code to make it more readable, maintainable.
Changes:
The SessionUtility class has multiple responsibilities, violating the single responsibility principle. To improve this, splitting the class into two - SessionUtility and BackupSessionUtility - would clarify each class's responsibilities and make the code more maintainable and extensible. The public ClearAll has been moved from MRUService class to NotepadsMainPage class, also, it’s access modifier has been changed from public to private as it is being used only in that class. This change has been made to better organize the code and make it easier to understand and maintain.
other: Code refactoring
PR Type
What kind of change does this PR introduce?
I've refactored the code to make it more readable, maintainable. Changes: The
SessionUtility
class has multiple responsibilities, violating the single responsibility principle. To improve this, splitting the class into two -SessionUtility
andBackupSessionUtility
- would clarify each class's responsibilities and make the code more maintainable and extensible. The publicClearAll
has been moved fromMRUService
class toNotepadsMainPage
class, also, it’s access modifier has been changed from public to private as it is being used only in that class. This change has been made to better organize the code and make it easier to understand and maintain.Other information