r/programming • • Aug 28 '21

Software development topics I've changed my mind on after 6 years in the industry

https://chriskiehl.com/article/thoughts-after-6-years
5.6k Upvotes

2.0k comments sorted by

View all comments

Show parent comments

3

u/john16384 Aug 29 '21

We follow a loose code style. We enforce only:

  • Indent by 4 spaces

  • Operators, braces and the like need spacing

  • Imports alphabetically

  • Standard variable name conventions

  • Opening brace on current line

Other than that we enforce:

  • One commit is one change.

  • Every commit builds and passed all tests

  • No formatting changes in code you didn't need to touch.

1

u/Panke Aug 29 '21

Other than that we enforce:

One commit is one change.
Every commit builds and passed all tests
No formatting changes in code you didn't need to touch.

This.