It’s true, there is no substitute for some measure of competence in the language you are using. I assume you’re learning some new things. I wish you the best of luck.
Once in the early 2010s, I copied code out of a Word document and got bizarre errors from Smart Quotes. Visual Studio didn't know how to handle or clean them. My boss realized what I did and helped me out before I lost any real time on it.
A colleague cut and pasted from a Word document into a database text field and couldn’t find it using a search. It contained a zero-width space. I would like to know why such a thing even has to exist.
Once me and my colleague spent the better part of a day debugging an integration test. The last line was accidentally moved out from an if statement to the level of the statement itself. Caused unexplainable errors during runs. So yes, significant whitespace is of the devil.
Or vim... vim/tmux was my IDE of choice for nearly 20y.
The choice of INVISIBLE characters to indicate control structure is the bigger question. It's developer-hostile. One shouldn't need an IDE to write basic scripts and glue code.
Also, Vim has built-in support for Python, so it can handle things like indentation for you. In practice, you don't actually need the "show spaces" feature.
I just had to deal with this for a label template Was driving me nuts because my testing worked fine but customer kept showing me labels with the letter A and a line above it
I was chasing a fking error today for 2 hours. Springboot properties substitution type of crap. It was a double } that was messing with me. Not invisible, but still a cunt... and maybe I'll accept 5 % of the blame
I haven't done Windows development in a while, so I dunno if this has changed, but baaaack in the daaaay, the certificate manager snap-in for MMC would add a unicode left-to-right character at the beginning of certificate thumbprints, so if you copied out of it and into a config file, say, it would look totally correct, but then you'd get errors saying no certificate with that thumbprint could be found.
It happened unfortunately often. We did eventually have the code strip it so it was fine, but there were a couple of times there where I got to blow someone's mind because they were pulling their hair out trying to figure out why the certificate couldn't be found when it very clearly existed, and I'm like, "Alright, put your cursor there. Now press the left arrow once so it's at the start of the value. Now press backspace," and instead of the backspace eating the leading quote, nothing visibly happens. Because they just backspaced a non-printable character. "Well, well, well," indeed.
Reminds me of the time I was using eclipse in college and kept running into this weird convoluted error every time I would try to compile and run something. For the life of me I couldn't figure out what the heck was wrong, the code and repo were fine, I installed everything the way I always did before, wtf?
Turns out eclipse couldn't deal with spaces in file directory strings on Windows. Only after 2+ hours of pure agony did I think to rename the folder the project was in...I now have a strong aversion to using spaces in directory and file names, ever
I remember the slew of words that came from a coworker’s office back in 2019 when he found that some reference data that he had copied-and-pasted from the Internet had a zero-width space in it.
Fucking legacy system here keeps sending XML that is immediately considered invalid by receiving systems because it keeps placing 'invisible' U+001A chars next to random characters, inconsistently and for no identifiable reason.
my most common one was ! code like if(!IsDisabled) , so much so now i always do if(IsDisabled == false) now even though my IDE tells me to "simplify" it.
343
u/isr0 Sep 14 '26
You have a linter? Because that’s what linters are for.
89
u/Vipitis Sep 14 '26
render white spaces in your editor
31
u/xaervagon Sep 14 '26
Once in the early 2010s, I copied code out of a Word document and got bizarre errors from Smart Quotes. Visual Studio didn't know how to handle or clean them. My boss realized what I did and helped me out before I lost any real time on it.
63
u/codeprimate Sep 14 '26
This is why i slept on python for a decade.
17
u/Divs4U Sep 14 '26
  has entered the chat
