DonationCoder.com Forum

DonationCoder.com Software => Older DC Contests and Challenges => N.A.N.Y. 2010 => Topic started by: Krishean on December 30, 2009, 07:36 PM

Title: NANY 2010 Release: "What's My Share?"
Post by: Krishean on December 30, 2009, 07:36 PM
NANY 2010 (https://www.donationcoder.com/forum/index.php?board=273.0) Entry Information

Application Name What's My Share?
Version 1.00
Short Description Have you ever needed to divide up an expense among a group of people? Or split up some reward? The What's My Share page makes it easy.
Supported OSes Any OS that has a Web Browser capable of JavaScript
Web Page (visit this to use it now) http://krishean.dcmembers.com/myshare/ (http://krishean.dcmembers.com/myshare/)
System Requirements
  • Computer
  • Internet Connection
  • Web Browser
  • JavaScript Enabled
  • Brain
Version History
  • 1.00: Initial Release
Author Krishean (https://www.donationcoder.com/forum/index.php?action=profile;u=181527)
Screencast
  • http://donationcoder.com/nany2010/sc/whatsmyshare/v1.html (http://donationcoder.com/nany2010/sc/whatsmyshare/v1.html) by mouser
  • YouTube: http://www.youtube.com/watch?v=qrXCdUE9CWQ


Description
What's my share lets you put in a total amount, a list of people and their percentages, and then it will calculate how much each person owes.
app (https://www.donationcoder.com/forum/index.php?action=profile;u=19278) thought i should enter a project for NANY 2010 and linked me to a post (https://www.donationcoder.com/forum/index.php?topic=20668.msg187440#msg187440) on the forums. I thought it would be easy to do and it ended up being a pretty fun project. A big thanks to mouser and the denizens of the donationcoder irc channel.

Features

Planned Features
There are no additional planned features, but i might add some more if they are suggested.

Screencast


Screenshot
[ You are not allowed to view attachments ]

Usage
Start by entering the total amount to be divided up between participants. Then add each person followed by their share percentage. As you fill in the values, the amount of their share will be calculated and displayed instantly.

Known Issues
Internet Explorer is unable to use the remember last data function because of issues with the json handling functions.
Title: Re: NANY 2010 Release: "What's My Share?"
Post by: mouser on December 30, 2009, 07:40 PM
You did a great job with this -- really really great  :Thmbsup:
Title: Re: NANY 2010 Release: "What's My Share?"
Post by: Perry Mowbray on December 30, 2009, 07:53 PM
This is great!  :Thmbsup:

One small issue: the Normalize button mucks up any rows that are proportioned with a "*"

Unnormalized:
[ You are not allowed to view attachments ]

Normalized:
[ You are not allowed to view attachments ]
Title: Re: NANY 2010 Release: "What's My Share?"
Post by: mouser on December 30, 2009, 07:59 PM
That's basically by design i think, buy maybe the alert box triggered when you click Normalize should tell you whats going to happen and let you cancel.
Title: Re: NANY 2010 Release: "What's My Share?"
Post by: Perry Mowbray on December 30, 2009, 08:52 PM
The alert box does say what's happening... just not that the * entries will be zeroed out.

Essentially what happens when you normalize a list with * entries, is that it removes, or zeros, those entries.

Really, Normalizing and * entries are functionally opposite: you never would want to normalize a list with * entries unless you wanted to remove them?

 :-[ Which basically means I'm understanding it a bit better now...
Title: Re: NANY 2010 Release: "What's My Share?"
Post by: mouser on December 30, 2009, 08:55 PM
you never would want to normalize a list with * entries unless you wanted to remove them?

except possibly as step 1 of a process whereby you expected to do further tweaking of shares.
Title: Re: NANY 2010 Release: "What's My Share?"
Post by: mouser on December 30, 2009, 08:57 PM
There really are only 2 sensible options when normalizing with *:
Title: Re: NANY 2010 Release: "What's My Share?"
Post by: Perry Mowbray on December 30, 2009, 09:00 PM
you never would want to normalize a list with * entries unless you wanted to remove them?

except possibly as step 1 of a process whereby you expected to do further tweaking of shares.

The tweaking concept is interesting: I wondered if slider controls might make that easier? Especially on the * Entries (which would make them something other than *)
Title: Re: NANY 2010 Release: "What's My Share?"
Post by: mouser on December 30, 2009, 09:05 PM
might be overkill though.. i think it's very functional as is.
Title: Re: NANY 2010 Release: "What's My Share?"
Post by: mouser on December 30, 2009, 09:21 PM
Actually i realized there is a 3rd reasonable alternative for how to normalize when there are * entries, which is to replace the * with their computed explicit shares.