Tabs or spaces? Spaces, obviously, but how many?

More from: | Opensource.com |
0

Depending on who you ask, it’s either the silliest or the most important question when it comes to coding style: tabs or spaces?

When we asked you, our readers, the question last summer, spaces came out on top. That said, it’s a nuanced question where things like programming language, editor, and project style all should play a role.

Regardless of where you come down on the spaces versus tabs debate, there’s a related question: If you use spaces, how many do you use, and if you use tabs, what number of spaces do you set to be equivalent to the depth of one tab level?

There’s an argument for using as few as possible, particularly when the code you’re writing

(...)

Read full article » https://opensource.com/article/18/9/spaces-poll


About | Opensource.com |

Opensource.com publishes stories about creating, adopting, and sharing open source solutions. Join the Opensource.com community and learn more about how the open source way is improving technologies, education, business, government, health, law, entertainment, humanitarian efforts, and more.

»Twitter: @opensourceway »Facebook: @opensourceway