Aijan to Programming · 1 month agoSelf-documenting Codelackofimagination.orgexternal-linkmessage-square72fedilinkarrow-up1102arrow-down116cross-posted to: [email protected]
arrow-up186arrow-down1external-linkSelf-documenting Codelackofimagination.orgAijan to Programming · 1 month agomessage-square72fedilinkcross-posted to: [email protected]
minus-squareBrianTheeBiscuiteer@lemmy.worldlinkfedilinkarrow-up7·1 month agoDon’t mind the || but I do agree if you’re validating an input you’d best find all issues at once instead of “first rule wins”.
minus-squarerooster_butt@lemm.eelinkfedilinkarrow-up3·1 month agoShort circuiting conditions is important. Mainly for things such as: if(Object != Null && Object.HasThing) … Without short circuit evaluation you end up with a null pointer exception.
Don’t mind the
||
but I do agree if you’re validating an input you’d best find all issues at once instead of “first rule wins”.Short circuiting conditions is important. Mainly for things such as:
Without short circuit evaluation you end up with a null pointer exception.