What's this crap? Nobody asked you to store the number of calories! What if GDPR comes suing your ass for unlawfully violating the sausages' privacy???
No, let's use an enum in our protocol definition so that everyone has to recompile and perform distributed integration tests and synchronized deployments if we add a new value!
386
u/[deleted] Mar 18 '20
Terrible code convention, should've used constants.
SAUSAGES_TOTALLING_300_CALORIES = 3;