17

Dude... have you ever heard about... enums? They were invented so that you don’t have to explain magic numbers.

Comments
  • 6
    When stick in the wheel became a feature.
  • 1
  • 2
    @sariel Hm, I'm not sure what this implies. They are quite befitting as specifiers where primitives are the most expected.
  • 1
    This was one of the things i learnt from my first company.. we were publicly shamed if they saw us using some numbers which need explaining. A surprising number of people which included me, dont even know the use of enums.
Add Comment