by jermaustin1 · 1y ago · 0 comments
I'm actually with your tech lead and your manager on this one. It is imperative that all team members are using the same code style. Its part of your IDE's settings.
While it is fun to debate tabs vs spaces, camelCase vs PascalCase vs snake_case, private _members vs private Members, but in the real world, you match the style of the project you are working on. Always.
There isn’t really a “right” answer. I tend to include the team in the decisions. Then once you’ve chosen a set of rules all you have to do is enforce them.
I suggest implementing a linter/formatter tool to be used with a pre-commit hook, so that it runs automatically and checks for this stuff automatically, avoiding you having to do it manually (mostly)
Yes, that is a given. I've never worked in a corporate environment where they didn't have a chosen IDE (from the small 4 employee company to the large multi-national defense conglomerate). Usually the company has an enterprise license, or at least will buy another seat/transfer a license when they hire a new dev.