Mark Dalgleihs
Tabs
What are tabs
?
I did some research
Idnentation
What can I indent
?
var max = 10, arrays = new Array(); for (i = 0; i < max; i++) { for (j = 0; j < max; j++) { myArray = new Array(2); myArray[0] = i; myArray[1] = j; arrays.push(myArray); } }
var max = 10, arrays = new Array(); for (i = 0; i < max; i++) { for (j = 0; j < max; j++) { myArray = new Array(2); myArray[0] = i; myArray[1] = j; arrays.push(myArray); } }
File size
Tab
Spaces
MegaBytes
Power trip
2 spaces?
4 spaces?
8 spacs
?
How many spaces do you want???
No thanks.
Let's talk about
Tabs
“Smart tabs”
?
Are you indenting code?
Or aligning it?
alignment / indentation
var max = 10, arrays = new Array(); for (i = 0; i < max; i++) { for (j = 0; j < max; j++) { myArray = new Array(2); myArray[0] = i; myArray[1] = j; arrays.push(myArray); } }
Why even use the space bar
?
Elastic tabstops
(C) WikiPedia