In this episode we take a look at Enums, including what they are, why we would use them and how we use them in our code. Patreon: / 1sand0s Reddit: r/1sand0s Watch live at / sittingwaves
It also helps with code readability and avoid having magic numbers in your code. Nothing worse than trying to figure what's different between 27 and 28 in a large switch statement.
It also helps with code readability and avoid having magic numbers in your code.
Nothing worse than trying to figure what's different between 27 and 28 in a large switch statement.
Absolutely, I completely agree!