Thanks, Erick. I'm going to make an edit
Someone in my local community shared this snippet of code and needed help finding the reason why the code didn't behave as expected
Typing out the code he shared worked as expected, so it's when I copy-pasted their code that the "bug" was reproduced. It inspired me to write this article, and I didn't ask for the source of their code snippet
Thanks for the link, by the way. Makes for interesting reading
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Suggestion: perhaps citing the sources for your post gives not only more credibility and also helps people interested in diving more into the subject.
I saw the exact same code snippet a while ago in another blog before, covering this even more in depth:
certitude.consulting/blog/en/invis...
I find hard to believe in such big similarities in the same problem domain.
Nevertheless, thanks for posting and helping in creating awareness about invisible characters.
Thanks, Erick. I'm going to make an edit
Someone in my local community shared this snippet of code and needed help finding the reason why the code didn't behave as expected
Typing out the code he shared worked as expected, so it's when I copy-pasted their code that the "bug" was reproduced. It inspired me to write this article, and I didn't ask for the source of their code snippet
Thanks for the link, by the way. Makes for interesting reading