“Important” Questions

This is not really that related to the competition but mainly a question of style. What do people prefer?

  • Tab vs Spaces vs Hybrid (tabs for indentation and spaces of alignment)
  • Indentation Width (2, 3, 4, 6, 8)
  • snake_case, camelCase, lowercase, etc.
  • If applicable, brace position: K&R, Linux, Allman, etc.

My personal opinions:

  • Hybrid (best of both worlds)
  • 4 or 8 or 2 (depends on the language)
  • camelCase or snake_case (depends on the language)
  • Allman mainly but trialling out Linux

Comments

Weloxux
17. Aug 2015 · 13:21 UTC
* tabs

* 1

* lowercase

* 1TBS
GoldPlatedXplodingFist
17. Aug 2015 · 13:30 UTC
Tabs always tabs. . .
17. Aug 2015 · 15:07 UTC
* Tabs

* 2 or 4

* snake_case or lowercase

* K&R
Scipio Xaos
17. Aug 2015 · 15:22 UTC
* Spaces. Tabs get distorted when switching editors and sharing files. 😛

* Width of 4.

* camelCase though some files are named LikeThis.

* And i’m not familiar with the brace names…. but after a quick search: K&R. Definitely K&R. 😛
SomeLad
17. Aug 2015 · 15:57 UTC
Depends. In my IDE I just hit tab. I actually don’t know the indetation width of it. In Sublime Text, I hybrid with tab (indents 8) and space three times.
17. Aug 2015 · 16:06 UTC
Regarding 1. and 2. : I’ll let my IDE worry about it.
iMer
18. Aug 2015 · 02:16 UTC
Hybrid

4

camelCase for most code, snake_case for files/database stuff