14

So this is how YouTube handles overflow/trims text 🤭

Comments
  • 9
    Devrant too, I assume it's because they both cut the strings at n bytes and so multi-byte utf-8 codepoints get sliced into an invalid byte.
  • 10
    @lbfalvy halfway through 2022 and we're splitting Unicode strings by bytes, smh.
  • 4
    Well, code monkeys normally don't know about grapheme clusters. You have to provide them with libs and templates that do the right thing - or they happily butcher your text, eat it and create abstract cave drawings from the remains...
  • 1
    @Oktokolo to be fair there is no point in writing the same emoji handling code in 386283 different companies instead of using a library
  • 0
    @piratefox Well, in large companies, yes actually. You know. Code safety and such
  • 0
    @ScriptCoded if we talk about FAANG maybe, if the library is open source and we’re not talking about FAANG I’m not so sure

    Edit: faang or banks
Add Comment