So we've just had our bi-monthly heated office argument about how to indent code.
It occured to me, does this ongoing debate range wider than our office?
I bet it does.
So, to start the ball rolling ..
I indent by 4 spaces, using tabs to represent 8 spaces.
So my code will go something like ..
int foo() {
<4 spaces>if (a) {
<tab>if (b) {
<tab><4 spaces>print("hello world");
<tab>}
<4 spaces>}
}
Anyone else?
Anyone from Frontier?
Do you have an in-house indentation policy or does everyone simply use the same IDE which does it for you so you actually don't have to know or care about this hotly debated and deeply important issue? (mixing indentation in the same source file is basically a sacking offence where we come from - either that or a round of drinks at the pub).

It occured to me, does this ongoing debate range wider than our office?
I bet it does.
So, to start the ball rolling ..
I indent by 4 spaces, using tabs to represent 8 spaces.
So my code will go something like ..
int foo() {
<4 spaces>if (a) {
<tab>if (b) {
<tab><4 spaces>print("hello world");
<tab>}
<4 spaces>}
}
Anyone else?
Anyone from Frontier?
Do you have an in-house indentation policy or does everyone simply use the same IDE which does it for you so you actually don't have to know or care about this hotly debated and deeply important issue? (mixing indentation in the same source file is basically a sacking offence where we come from - either that or a round of drinks at the pub).