Using enums and bit shifting, you can encode complex values into a single number. This article walks through an example of how I encoded and decoded a number can be used to render different country flags.
Companies Mentioned
Turnerj
@turnerj
aka. James Turner — a programmer and entrepreneur with a love of cars, music and technology