This is a really basic question. Consider a statement:
A painted line is increased by length $x$
Can $x$ be a negative number just by the wording of the question? What would be a better way of rephrasing the question, to make it clear that $x$ can be negative?
(The reason I'm asking is that I'm programming and a method name needs to indicate that the parameter can be negative or positive, in order to decrease or increase a size)
Basically I'm looking for a generic term for decrease and increase.
changeLengthBy. The generic term is "change". – Arturo Magidin Feb 04 '11 at 21:37adjustLenthBy. One of the guidelines in Microsoft's opus Code Complete is to use strong verbs in function names. Actually I like the use of negative arguments withincreaseLengthBy. I should think it would make perfect sense to any mathematician who programs. – hardmath Feb 05 '11 at 02:58increaseLengthBymake perfect sense. Unfortunately when I did this once it was very confusing to non-mathematicians who needed to use the code. – Michael McGowan Jul 06 '11 at 18:19