Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1075581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T21:17:37+00:00 2026-05-16T21:17:37+00:00

I come from a the Objective-C and Cocoa world where there are lots of

  • 0

I come from a the Objective-C and Cocoa world where there are lots of conventions and many people will say it makes your code beautiful!
Now programming in C++ I cannot find a good document like this one for C++.

http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CodingGuidelines/CodingGuidelines.html

Standard C++ probably does not have something like above but I hope I can stick to some other SDK or APIs (like Microsoft’s(?),etc) conventions.

I hope you can provide me with some links.

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T21:17:38+00:00Added an answer on May 16, 2026 at 9:17 pm

    Do whatever you want as long as its minimal, consistent, and doesn’t break any rules.

    Personally, I find the Boost style easiest; it matches the standard library (giving a uniform look to code) and is simple. I personally tack on m and p prefixes to members and parameters, respectively, giving:

    #ifndef NAMESPACE_NAMES_THEN_PRIMARY_CLASS_OR_FUNCTION_THEN_HPP
    #define NAMESPACE_NAMES_THEN_PRIMARY_CLASS_OR_FUNCTION_THEN_HPP
    
    #include <boost/headers/go/first>
    #include <boost/in_alphabetical/order>
    #include <then_standard_headers>
    #include <in_alphabetical_order>
    
    #include "then/any/detail/headers"
    #include "in/alphabetical/order"
    #include "then/any/remaining/headers/in"
    // (you'll never guess)
    #include "alphabetical/order/duh"
    
    #define NAMESPACE_NAMES_THEN_MACRO_NAME(pMacroNames) ARE_ALL_CAPS
    
    namespace lowercase_identifers
    {
        class separated_by_underscores
        {
        public:
            void because_underscores_are() const
            {
                volatile int mostLikeSpaces = 0; // but local names are condensed
    
                while (!mostLikeSpaces)
                    single_statements(); // don't need braces
    
                for (size_t i = 0; i < 100; ++i)
                {
                    but_multiple(i);
                    statements_do();
                }             
            }
    
            const complex_type& value() const
            {
                return mValue; // no conflict with value here
            }
    
            void value(const complex_type& pValue)
            {
                mValue = pValue ; // or here
            }
    
        protected:
            // the more public it is, the more important it is,
            // so order: public on top, then protected then private
    
            template <typename Template, typename Parameters>
            void are_upper_camel_case()
            {
                // gman was here                
            }
    
        private:
            complex_type mValue;
        };
    }
    
    #endif
    

    That.
    (And like I’ve said in comments, do not adopt the Google Style Guide for your code, unless it’s for something as inconsequential as naming convention.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I come from the Java world, so to me it's all object.foo() , but
I come from the asp.net world where we'd use an objectdatasource, hooked up to
I come from a php background and in php, there is an array_size() function
I come from the iPhone development world but have never developed desktop applications. Now
I am very new to VB.NET, and I come from an Objective-C background. In
In C, can you create a dictionary? I come from a Objective-C background so
I'm in the process of porting some code from Objective C to C++. I'm
I come from Java / Objective-C to PHP and find it horrible . I
I come from a Java background and I am learning Objective C. I am
I come from c++/c#/java camp and am confused when I see the following objective-c

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.