Closed jpalmieri closed 9 years ago
:+1: Good point. I've just been blindly following these formulas, so I should figure out what those constants actually are anyway!
I can't seem to find any info on these constants in home brewing documentation. I'll have to dig deeper another time.
Excellent work on getting the related feature and model specs written alongside the
#abv
calculation.Only feedback for this is that in the
Recipe
model, where there are hardcoded numbers in the new method (or elsewhere), (e.g.1.05
,0.0079
in theabv
method), to replace them with named constants. Mystery numbers like this are sometimes called magic numbers.Apologies for the irrelevant example constants that follow: