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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:25:03+00:00 2026-05-23T01:25:03+00:00

I recently read this blog entry by Hadi Hariri: That dreaded M in ASP.NET

  • 0

I recently read this blog entry by Hadi Hariri: That dreaded M in ASP.NET MVC. Hadi surveyed fellow ASP.NET MVC developers about the types of models they use in the applications. One of his survey questions read:

If you bind to Domain Model, how do you deal with extra data such as country list?

And one person wrote select Other and wrote in: “conventions.” Following that, Hadi wrote:

I’ve actually found another way to solve this problem, partially based on conventions.

And then later says:

Maybe we should take the concept of conventions more seriously than just what folders our Views, Controllers and Models reside in. Maybe we should push conventions to the limit and see if we actually reduce this friction.

What does he mean by using “conventions” to solve this problem? I’m not familiar with the term in this context.

Thanks

  • 1 1 Answer
  • 2 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-23T01:25:03+00:00Added an answer on May 23, 2026 at 1:25 am

    Convention in this context could mean many things. Loosely it is just a solution to the problem that is not built in but looked up using names.

    An example of this already in MVC is that a route to a controller named “Home” is mapped to a class named “HomeController”. Extending this idea to the selected country and country list problem you can think of many solutions.

    One example would be given a model:

    public class UploadModel 
    {
      public string Country {get; set;}
    }
    

    We may define options for this model via a convention on the naming where it looks for a model with the word “Options” after its name and then matches the property on the model with a like named property on the options model.

    public class UploadModelOptions 
    {
      public IList<string> Country {get;set;}
    }
    

    This may not be a great convention but is an acceptable example of what the author may be talking about.

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

Sidebar

Related Questions

I recently read a blog in Nodejitsu and I am wondering how this piece
I recently read in this tutorial that certain jQuery leaks are trackable through the
I recently read the blog posts on Pushing Pixels that describe how to achieve
I recently read in Professional C# 4 and .NET 4 that: You can never
I recently read this list and I noticed that almost everything I studied from
I recently read a post online about rotating text with css. This appealed to
Recently I read a book( CleanCode ) in this book, FUNCTION SHOULD DO ONE
I recently read through Code Complete, and it recommends that I create a project
I recently read in a presentation on Scribd that Facebook had benchmarked a variety
I recently read that getters/setters are evil and I have to say it makes

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.