DEV Community

Discussion on: A Good Reason to NOT Copy and Paste Code

Collapse
 
erickwilder profile image
Erick Wilder

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.

Collapse
 
glennfaison profile image
Glenn Faison

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