That question specifically mentioned top-down enforcement of best practices, and the comments chimed in on that.
So what have you seen that was great but at the other end of the spectrum? What was the best shortcut or simplification or cowboy coding you've ever made or seen?
/* Bits: selected, hovered */
const colors = [
grey, // 00
green, // 01
blueA, // 10
blueB // 11
]
const color = colors[selected << 1 | hovered]
https://blog.uirig.com/bitwise-table-lookup