Transporter Posted September 10, 2016 Posted September 10, 2016 (edited) Tabs or Spaces for indentation, which do I use? Edited September 10, 2016 by Transporter
Transporter Posted September 10, 2016 Author Posted September 10, 2016 Why would one ever use spaces? 1
Wizard Posted September 10, 2016 Posted September 10, 2016 \t(tab).. some people just want to watch the world burn
Explv Posted September 10, 2016 Posted September 10, 2016 (edited) Tabs or Spaces for indentation, which do I use? Most editors will insert spaces when you press the tab key, if it doesn't you should set it so that it does. Tabs are generally bad in programming because different editors will insert different amounts of whitespace for a tab. So when viewing your code it can look completely different. That clip from Silicon Valley is bullshit because no one sits there pressing the space key, as their tab key inserts spaces rather than tabs. Edited September 10, 2016 by Explv