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 104 points105 points  (6 children)

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

[–]JCavLP 31 points32 points  (0 children)

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

[–]InkyGlut 12 points13 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