I've spent countless hours in meetings discussing code formatting, and frankly, it's a …
I’ve spent countless hours in meetings discussing code formatting, and frankly, it’s a topic I dislike 😖 . I’ve been part of endless debates on how to format code and who should maintain it, e.g. Confluence page and settings for at least two IDEs.
Each team member has different preferences, and when the team changes, these discussions resurface, often six months later 🤦♂️.
👉 But I get it, this topic is highly emotional. 👈
But it shouldn’t be like that.
When a team sets its own formatting rules, new members must learn and adapt to them, creating an additional onboarding hurdle. Adopting a standard format can alleviate this. New members are more likely to be familiar with the standard, streamlining the onboarding process 🚀.
While no standard is perfect - take Google’s Java style, for instance, which has limitations with fluent APIs and only 100 characters per line - it offers a consistent approach that doesn’t require maintenance. By using a widely accepted standard without custom team rules, we simplify transitions between projects, benefiting every team member involved.
In each of my projects where we introduced such a standard, six months later everybody was not thinking about this topic anymore but was happy we had fewer merge conflicts 😉 .
What’s your experience with code formatting standards in your team? Do you use tabs or spaces?
#CodeFormatting #SoftwareDevelopment #Teamwork #Standards #Efficiency #Onboarding #BestPractices
Kommentieren und diskutieren können Sie direkt unter dem Beitrag auf LinkedIn.