Recently I came across this very funny picture and I would like to share with you 🙂
This picture shows totally five different approaches to implement "a + b", and how your brain reacts when you read these code 🙂
From this picture we know that for most guys, they will be crazy when they read the source code of the last solution as the code is really difficult to understand compared with all other four solutions.
The idea of the last solution is to achieve the add operation via bitwise operation &, | and ^. See detail of these three operations via wikipedia.
You might be interested with how ABAP can play around with these bitwise operation from two of my blogs: