Skip to main content

Coding Standards

Every developer has opinions about the way they want their code to look: tabs vs spaces, single quotes vs double quotes, 80 char line length vs 120. Languages often provide guides on how you're meant to style your code.  Python has "PEP 8" and GDScript has a style guide.

The problem with these languages is that they don't enforce their own code styles. This means, every developer on a team will probably have slightly different styles. This is a problem, when working with a version control system like Git, every change is tracked, no matter how minor. If three developers touch the same script, we want to see the meaningful diff between the changes, not conflate those changes with style choices.

If you mix style changes it creates really nasty diffs, see why this matters here: Bad Diff vs Good Diff