The proper MVC pattern [closed] - model-view-controller

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I have come across both the following approaches.
To my understanding the Model and the View doesn't communicate with each other and all communications should be done through controllers thus Method 1 is the proper way. But I have come across both approaches on various articles online.
What is the proper way to implement the MVC Architecture?
Thank You

i think the 1st diagram is actually an MVP (model view presenter). see this question which eventually links here and contains this diagram for an VMP pattern with a passive view:

Related

UI Design for a page [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 days ago.
Improve this question
As UI is one of the most import items in customer gaining, please take a look at this page and tell me pros and cons.
tank you very much indeed
https://pentazoom.ir/run-shopping-site/
I was trying to design a user friendly page. I don't know whether I was successful or not. I want the expert's opinion

Is it necessary to memorize the codes of data structures? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
Is it necessary to memorize the code of data structures like linked lists, dynamic arrays , circular linked list, queues , stacks , Graphs etc. Or just the basic knowledge of code is enough ? What kind of questions can be asked in a job interview regarding data structures ?
I don't know what your (future) employer may ask, but generally, I'd say no. You have to know how they work and what they're used for, expecially which data structure serves which purpose with its advantages/disadvantages. If you know that, you'll be able to write the code of such a structure without having it memorized - because you know how it will work.

When to split programs into two repositories? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
If you have 2 applications that share a lot of code. What is the general guideline before splitting the 2 applications into two different repositories?
Say they share about 80% of code and forms etc. Is it a good idea to split them or keep them together?
If they share 80% of the same code, then yes, split them into three repositories:
the common code becomes a library
first application, including the library
second application, including the library
https://en.wikipedia.org/wiki/Don't_repeat_yourself

What are some practical use cases of GraphQL? When should one choose GraphQL over REST? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
As I am interested in the concept of graphql I want to understand the benefits of graphql and when to use it?
There are many excellent online resources on this subject, for example https://philsturgeon.uk/api/2017/01/24/graphql-vs-rest-overview/
Main points from this article:
REST and GraphQL are totally different
GraphQL isn't a magic bullet, nor is it "better"
You can definitely use both at the same time
GraphQL is dope if used for the right thing

Algorithm Visualization [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I wonder how it is possible to make a visual presentation of algorithm.
I found a very good visualization in Wikipedia like following:
If you know how to make a similar presentation, please let me know.
There are lots of libraries in various languages that can be used to visualize whatever you want, but according to this page:
http://en.wikipedia.org/wiki/File:Sorting_quicksort_anim.gif
The picture you're looking at was:
Created with: Ruby 1.8.4, RMagick.
Just for reference.

Resources