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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T15:39:16+00:00 2026-05-11T15:39:16+00:00

In general, I prefer to be verbose with .NET class and instance names, but

  • 0

In general, I prefer to be verbose with .NET class and instance names, but some times (to quote Mike Woodhouse):

Over-verbosity tends to conceal syntax, and syntax is important.

The first place I felt like I really strayed into the over-verbosity regime is upon implementing the Model-View-ViewModel (MVVM) pattern in Silverlight and WPF apps.

For example, I start with an EnumerableRange model object:

public class EnumerableRange<T> : IEnumerable<T> {      public T Start{ get; set; }     public T Stop{ get; set; }     public long Count{ get; set; }     ... } 

Then, I want to create a control that will allow me to surface this class for user input. Thus, I create a pair of view-related classes:

  1. an EnumerableRangeControlView UserControl (in XAML), and
  2. a POCO EnumerableRangeControlViewModel

Now, I use this pair in the parent View and ViewModel, respectively. With MVVM the view instance doesn’t need a name, but my ViewModel instance is now named something like:

IndependentVariableEnumerableRangeControlViewModel.

Things are starting to get out of hand! What would you do?

  • 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. 2026-05-11T15:39:17+00:00Added an answer on May 11, 2026 at 3:39 pm

    I propose the following:

    1. Drop the word ‘Control’ from View/ViewModel classes and instance names altogether. ‘View’ and ‘ViewModel’ clearly state the class purposes.

    2. (Optional) Consistently adopt a convention to post-fix ViewModel instances with ‘VM’.

    In the example above, the instance name

    IndependentVariableEnumerableRangeControlViewModel  

    becomes a much more readable

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

Sidebar

Related Questions

In general I come across this a lot. Some of my co-workers prefer very
Brief blurb, My skill in .net has been called innovative but I would prefer
I am new to web development with java in general, but I have some
Possible Duplicate: Prefer composition over inheritance? A general question which I stumbled upon several
I'm new to Razor templates in Umbraco (and in general), but I prefer using
general question is i like to build logger class that writes to single log
In general, are WCF Data Services interoperable or Microsoft specific? This ADO.NET Blog link
Obviously, it's easier to do with some developers, but I'm sure many of us
I am developing an app and am looking for some general guidance: The app
I prefer to use long identifiers to keep my code semantically clear, but in

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.