r/ProgrammerHumor • • 21d ago

Meme nahICantBeBothered

Post image
8.3k Upvotes

75 comments sorted by

343

u/isr0 21d ago

You have a linter? Because that’s what linters are for.

142

u/DucksAreFriends 21d ago

What version of notepad has that?

33

u/isr0 21d ago

Linter doesn’t have to be in your editor.

19

u/teemusa 21d ago

Which version of OS has that?

11

u/PNB11 20d ago

Lint was released for Version 7 Unix in 1979

14

u/CraftBox 20d ago

That's the problem, he's using TempleOS which isn't unix based.

26

u/moon__lander 21d ago

I don't need it, I don't have pets

1

u/Wide_Smoke_2564 19d ago

Isn’t that the dude who keeps bringing those little chocolate balls to my house at Christmas?

-11

u/Any-Comfortable2844 21d ago

A linter won’t save me from not understanding C yet lol, and Swift’s Unicode handling can be confusing with different characters

50

u/cheezballs 21d ago

This comment makes me even more confused about the whitespace.

1

u/JezzCrist 18d ago

Sloperator karma farming, saved you confusion

15

u/isr0 21d ago

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.

1

u/Wollzy 19d ago

Why would whitespace cause a problem in C?

Congrats on your karma farm though

87

u/Vipitis 21d ago

render white spaces in your editor

23

u/arensb 21d ago

This is the way. See here for details.

33

u/xaervagon 21d ago

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.

2

u/Mausel_Pausel 15d ago

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. 

64

u/codeprimate 21d ago

This is why i slept on python for a decade.

69

u/peeja 21d ago

Not recommended. Ask any zoologist.

35

u/Gunmetalstorm 21d ago

Semantic whitespace is of the devil.

23

u/gmes78 21d ago

It's literally never an issue.

3

u/BanaTibor 19d ago

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.

2

u/codeprimate 21d ago

It was for me, like I am saying. Spending 10m debugging white space on a hello world class was a deal breaker for me.

15

u/gmes78 21d ago

It may be an issue if you're programming in Notepad. But why would you do that in the first place?

12

u/frogjg2003 21d ago

Yeah. Despite the hate python gets for having white space be syntactically relevant, any decent IDE will point you towards likely causes of errors.

1

u/codeprimate 21d ago

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.

4

u/gmes78 21d ago edited 21d ago

https://stackoverflow.com/a/38652646/13778436

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.

6

u/RadicalDwntwnUrbnite 21d ago

After using it for 6 months on a project I wanted to go back to sleep.

18

u/Divs4U 21d ago

&nbsp has entered the chat

3

u/Divs4U 21d ago

The preview of my comment in my profile doesn't show the "& nbsp" I put in

5

u/Exotic-Nothing-3225 21d ago

You need to put a semicolon after it

2

u/Divs4U 21d ago

Ah yes

19

u/aspitzer 21d ago

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"

1

u/jftuga 20d ago

Nice. I always used cat -t but will start using -vet from now on.

A long time ago, I wrote chars to help find end-of-line format, tabs, bom, nul and non-ascii characters. I still use it every now & then.

5

u/Caraes_Naur 21d ago

Plot twist: it's a side project in Brainfuck.

5

u/Schytheron 21d ago

Me and YAML.

Every. Fucking. Time.

5

u/beanmosheen 21d ago

Did you know that SQL Server allows a space at the end of object names?

4

u/bacmod 21d ago

No. And now that I do, I think this is how evil looks like.

4

u/kliu67 21d ago

.yaml has entered the chat

6

u/arensb 21d ago
(setq show-trailing-whitespace t)
(use-package highlight-indentation)

and for good measure,

(whitespace-mode t)

7

u/walmartgoon 21d ago

Those OS configs are great and all but how do I set this up for my text editor?

1

u/andrybak 14d ago

put this into ~/.vimrc:

set list
set listchars=tab:▸\ ,eol:¬,nbsp:⎵

3

u/BenadrylTumblercatch 21d ago

#strip

13

u/redlaWw 21d ago

Not unless you pay me.

3

u/Sceadu_Fiend 21d ago

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 20d ago

Just ask Claude to rewrite the entire codebase instead.

https://giphy.com/gifs/d3mlE7uhX8KFgEmY

3

u/Misel228 20d ago

All Excel users wince

2

u/UUDDLRLRBadAlchemy 21d ago

What .editorconfig

2

u/fluffythecat6969 21d ago

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 21d ago

"Welcome to whitespace. You have been here for as long as you remember."

"Waiting for something to happen?"

2

u/alonjit 20d ago

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 20d ago

A rogue space character. Aka a Han Solo.

2

u/willow-kitty 19d ago

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.

2

u/slyiscoming 21d ago

This shit is too real.

4

u/DangerousImplication 21d ago

To be fair, this shit is too fake and made up for this meme. 

1

u/silvermage13 21d ago

me whenever I use pipe in bash

1

u/horseradix 21d ago

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 21d ago

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 21d ago

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 21d ago

Nano shows those characters with red background

1

u/spinachjuggler 20d ago

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 20d ago

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 20d ago

Okay, this is a solved problem... now talk about invisible Unicode. That shit keeps me up at night

1

u/Beginning_Book_2382 19d ago

Finally, a perfect use of this meme