littleweaver / django-argus

Money sharing app. In development. Probably getting a rename later.
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Manual Split Values #9

Closed nmorduch closed 10 years ago

nmorduch commented 10 years ago

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.

melinath commented 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?

nmorduch commented 10 years ago
  1. It doesn't require doing arithmetic to input information.
  2. It allows you do give people weights of 0, 1, and 2 (my preferred method of input), so that you can have a sloppy way of weighting people differently. Or not sloppy, if you're sharing a meal and one person is paying for two people.
nmorduch commented 10 years ago

And then always store as a percent.

melinath commented 10 years ago

If it's always stored as a percent, then this could just be a conversion done in the front-end, hypothetically.

nmorduch commented 10 years ago

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.

melinath commented 10 years ago

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.

melinath commented 10 years ago

... although shares allow more precision if they're wonky things like splitting something 1:2:4. 1/7 is an awkward value to store.

nmorduch commented 10 years ago

Right, I was thinking you would store the numerators and denominator separately, for maximal precision. More precise than percents :p

melinath commented 10 years ago

This is basically what housetab does.

nmorduch commented 10 years ago

Maybe not everything they do is the worst :)