duboviy/dist

Magic numbers ?

kounkou opened this issue ยท 3 comments

Hey Duboviy,

I find your projects awesome !
Would like to participate a bit.
Why using those magic numbers here ? Seems to me that we can make that code more generic right ?

dist = dist * 60 * 1.1515 * 1.609344;

Hi Jacques,

Totally agree.
Kindly ask you to create a pull request if functionality is not broken, I'll review and merge it.

Hi Duboviy,

Perfect, I added a first PR #4
In that first PR, I removing the hard coded constants and creating a new file to hold them in a
cleaner way. Let me know what you think.

@kounkou Nice catch and great changes! ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘ Thank you so much for your contribution! Feel free to create more PRs here and also within other repos. I really appreciate it, Jacques!