@[email protected] to [email protected] • 6 months agoSelf-documenting Codelackofimagination.orgexternal-linkmessage-square72fedilinkarrow-up1100
arrow-up1100external-linkSelf-documenting Codelackofimagination.org@[email protected] to [email protected] • 6 months agomessage-square72fedilink
minus-square@[email protected]linkfedilink6•6 months agoI mean, boolean short circuit is a super idiomatic pattern in Javascript
minus-square@[email protected]linkfedilink2•6 months agoBecause on JS the goal is to shave bytes to save money on data transfer rates
minus-square@[email protected]linkfedilink2•6 months agoIt’s not that deep. It looks nice, and is easy to understand.
minus-square@[email protected]linkfedilink7•6 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.
I mean, boolean short circuit is a super idiomatic pattern in Javascript
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.
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.