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

  • Home
  • SEARCH
  • 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 3948376
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T01:22:01+00:00 2026-05-20T01:22:01+00:00

This is more of a theoretical question rather than language specific, but I’m mostly

  • 0

This is more of a theoretical question rather than language specific, but I’m mostly referring to AS3.

Let’s say I have an app that shows buttons through a couple of levels of navigation.

For example artistsAlphabetical->albums->songs or songsAlphabetical->song or albumsAlphabetical->album->song

so we’d set up a model(Data) with all the songs (the lowest common denominator – it would have the artist/album/year etc. info within the song object)

Let’s say we don’t have a dataset for the albums and need to extract that from songs. or we do have a datasaet and need to match them up.

Where should that fall under? Model or Controller?

I can find reasons for either, but am wondering what the “correcter” way would be.

Next we have the View with all the buttons to do the sorting.

When you click on the sort button Artists-A – that’s the View sending a message to the Controller to do something (get alphabetical list of artists that start with A). The end result should be a new (paginated view if necessary) with buttons for each artist.

Which part of MVC should be responsible for each step?

Generating a list of artists that start with A

would it be the controller that says – ‘Hey model – Artists that start with ‘A’ NOW!’

or, would it be more like ‘Model – send me a list of all the Artists, I need to find the A-dawgs’?

essentially should the model do the sorting (and cache it if possible/needed) or should the logic be under the Controller, and the Model can store the cache?

So once we have a list of the artists, we need to create a button for all the ones that fit on the screen plus some previous/next buttons. Who should be creating the Buttons?

Should there be a View Controller? A Sub-Controller that only deals with the logic needed to create the views? Or would the logic be part of the View? It seems to me that the app’s Controller would be all like ‘not in my job description… I gave you the list you needed rest is up to you’

I feel like I’m conflicted between two views of MVC, one (mvC) – where the Controller is working like a motherlicker, and the Model is a glorified data holder and the view manages DisplayObjects. Or (an MVc) where the controller is the manager/delegator that makes sure that the Model and the View communicate properly, so that the model and view would have a fair amount of logic, and the controller would handle communication and delegate top level interaction.

While I am doing most of my stuff in AS3, I am curious how other languages would handle this. For example, in PHP Frameworks, you wouldn’t need to worry about the button logic and event handling as much as with as3, where you need to watch Garbage collection, so the workload of one component there might be different than in a Cinder++, processing or actionscript app.

  • 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-20T01:22:02+00:00Added an answer on May 20, 2026 at 1:22 am

    I don’t know AS3. I do both Spring MVC/Java, which really lets you do either approach, and also Ruby on Rails, which favors smart models and dumb controllers. I like the smart model/dumb controller approach better.

    So to me, anything to do with sorting and filtering the data should absolutely be done in the model, as should the process of extracting Albums from a list of Songs.

    In Rails, I would put the process of creating the set of buttons in the view layer without question. If there’s actual logic involved, that would go into a view helper method.

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

Sidebar

Related Questions

This is more a theoretical question than a practical one, but given I undestand
This is a more theoretical question, not a specific scenario: Let's assume, we have
EDIT: This question is more about language engineering than C++ itself. I used C++
This is a theoretical question more than anything else. In the case of C#
This is more of an academic inquiry than a practical question. Are there any
This is more of an generic XML Schema question, but if and how do
This is more an observation than a real question: MS-Access (and VBA in general)
Ok this is more of a computer science question, than a question based on
So this is IT more than programming but Google found nothing, and you guys
this is more a theoretical question i asked myself. I remembered that BinarySearch of

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.