Aijan to Programming · 2 months agoSelf-documenting Codelackofimagination.orgexternal-linkmessage-square72fedilinkarrow-up1102arrow-down116cross-posted to: [email protected]
arrow-up186arrow-down1external-linkSelf-documenting Codelackofimagination.orgAijan to Programming · 2 months agomessage-square72fedilinkcross-posted to: [email protected]
minus-squarehexlinkfedilinkarrow-up6·2 months agoI mean, boolean short circuit is a super idiomatic pattern in Javascript
minus-squarearendjrlinkfedilinkarrow-up7·2 months agoI think that’s very team/project dependent. I’ve seen it done before indeed, but I’ve never been on a team where it was considered idiomatic.
minus-squareclutchtwopointzero@lemmy.worldlinkfedilinkarrow-up2·2 months agoBecause on JS the goal is to shave bytes to save money on data transfer rates
minus-squarehexlinkfedilinkarrow-up2·2 months agoIt’s not that deep. It looks nice, and is easy to understand.
I mean, boolean short circuit is a super idiomatic pattern in Javascript
I think that’s very team/project dependent. I’ve seen it done before indeed, but I’ve never been on a team where it was considered idiomatic.
That makes sense.
Because on JS the goal is to shave bytes to save money on data transfer rates
It’s not that deep. It looks nice, and is easy to understand.