Skip to content

Conversation

@sampriddy
Copy link

No description provided.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

100 is used throughout this file but to someone reading it might appear as a 'magic number'. You might want to use a constant to make some of these formulas more readable

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point 👍 If you also move it to a constant, you only have to make a single change if the magic values changes. Imagine a scenario where this is thousands of lines of code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants