DEV Community

Discussion on: The 7 assumptions about strings you probably have

Collapse
rdentato profile image
Remo Dentato

While I do agree that Unicode is complicated, I have to disagree about it ruining the code. It is much better than what we had before: a bunch of incompatible characters sets. Surely there are things that could have done differently, but it's easy for us to say it in hindsight.
Reality is that you very rarely need to face the full complexity of Unicode. If you have to fight with collating, maybe the complexting of combining characters may be spared to you.
Human writing systems are complex and irregular, setting a single standard (Unicode for now) is a huge effort, practically impossible to capture everything that we humans can write. Unicode provide us with a way, for how much complicated it can be, to deal with most of those writing systems.
It makes our code better, not worse!