<div id='stars2'></div> <div id='stars3'></div> <div id='stars4'></div> [[Programming#Section 1 Foundation|Learn Programming Section 1]] previous: [[Input Output]] --- Code Style is everything from indenting lines using tabs or 'x' number of spaces. To how are variables and classes named. This can be somewhat be a personal choice (unless you work for or with someone else). The key point is to be consistent! Some things to note. - Variable names: 1. Avoid overly short or overly long names. (2 letter names are a pain) 2. exceptions for common practices like using common iterators like (i, j, m, n,...) or position variables like (x, y, z) etc. 3. take the context in account 4. variables should generally describe what they are - Write the function header before the function - Document your code while you are writing it. - Code is often much easier to understand while you are writing it. Be kind to your future self and add comments and clear variable names. Links to various style guides [Google c++](https://google.github.io/styleguide/cppguide.html) [Microsoft](https://learn.microsoft.com/en-us/windows/win32/stg/coding-style-conventions) [Epic Games](https://dev.epicgames.com/documentation/en-us/uefn/verse-code-style-guide-in-unreal-editor-for-fortnite) --- next: [[Documentation]]