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

Programmer Humor

32410 readers
552 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] 7 points 8 months ago (2 children)

Why would I use spaces if I use tabs? Also, it seemd like a huge waste of time hitting the space bar so many times...

[–] [email protected] 7 points 8 months ago* (last edited 8 months ago) (1 children)

Why would I use spaces if I use tabs?

To comply with Python's best practices:

https://peps.python.org/pep-0008/

Also, if you work on the Linux Kernel, you'll see a mix of tabs and spaces:

https://elixir.bootlin.com/linux/latest/source/block/bfq-iosched.c#L390

Also, it seemd like a huge waste of time hitting the space bar so many times…

You use an editor that doesn't auto-indent?

[–] [email protected] 3 points 8 months ago (1 children)

I assume this was a joke 😁

[–] [email protected] 2 points 8 months ago (1 children)

I use vi without syntax highlighting.

[–] [email protected] 1 points 8 months ago (1 children)

Please don't hack me, mister FBI

[–] [email protected] 1 points 8 months ago (1 children)

To be fair you can totally bind an arbitrary number of spaces to tab in vi. I'll dig out the syntax highlighting file some time. Oh and I use vim really.

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

I do use neovim myself too 😁