home Forums # Technical Support [C++] Is there a coding style?

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1639
    Unknown
    Member

    Hi,
    If one would like to contribute to (C++) Fuzzylite with fresh new code, is there a specific coding style to follow?
    What I mean is, for instance, should one use camel case (like Java’s style) or snake case (like standard C++’s style)?
    How should I name files?
    And so on…

    Best,

    Marco

    #1640

    Hi Marco,

    I follow Java conventions in C++ with a few exceptions. Within a class, I utilise mostly protected members whose names start with _ (e.g. Term* _myTerm). A header file (e.g. MyTerm.h) that contains no implementation and it is located at fuzzylite/fl, and the source file (e.g. MyTerm.cpp) located at fuzzylite/src.

    I think if you revise the source code you might have an idea about the coding style.

    Cheers,

    Juan

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.