this post was submitted on 28 Jul 2024
1305 points (99.0% liked)

Programmer Humor

19557 readers
453 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 11 points 3 months ago (7 children)

Python is one of the few languages with an official style guide, I think that guide says 4 spaces.

[–] [email protected] 5 points 3 months ago (6 children)
[–] [email protected] 11 points 3 months ago (3 children)

I've set tabs to four spaces in vim because who the fuck defaults tab to eight spaces. That shit looks alien and pushes text off the screen fast.

[–] [email protected] 4 points 3 months ago

I set my clang-format to tabs only (actual tabs ASCII 0x9, no alignment and there is a continuation tab instead), then anyone can set their editor to whatever tab length they feel like and look at their code however they want.

But no spaces on the left of my code. This is for C, C++ and JSON.

load more comments (2 replies)
load more comments (4 replies)
load more comments (4 replies)