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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T14:28:42+00:00 2026-06-18T14:28:42+00:00

Note: This is far from a post on x is better than x. Pleased

  • 0

Note: This is far from a post on x is better than x. Pleased dont go there.

I’m a .Net guy and always have been, I’ve used the MVC framework since early version 2 Betas and every version since. Over the past few months I’ve been messing around with Rails and I have a question about architecture that seems to differ hugely between the 2 platforms. (Based on the community and questions on sites such as SO)

In .Net MVC we are encouraged to separate concerns, create separate projects to handle Data Access, Business Logic and the View, we are also told that we should convert our Data objects to ViewModels before they hit the view etc

In Rails, things seem allot simpler, we have an object that contains Validation, DataAccess (Via active record) and other logical properties and we simply ship that to the View and display it.

So why in one framework is this methodology acceptable and in the other it’s deemed wrong and we all end up writing more code and creating more files.

Note : I’m no Rails expert and I really am not trying to compare which is better than x, I am looking at the high level architecture of the 2 frameworks and working out what it’s acceptable in one but not the other.

  • 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-06-18T14:28:44+00:00Added an answer on June 18, 2026 at 2:28 pm

    It depends on what type of application you are developing and how much you expect it to grow.

    For trivial applications there is no need to complicate things with different view and domain models (but you might want to use seperate view models and entities: http://blog.gauffin.org/2011/07/three-reasons-to-why-you-should-use-view-models/).

    For CRUD applications you don’t have to wrap your data access in an abstraction such as repository pattern.

    But if you expect to code anything other than trivial or CRUD applications I encourage you to do so. Patterns and principles aid you the day you want to start to maintain your application. You get smaller more well defined classes and the business logic is made in one place instead of all over your application.

    I’ve written a small blog entry about why I use abstractions: http://blog.gauffin.org/2013/01/data-layer-the-right-way/

    And why encapsulation is important: http://blog.gauffin.org/2012/06/protect-your-data/

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

Sidebar

Related Questions

Note: This question has broadened in scope from previous revisions. I have tried to
I have an Interbase 5.5 database (note: this is a very old version, from
If I set a far future expire header for this file (take note of
NOTE: This is a followup to my question here. I have a program that
Note: This issue appears to be limited to SQL Server 2005 SP2 I have
I have been given an assignment to read mock processes from a txt file
EDIT NOTE: I've not been very clear. I'm trying to start from a single
Note: I'm not considering this is Drupal problem so I post it here on
I have been trying to get a jquery ajax function to return data from
So I know there's a lot of questions regarding this, but so far as

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.