17
u/aspitzer Sep 14 '26
cat -vet FILENAME
in linux... This will show all the weird chars in the file. Remember to "take the cat to the vet to find unwanted chars"
6
u/Caraes_Naur Sep 14 '26
Plot twist: it's a side project in Brainfuck.
5
u/Schytheron Sep 14 '26
Me and YAML.
Every. Fucking. Time.
5
u/beanmosheen Sep 14 '26
Did you know that SQL Server allows a space at the end of object names?
4
u/kliu67 Sep 14 '26
.yaml has entered the chat
6
u/arensb Sep 14 '26
and for good measure,
3
u/BenadrylTumblercatch Sep 14 '26
#strip
3
u/Sceadu_Fiend Sep 14 '26
I just had to deal with this for a label template
Was driving me nuts because my testing worked fine but customer kept showing me labels with the letter A and a line above it
3
u/dillanthumous Sep 15 '26
Just ask Claude to rewrite the entire codebase instead.
3
u/Misel228 Sep 15 '26
All Excel users wince
2
u/UUDDLRLRBadAlchemy Sep 14 '26
What .editorconfig
2
u/fluffythecat6969 Sep 14 '26
I was chasing a fking error today for 2 hours. Springboot properties substitution type of crap. It was a double } that was messing with me. Not invisible, but still a cunt... and maybe I'll accept 5 % of the blame
2
u/IncarnationHero Sep 15 '26
"Welcome to whitespace. You have been here for as long as you remember."
"Waiting for something to happen?"
2
u/alonjit Sep 15 '26
That's what you get for using a programming language or a text data format in which spaces are a significant character.
You 100% deserve this.
2
u/damadmetz Sep 15 '26
A rogue space character. Aka a Han Solo.
2
u/willow-kitty Sep 16 '26
Story time!
I haven't done Windows development in a while, so I dunno if this has changed, but baaaack in the daaaay, the certificate manager snap-in for MMC would add a unicode left-to-right character at the beginning of certificate thumbprints, so if you copied out of it and into a config file, say, it would look totally correct, but then you'd get errors saying no certificate with that thumbprint could be found.
It happened unfortunately often. We did eventually have the code strip it so it was fine, but there were a couple of times there where I got to blow someone's mind because they were pulling their hair out trying to figure out why the certificate couldn't be found when it very clearly existed, and I'm like, "Alright, put your cursor there. Now press the left arrow once so it's at the start of the value. Now press backspace," and instead of the backspace eating the leading quote, nothing visibly happens. Because they just backspaced a non-printable character. "Well, well, well," indeed.
3
u/slyiscoming Sep 14 '26
This shit is too real.
1
u/Lakhveer07 Sep 14 '26
Lol
1
u/silvermage13 Sep 14 '26
me whenever I use pipe in bash
1
u/horseradix Sep 15 '26
Reminds me of the time I was using eclipse in college and kept running into this weird convoluted error every time I would try to compile and run something. For the life of me I couldn't figure out what the heck was wrong, the code and repo were fine, I installed everything the way I always did before, wtf?
Turns out eclipse couldn't deal with spaces in file directory strings on Windows. Only after 2+ hours of pure agony did I think to rename the folder the project was in...I now have a strong aversion to using spaces in directory and file names, ever
1
u/Keavon Sep 15 '26
One of the many reasons Rust is the best programming language. The compiler always catches this and tells you precisely where to fix it.
1
u/Beechlander Sep 15 '26
I remember the slew of words that came from a coworker’s office back in 2019 when he found that some reference data that he had copied-and-pasted from the Internet had a zero-width space in it.
1
u/samy_the_samy Sep 15 '26
Nano shows those characters with red background
1
u/spinachjuggler Sep 15 '26
Fucking legacy system here keeps sending XML that is immediately considered invalid by receiving systems because it keeps placing 'invisible' U+001A chars next to random characters, inconsistently and for no identifiable reason.
1
u/the_reven Sep 15 '26
my most common one was ! code like if(!IsDisabled) , so much so now i always do if(IsDisabled == false) now even though my IDE tells me to "simplify" it.
1
u/aurallyskilled Sep 16 '26
Okay, this is a solved problem... now talk about invisible Unicode. That shit keeps me up at night
1
u/Beginning_Book_2382 Sep 16 '26
Finally, a perfect use of this meme
1
u/bobdobbes Sep 16 '26
https://en.wikipedia.org/wiki/Whitespace_(programming_language)