3 ms·
If I wanted to find somebody who understood bitwise operations maybe useful. If I'm looking to find a developer who can write maintainable line of business sof
by ed_blackburn 14y ago
If I wanted to find somebody who understood bitwise operations maybe useful.
If I'm looking to find a developer who can write maintainable line of business software, which Java is a common fit for then I'd be aghast if this was proposed as a sensible, maintainable solution.
This trick just reminds me of a long list of things that people ask for at interview, which has no demonstrable link to the job at hand. Why not ask for someone to memorise a complex api? Or understand a workaround for a long standing "won't fix" framework.
Pointless. Useless.
- blablabla123 14y agoSeeing it since recently more often in Blogs, I see increased readability. After all, you just need to remember 3x XOR (a-b-a). I find the swap solution w/ temp solution to be more painful for my eyes. It's also 3 lines, but less homogenous.