Closed nmorduch closed 10 years ago
This seems more confusing than flexible to me. It sounds like what splitwise called "shares" - could you give a use case that explains why this is useful?
And then always store as a percent.
If it's always stored as a percent, then this could just be a conversion done in the front-end, hypothetically.
On second thought, can we always store as shares? Then even split is just 1s and 0s, and M-->M is just one 1 among 0s.
I don't think that's a good idea, because percents allow more precision. And make more sense to some people. :-p That being said, I think that handling the share -> percent conversion in the backend is probably actually the way to go.
... although shares allow more precision if they're wonky things like splitting something 1:2:4. 1/7 is an awkward value to store.
Right, I was thinking you would store the numerators and denominator separately, for maximal precision. More precise than percents :p
This is basically what housetab does.
Maybe not everything they do is the worst :)
Rather than requiring that it add up by percent or amount, can we just do for each person: the weight for that person divided by the sum of all of the weights which will also work when they add up to percents or to the amount, but gives more flexibility.