Re:Hard-to-swallow truths they won't tell you about software...
by munksbeer on Friday November 10, 2023 @07:59AM
(#38218278)
This would be a hard no from me. I cannot stand having to switch style when working on the same codebase or even in the same company.
codestyle enforcement via pre-commit hooks or CI build failure is the way to go. Trying to adpat to codestyle is a distraction. All distractions should be removed when coding.
I work on a team now where the three main contributors (including myself) all have _reasonably_ different programming styles (naming, whitespace, structure, const/immutable, algos). Having read enough code from the other two: I am confident they are good programmers, but their style is different from mine. Still, we try very hard to accommodate each other's style. When we make changes, we try to stay with the current style in the class / method. It has been a real learning experience for me.