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 7697171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:56:56+00:00 2026-05-31T21:56:56+00:00

I have a rather theoretical question. My company has a working standard (documented) that

  • 0

I have a rather theoretical question. My company has a working standard (documented) that is rather extensive regarding C++ but is almost none existent when it comes to C#, where the only directive is that the coding standard should follow Microsoft’s style guidelines for C#. MSDN does have guidelines, but this causes a rather large difference between code in both languages in our companies’ code.

Here are a few coding standards we have for C++ (nothing new mind you):

  1. Class member names should start with m_ and proceed in camel case i.e. bool m_isValid;

  2. Method params should start with _ i.e. and proceed in camel case void Foo(bool _isValid);

  3. local variables are regular camel case i.e. bool isValid;

This makes for very readable code when reading long functions, since you immediately know what is a member, what is a parameter, and what is a local variable.

Now when it comes to C#… The usual practice is camel case for all three. It is much harder to read, and you have to hover over the variable or click it to know which one it is.

If it where your decision, would you enforce the same coding standards for both languages? Would you enforce most of the same coding standards? Or would you go with a different language different standards approach?

Thanks…

  • 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-31T21:56:58+00:00Added an answer on May 31, 2026 at 9:56 pm

    If it where your decision, would you enforce the same coding standards for both languages?

    Absolutely not. I’d follow the normal conventions for C#. If you try to make code in language look like code in another, you’re likely to start using idioms from that language too… and end up speaking C# with a C++ accent.

    This makes for very readable code when reading long functions

    So wherever possible, avoid creating long methods… I very rarely find it a problem to have all three kinds of variable using the same conventions – whereas long methods end up being painful whatever conventions are used.

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

Sidebar

Related Questions

This is more of a theoretical question rather than language specific, but I'm mostly
I have rather simple, I imagine, question about CRTP , but I cannot seem
First of -yes this IS a homework- but it's primarily a theoretical question rather
I have rather large project that uses ICU regex classes. Basically it might run
Have a rather simple question. Does anyone knows if i can use jparallax both
I have some rather odd behavior in my D program that I've narrowed down
So this is as much a theoretical question as a language-specific one, but consider
I have rather class using TcpClient that spins of a Thread doing while (!streamReader.EndOfStream)
I have a working solution, but I was wondering if there was a better
I have rather large input XML files that must be converted to a given

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.