by parr0t · 10y ago · 0 comments
Just curious, how often are practices like these where the company you work for gives you a detailed overview of all the coding conventions you should follow? Is this absolutely expected to be followed strictly when you start any job as a developer? Is this something a lot of workplaces follow or mainly the big boys(Google, Facebook, Twitter, etc). If you miss maybe one or two coding conventions in a huge commit for instance, do you hear about it or does the reviewer just fix it and you can see what's changed?
Just curious as I'm still new to transitioning into the workplace when it comes to source control. I work with one other developer (my boss) who wrote for more or less the entire system himself and there is no such document - I just have to observe the patterns used and follow suit.
[1]: This is my opinion. Anecdotally, places with style guides tend to have better engineering cultures.
[2]: Again, opinion. This tends to indicate a weak culture (dictatorial lead or a lack of awareness/ability when it comes to tools) and can produce a negative atmosphere (nit-picking isn't fun).
Are there public tools out there you can use prior to commits for this purpose or are they generally done in-house?
[1]: https://github.com/brigade/overcommit
[2]: E.g., flake8 for Python: https://pypi.python.org/pypi/flake8
[3]: E.g., gofmt for Go: https://golang.org/cmd/gofmt/