You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Matt Young edited this page Jul 8, 2026
·
1 revision
Why do .beer files include computed fields? Couldn't they just be recomputed after the file is read?
Software reading the file is free to ignore computed fields (eg Original Gravity and Final Gravity on Recipe). It's useful to have those fields though for a couple of reasons. There may be more than one method to do the computation, so you might want to know the value according to the exporting software. Also, if the importing software is not a fully-fledged beer calculator (eg it is just a recipe formatter or database) it might not implement all the calculation methods.
Why is the year field on a hop a string and not a number?
You don't normally want to do any calculations with a year, so, in practice, it's more of an identifying label than anything. And, for display, years have different formatting rules than other numbers. Eg we write "2026" for a year but, for other quantities, it's "2,026" (or "2 026" or "2.026" depending on where you live).