this post was submitted on 28 Feb 2024
1001 points (97.0% liked)

Programmer Humor

32588 readers
983 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 47 points 9 months ago (19 children)

Mixing spaces and tabs should be a warcrime.

[–] merc -5 points 9 months ago (17 children)

Find me anyone who claims they use tabs for indentation, and I bet I'll find at least one case where they're using both tabs and spaces.

The only safe way to avoid war crimes is to avoid tabs.

[–] [email protected] 7 points 9 months ago (3 children)

I use the tab key but I'm pretty sure vs code converts that to spaces

[–] gears 4 points 9 months ago (1 children)

Depends on your settings, but yeah typically it does

[–] merc 1 points 9 months ago (1 children)

It worries me that a programmer wouldn't know for sure what's happening when they hit tab, and that it's a setting that can be changed.

[–] [email protected] 2 points 9 months ago

I mean I was 99% sure it convert to spaces, I cannot say I was certain. The default settings are fine for what I do, I only ever had to change the spacing from 4 to 2 spaces once when dealing with someone else's files

load more comments (1 replies)
load more comments (14 replies)
load more comments (15 replies)