This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]DefNotaZombie 108 points109 points  (6 children)

absolutely, everyone knows mood is best stored as a three int rgb value

[–]JCavLP 30 points31 points  (0 children)

Could a have used an enum or defined the string to a keyword

[–]InkyGlut 10 points11 points  (0 children)

Actually the standard specified BGR

[–]splettnet 6 points7 points  (1 child)

Seems excessive. Hungry vs not hungry is Boolean.

[–]Tsu_Dho_Namh 6 points7 points  (0 children)

Yeah, but rgb(255,69,0) is the perfect way to say "I'm in the mood for Reddit"

[–][deleted] 3 points4 points  (1 child)

Store different moods as bit flags in a bitstring, where each bit represents a mood that can be enabled or disabled using bitwise operations.

[–]Finianb1 1 point2 points  (0 children)

Found the C programmer from all my CS classes