Amateur! I use coments so it looks like this:
function main(){ /tab/if(fish==2){ /tab//tab/console.log(“i need help”); /tab/} }
This is horrifying, this is straight up blaspheny
For real. OP needs to give up on this ridiculous notion of tabbed whitespace and learn to use real, monospaced indentation. How wide is a tab? OP couldn’t tell you because tabs are inherently dishonest – a lie concocted by big keyboard to poison the unwashed programmer masses.
I meant for my personal projects. For the code that only I see, tabs are much better for navigation. But it’s true that if there are several of us working on the project, the spaces are much better.
Tabs are one tab character wide, it’s perfect
You’re one character wide
3 spaces is best because if the universe is chaos then everything in it should reflect that.
I’m more about increasing spaces exponentially to really highlight how important each line is
public boolean function() { if (method()) { if (otherMethod()) { for (Object o : list()) { if (o.isAlive()) { return false; } } } } return true; }
int mostCursedIndentation (const int someVal) @safe { {}{}if (someVal < 0) { {}{}{}{}throw new Exception ("Value cannot be negative!"); {}{}} {}{}return someVal * 5 - 3; }
Can you start randomly nest them too?
{{}}{}int foo = bar
You made it even worse!
…this…this can’t be real…no one is that much of a sadist are they?
This whole thread is what nightmares are made of.
So at my work we’ve implemented a automatic code formatter. Instead of having discussions about the process of changing the configuration file we just put it up on GitHub. I think I might have found a fun April fool’s prank.