| |

VerySource

 Forgot password?
 Register
Search
View: 4155|Reply: 26

asp.net MVC was asked to be depressed. .

[Copy link]

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-2-17 11:30:01
| Show all posts |Read mode
Go to the interview today, ask me, explain the three-tier structure
I said, "These three layers are the presentation layer, the business layer, and the data layer.
The presentation layer writes some user interfaces, the business layer writes the application business code, and the data layer writes what the database accesses. "

He said that I was wrong. There are many things in the real three-layer structure, which is not so simple.

How to explain mvc in the end? MVC is just to put the corresponding code in different places, isn't it enough ??? There are so many things?
Reply

Use magic Report

1

Threads

6

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-4-20 12:00:01
| Show all posts
Almost the same.
Reply

Use magic Report

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-4-20 18:00:01
| Show all posts
No, he drew a picture for me, has three circles, represents these three layers, and then painted a lot next to these three circles. I have n’t heard anything about it. . how depressing. . .
Reply

Use magic Report

0

Threads

322

Posts

115.00

Credits

Newbie

Rank: 1

Credits
115.00

 China

Post time: 2020-4-20 20:45:02
| Show all posts
He must be talking about the architecture of mvc

Microsoft's asp.net and java struct are based on this structure

Simply put, it is the module (business code), view (interface), and controller (related operations that handle http requests, such as Request.Response, etc.)
What I said may not be rigorous enough, you can search for standard answers online.
Reply

Use magic Report

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-4-21 23:15:01
| Show all posts
MVC architecture and three-tier structure are not the same thing? ? ? ? ? ? ? ? ? ? ?

Is it not the same thing at all, is still similar, is also different?
Reply

Use magic Report

1

Threads

6

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-4-22 13:45:01
| Show all posts
Then I painted a lot next to these three circles

It is estimated to be a specific method.
Reply

Use magic Report

0

Threads

64

Posts

35.00

Credits

Newbie

Rank: 1

Credits
35.00

 China

Post time: 2020-4-25 22:00:01
| Show all posts
If you compare many control patterns in design patterns with .net delegation / event theory articles, you will understand that many of the models that look very deep actually rely on "control classes" to win points. If you take a break for each control class in the pattern with delegates / events, you will find that the pattern is actually very simple and there are not so many gimmicks.
Reply

Use magic Report

0

Threads

64

Posts

35.00

Credits

Newbie

Rank: 1

Credits
35.00

 China

Post time: 2020-4-26 18:00:02
| Show all posts
We have repeatedly emphasized that your code does not need to call the page mechanism under asp.net, it will call your code. You only need to assign the code to the most appropriate event according to your responsibilities, and do not force everything to do everything in one event (such as page_load).

As for the interface to be separated from business logic, I believe many people have this concept.

I think that if you understand the specific development framework, forget about the low-level framework of MVC, it is better than those who quarrel with MVC but invent MVC there all day.
Reply

Use magic Report

0

Threads

64

Posts

35.00

Credits

Newbie

Rank: 1

Credits
35.00

 China

Post time: 2020-4-26 21:15:01
| Show all posts
If I interview, I will ask "How does asp.net know to call the SelectChanged event of DropdownList without calling other events?", "How does WinForm program and asp.net program share business processing class library?" Talk about the specific and comprehensive questions as much as possible in the chat, and try not to ask the "how to explain MVC" question that is too loud and has only a little book concept.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-4-28 22:00:01
| Show all posts
How does asp.net know to call the SelectChanged event of DropdownList without calling other events? "," How do WinForm programs and asp.net programs share business processing class libraries? ",

I don't know how to say these two?
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list