Follow

I still find it interesting how senior programmers value readability and clean code over the easy way ♥. They also create solutions that might be "the harder way" but the best ones, covering each scenario!
"<<" is a bitwise operator (bit shift) and pushes zeros from the left. So "x<<1" would mean pushing a zero from left to binary number x: 13<<1 => 00001101 -> 00011010 = 26.
Clean code tells a lot about a programmer and even though at the beginnind I didn't want to become an expert in this area, I want to now (still a long waaayy tho!). Thanks for that teaching, you. I've learned more than what I could show in that short period and I still value and remember that.

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.