r/badcode • u/646c726f576f6c6c6548 • Apr 07 '21
java Apparently Java can only handle 255 parameters in a constructor...
4.0k
Upvotes
r/badcode • u/646c726f576f6c6c6548 • Apr 07 '21
View all comments
Show parent comment
4
u/dakta Apr 07 '21
Just for human readability, in your example, I would map the colorname in the original table and use that to look up the code. The semantic intention behind the relationship is likely to give a color name that is descriptive, and the exact hex code is an implementation detail. It'll be easier to modify the color palette by changing the hex codes if they're looked up by name.