Throughout the codebase, hard-coded number literals without context or a description are used. Using such “magic numbers” goes against best practices as they reduce code readability and maintenance as developers are unable to easily understand their use and may make inconsistent changes across the codebase.
It's recommended to define magic numbers as constants with descriptive variable names and comments, where necessary.
Summary
Throughout the codebase, hard-coded number literals without context or a description are used. Using such “magic numbers” goes against best practices as they reduce code readability and maintenance as developers are unable to easily understand their use and may make inconsistent changes across the codebase.
It's recommended to define magic numbers as constants with descriptive variable names and comments, where necessary.
Solution
This will be addressed per module: