Re:Do you know your bitwise operators?
by aguynamedrich on Friday January 10, 2014 @02:45PM
(#7038865)
The first time I used bit manipulation in web apps was for declaring user roles and permissions. A single integer field in your database can be used to declare any combination of up to 32 different capabilities/permissions for users by setting the individual bits in the value. Also, when dealing with colors as an integer value, you can isolate your ARGB values using bit shifting.
[ Parent
| on HN ]
There are no comments on this comment yet.