4 ms·
I think there is, but only if there's a recognised convention in both the context and the short name. Examples: for n in [some list of numbers] def my_view(re
by boothead 14y ago
I think there is, but only if there's a recognised convention in both the context and the short name. Examples:
for n in [some list of numbers]
def my_view(req):
Monad m => m a
(x, y) = coords
I think this is a case when know if it's a good idea when you see it with enough experience [1]
[1] http://en.wikipedia.org/wiki/I_know_it_when_I_see_it http://en.wikipedia.org/wiki/I_know_it_when_I_see_it
- mjwalshe 14y agoYes in technical programming if your implimenting a known equation for example ohms law you shoudl use varaible names that map to the defacto ones used in textbooks - docuemting at the start of function the equation and a reference to some standard text would probaly be a good idea as well) Also i and n for array index's and x,y,z for cordinates are good examples of where short variable names are good.