“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
* 1
* lowercase
* 1TBS
* 2 or 4
* snake_case or lowercase
* K&R
* 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. 😛
4
camelCase for most code, snake_case for files/database stuff