Should I bit-shift to divide by 2 in Java? [duplicate]
Unless you’re working in a shop and a codebase where bit-shifting is common then, IMHO, you’re risking obfuscation. Yes, the expressions may be logically equivalent but: A n00b might get confused by the alternate syntax An old guy who hasn’t had to do any bit-shifting since college, like myself, might get confused If you bit … Read more