this post was submitted on 05 Sep 2023
1336 points (97.4% liked)
Programmer Humor
19623 readers
27 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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Except that you have to either indent with only tabs or indent with only spaces. Any time you mix tabs and spaces you are just asking for disaster.
If you indent with only tabs you can't align things except on tab boundaries. If you have a function that takes 10 parameters and want to do it on multiple lines, the alignment of the extra parameters is going to be ugly.
If you indent with only spaces, you can indent things so that all the parameters line up directly underneath the parenthesis, for example.
I agree we shouldn't mix tabs with spaces. But use tabs always. I could line up parameters together but may not be just under parentheris, and it looks good and readable for me
I think it looks like ass, so only spaces for me.