docs: add coding guidelines review and examples
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
#include "gamecube.h"
|
#include "gamecube.h"
|
||||||
|
|
||||||
|
// Coding Guidelines:
|
||||||
|
// Negativ: keine namespaces verwendet, Kommentare erklären "wie" nicht "warum"
|
||||||
|
// Positiv: verständliche Methodennamen, getrennte Deklaration in Header-Dateien
|
||||||
|
|
||||||
gamecube::gamecube(const Vec3 &pos, Color col)
|
gamecube::gamecube(const Vec3 &pos, Color col)
|
||||||
: position(pos), color(col) {}
|
: position(pos), color(col) {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user