Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor calorie counter #110

Open
drodil opened this issue Sep 7, 2021 · 0 comments
Open

Refactor calorie counter #110

drodil opened this issue Sep 7, 2021 · 0 comments
Labels
refactor Something to write again, better this time

Comments

@drodil
Copy link
Owner

drodil commented Sep 7, 2021

Refactor calorie counter to take the volume as input (relates also to #109 ). Remove the abv_calories.rs from the util library as the calorie count can be calculated for abv easily by multiplying the beers ABV % by a factor of ~2.5 and then multiplying that number by how many fluid ounces the bottle holds. To make this easier, the volume should come as measurements::Volume struct.

@drodil drodil added the refactor Something to write again, better this time label Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Something to write again, better this time
Projects
None yet
Development

No branches or pull requests

1 participant