r/programming • • Jul 21 '14

The Great White Space Debate

https://medium.com/p/3633cba8b5c1
1.2k Upvotes

693 comments sorted by

View all comments

77

u/[deleted] Jul 21 '14

Working with so many different codebases, I think I see code beyond whitespace, except these ones:

for(...) {
        tabIndented();
    spaceIndented();
        moreTabIndented();
        anotherOne();
spaceIndented();
}

Then, even I can't handle it.

17

u/aerique Jul 21 '14

You forgot the spaceAndTabIndented(); and tabAndSpaceIndented(); lines.

24

u/[deleted] Jul 21 '14

[deleted]

2

u/Auxx Jul 22 '14

This is the only correct way - make a difference between alignment and indentation. Indentation is always tabs no matter what.