The financial application I am building contains data which is a number that corresponds with two terms. It works like this:
number > 0 = overspend
number < 0 = underspend
Unfortunately the overspend/underspend terms do not have a neutral term, like nospend
or whateverspend
. Now I'm unsure about how to save this data in for example a database column. What name do I give to this database column? Or how do I handle it in my back-end? double <...spend> = // a number
?
So, like the question says: How do I handle a definition in my application that does not have a neutral term, but either a positive one, or a negative one?
nospend
orover_or_under_spend
)?over_or_under_spend
would be a solution, but it suddenly becomes a very long variable.