By jrandol
via piotrjagielski.com
Published: Aug 02 2010 / 05:33
It is an established good practice to validate method arguments at the beginning of the method body. For example you could check that the passed value is not negative before doing some calculation:
Add your comment
Voters For This Link (42)
-
jrandol -
alireza.haghighatkhah@gmail.com -
pioter.myopenid.com -
mswatcher -
majson -
jbuchberger -
karbo -
TimAtBeat -
themulti -
dwyer.poziombka -
carrion -
ehildebrandt -
opensas.myopenid.com -
yannc76 -
azuroff -
ryana -
tenshi -
germanescobar -
fixxer -
tomerb -
pron -
mavroprovato -
wburas -
igobranco -
leifg -
pmularien -
gubbes -
jansokol -
yumariso -
alruiz15 -
hendrikbeck -
shypwang -
rvange -
LukashP -
florin_spatar -
asolntsev -
alanvdam -
rogerjose81 -
lrussell -
geertaki -
sivaprasad -
johann.sonntagbauer