Re:Interesting Bugs Caught by ESLint's no-constant-binary-ex...
by iamflimflam1 on Friday November 10, 2023 @04:06AM
(#38216703)
To be honest I think it really depends. And in some contexts it is unavoidable.
I would think to myself if I was writing one “have I made a mistake somewhere that means I have to use this?”
I don’t think it’s necessarily about “can I parse this”, it’s much more about will all the devs on the team be able to parse this.
To me, code is all about communication - to myself, but also to an audience I haven’t met with varying skill, knowledge and context levels.
I’ve been bitten too many times with code that only one or two people can work on.
What I'm getting at is one person's "easy to parse" is another person's "difficult to parse", and there may be no objective answer which makes one any better than the other.