Aijan@programming.dev to Programming@programming.dev · 1 day agoSelf-documenting Codelackofimagination.orgexternal-linkmessage-square62fedilinkarrow-up181arrow-down115
arrow-up166arrow-down1external-linkSelf-documenting Codelackofimagination.orgAijan@programming.dev to Programming@programming.dev · 1 day agomessage-square62fedilink
minus-squarehex@programming.devlinkfedilinkarrow-up3·14 hours agoI mean, boolean short circuit is a super idiomatic pattern in Javascript
minus-squarearendjr@programming.devlinkfedilinkarrow-up1·14 minutes 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-up1·3 hours agoBecause on JS the goal is to shave bytes to save money on data transfer rates
minus-squarehex@programming.devlinkfedilinkarrow-up1·45 minutes 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.
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.