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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T05:40:05+00:00 2026-05-14T05:40:05+00:00

I am reviewing another developer’s code and he has written a lot of code

  • 0

I am reviewing another developer’s code and he has written a lot of code for class level variables that is similar to the following:

    /// <summary>
    /// how often to check for messages
    /// </summary>
    private int CheckForMessagesMilliSeconds { get; set; }

    /// <summary>
    /// application path
    /// </summary>
    private string AppPath { get; set; }

Doesn’t coding this way add unnecessary overhead since the variable is private?

Am I not considering a situation where this pattern of coding is required for private variables?

  • 1 1 Answer
  • 0 Views
  • 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-14T05:40:05+00:00Added an answer on May 14, 2026 at 5:40 am

    Private properties provide you a level of abstraction when you assign the value to the private variable (which is created for you by the compiler). It’s not less efficient to do so, and if you need to change how the assignment is done in the future, you only have to worry about updating it in one place.

    It can also provide consistency in an application. If all assignments are done through properties, then some can validate the assignment values while others not. To the person interfacing with the property, there is no difference between those which validate and those which do not. (and this way someone doesn’t accidentally assign a value to a local variable which doesn’t validate.)

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

Sidebar

Related Questions

I'm reviewing code that was written by another developer. The code tries to open
I'm reviewing another developer's code, which contains the following: std::string name; ... std::string::size_type colon
I'm reviewing another person's code and can't ask him... What does that line of
Here's the situation. I'm reviewing some SDK code that I didn't write because I've
I'm reviewing some code from my job from another employee and came across a
I am reviewing an example code in a book and came across the following
I'm reviewing some code written by a consultant, and while dozens of red flags
I'm reviewing Java code that essentially is a recurring process that moves/reads/parses some files
After reviewing A LOT of questions and Internet data, I've solved a problem of
Upon reviewing a bunch of MVC style web applications, I'm noticing that it's common

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.