Aijan@programming.dev to Programming@programming.dev · 17 days agoSelf-documenting Codelackofimagination.orgexternal-linkmessage-square68fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1external-linkSelf-documenting Codelackofimagination.orgAijan@programming.dev to Programming@programming.dev · 17 days agomessage-square68fedilink
minus-squareBrianTheeBiscuiteer@lemmy.worldlinkfedilinkarrow-up0·17 days 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-up0·16 days 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.