pokemon-essentials icon indicating copy to clipboard operation
pokemon-essentials copied to clipboard

Changed multiplying by self to exponent

Open C-Ezra-M opened this issue 2 years ago • 5 comments

deviation * deviation is longer than deviation ** 2. That's why I changed it.

C-Ezra-M avatar Oct 01 '22 08:10 C-Ezra-M

This is really petty.

Maruno17 avatar Oct 01 '22 20:10 Maruno17

I will try to check for other cases of a number multiplying by itself and replace them with exponents.

C-Ezra-M avatar Oct 10 '22 07:10 C-Ezra-M

NOTE: The commit above modified 10 files, but the name says 3 because I forgot to change it.

C-Ezra-M avatar Oct 10 '22 15:10 C-Ezra-M

Having more examples doesn't make it less petty. What's the point?

Maruno17 avatar Oct 10 '22 22:10 Maruno17

This might be a minor application of DRY (Don't Repeat Yourself), which doesn't apply just to iteration, but to general repetition. That's why I put exponentiation here.

C-Ezra-M avatar Oct 12 '22 07:10 C-Ezra-M

Due to possible merge conflicts, this PR will be closed now.

C-Ezra-M avatar May 21 '23 08:05 C-Ezra-M