TODO
Since a basic implementation and PoC has been implemented, It's now time to refactor the code from one file to multiple files housing each function and class.
Things to consider while refactoring
-
Divide the code into three parts.
- The main library code which will be included in the package,
- The utility functions and code as helper functions but do not support the core implementation
- Code related to Observability, Testing and Logging.
-
Try to follow SOLID principles and best practices as much as possible
-
Document functions and classes in their own declaration / definition file
-
Separate folder for all the types and interfaces
-
Create a basic folder structure for the library not too specific
TODO
Since a basic implementation and PoC has been implemented, It's now time to refactor the code from one file to multiple files housing each function and class.
Things to consider while refactoring
Divide the code into three parts.
Try to follow SOLID principles and best practices as much as possible
Document functions and classes in their own declaration / definition file
Separate folder for all the types and interfaces
Create a basic folder structure for the library not too specific