Member-only story
Performant Binary Operators
Practical examples using binary operators in Flutter web
There are a lot of benefits regarding performance when you directly “talk to” a computer using its native language: binary.
Using the following operators doesn’t require you to understand binary at all, although if you’re a programmer, and it might be the case if you’re reading this, you certainly scratched the surface of binary and its specific operators.
If you’re completely new to numeral systems and binary in particular you can increase, or refresh, your knowledge base on the topic:
I’ll be using Dart & Flutter to exemplify these, but the benefits will be relevant in any programming language (maybe not to the same degree).
The following operations are to be used with integers and promise to be more performant than their out of the box counterparts (one of them, as we’ll see, breaks that promise):
