Stone radical on the left —
码 originally meant a stone weight used for measuring or counting. From physical counting-stone came the modern senses 'a number, a code, a unit of measure' (the imperial yard
码 was once a unit). The QR code
二维码 keeps the counting-symbol sense. Same radical heads
石 family
砍 chop,
砖 brick,
硬 hard.