Replies: 1 comment
-
Confused right now https://nodejs.org/.../adv.../buffers/how-to-use-buffers/.... : makes you work with an API designed for strings and not binary data, and has a tendency to break in strange and mysterious ways. https://developer.mozilla.org/.../Web/API/DOMString/Binary : A binary string is a concept similar to the ASCII subset, but instead of limiting the range to 127, it allows code points until 255. Its purpose however is not to represent characters, but binary data. ???????????????? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As i see in https://nodejs.org/en/knowledge/advanced/buffers/how-to-use-buffers/#:~:text=The%20Buffer%20class%20in%20Node,methods%20specifically%20for%20binary%20data.
One way to handle this problem is to just use strings anyway, which is exactly what Node.js did at first. However, this approach is extremely problematic to work with; It's slow, makes you work with an API designed for strings and not binary data, and has a tendency to break in strange and mysterious ways.
What is it mean by tendency to break in strange and mysterious ways?
Beta Was this translation helpful? Give feedback.
All reactions