Purpose of resistor colour code
A long time ago, the technology did not exist or was too expensive to print such small text on parts.
Also, you can read coloured rings no matter what angle you are looking at the resistor from or how it is mounted, but as someone who has trouble telling similar colours apart this is useless and I don't really buy it.