GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Common code style guide should be accepted. · Issue #7 · 4math/Engine

Common code style guide should be accepted. #7

New issue
Copy link
New issue
Copy link
Open
Open
Common code style guide should be accepted.#7
Copy link
Assignees
OlegGedzjuns
Labels
Status: CompletedType: Meintenance

Description

@cyoq
cyoq
opened on Mar 17, 2019
Issue body actions

As the source such guides can be taken :

  • https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md
  • https://gist.github.com/lefticus/10191322

Naming conventions should be also described.

Activity

  1. OlegGedzjuns
    self-assigned this
    on Mar 19, 2019
  2. OlegGedzjuns
    added
    Type: Meintenance
    Status: Accepted
    Priority: Critical
    on Mar 19, 2019
  3. OlegGedzjuns commented on Apr 2, 2019

    @OlegGedzjuns
    OlegGedzjuns
    on Apr 2, 2019
    Member
    More actions

    All logical parts must be separated by namespaces

    namespace name
    {
       exceptions and EXIT_CODES;
       enums;
       classes;
    }
    

    All clases have same patten

    class ClassName
    {
       // VARIABLES
       private : 
       m_initialized = false;
       public : 
    
       // CONSTRUCTORS/DESTRUCTORS
       public:
       ClassName() { Inintialize() };
      ~ClassName() { Shutdown() }; 
    
       // METHODES
       private : 
       Inintialize();
       Shutdown();
       public : 
    };
    

    Name rules

    1. Private variable is written separating each word with an _ and have prefix m_
      type m_variable_name;
    2. Public variable is writen in lowerCamelCase style
      type variableName;
    3. Local variable is written separating each word with an _
      type variable_name
    4. Private and public methodes are writen in UpperCamelCase style
      type MethodeName();
    5. Methode parametere is written separating each word with an _ and with a _ postfix
      type MethodeName( type parameter_name_ );
    6. Class name is writen in UpperCamelCase style
      class ClassName{};
    7. All exit codes, expressions and constants are writen in UPER_CASE and each word is separated with _
      constexpr EXPR_NAME = 0;
  4. OlegGedzjuns
    added
    Status: Completed
    and removed
    Priority: Critical
    Status: Accepted
    on Apr 2, 2019
  5. OlegGedzjuns
    pinned this issue on Apr 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @OlegGedzjuns
    OlegGedzjuns

Labels

Status: CompletedType: Meintenance

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.