Moderators: g3nuin3, SpeedWing, WhiteHat, mezzo
Felheart wrote:I hope MHS2 will be made from only the best parts of MHS, CE and olly
L. Spiro wrote:Today, my headers are alphabetical
L. Spiro wrote:and do not have function bodies inside the class declarations.
L. Spiro wrote:These days, I code with strict conventions including namespaces, global-scope operators, JavaDoc commenting, copyright headers, and have even defined how to format sections of classes in so much detail as to have defined the number of blank lines between sections.
#include "../LSGGraphics.h" // Main header. ALL headers in the graphics library FIRST include this file.
#include "Algorithm/LSTLAlgorithm.h" // The rest of the files are alphabetical, starting with "" includes because they are more important than <> includes.
#include "HighLevel/LSFFilesEx.h"
#include "LSGShaderLanguageParser.h"
#include "LSGShaderLexer.h"
#include "LSGShaderParserWrapper.h"
#include "Map/LSTLMap.h"
#include "String/LSTLString.h"
#include "String/LSTLStringList.h"
// One blank line after "" before including <> files.
#include <cassert> // <> includes, again in alphabetical order.
#include <new>
L. Spiro wrote:#1:
Despite the raw number of people who have asked me to make such a detailed style guide, I remain convinced that it would cause more uproar than anything else.
People won’t get it that it is just one way to go if you haven’t already made your own ways to go.
They will take it as preaching and start whining how stupid one rule is or another or whine that the style is ugly etc.
Johnson wrote:L. Spiro wrote:#1:
Yet this makes little sense : for coders are then forced, and thereby betrayed, to reverse your coding style through a tiresome analysis ; and perhaps even then may miss some details thereof.
So I remain convinced that you are hiding the real reason, unless you be insane.
void myFunc ( );
int myFunc2( );
string myFunc3( );
string szHello = "Hello";
int iHello = 1;
etc.
Return to General Related Discussions
Users browsing this forum: No registered users and 0 guests