@[email protected] to [email protected] • 1 day agoSelf-documenting Codelackofimagination.orgexternal-linkmessage-square59fedilinkarrow-up181arrow-down117
arrow-up164arrow-down1external-linkSelf-documenting Codelackofimagination.org@[email protected] to [email protected] • 1 day agomessage-square59fedilink
minus-square@[email protected]linkfedilink4•15 hours agoI mean, boolean short circuit is a super idiomatic pattern in Javascript
minus-square@[email protected]linkfedilink3•1 hour 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-square@clutchtwopointzerolink1•4 hours agoBecause on JS the goal is to shave bytes to save money on data transfer rates
minus-square@[email protected]linkfedilink1•2 hours 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.