N
N
naneri2014-07-07 09:33:54
Software design
naneri, 2014-07-07 09:33:54

How was the code organized before the use of the MVC architecture in web development?

I started learning web development just a year ago and while getting into the back end, I was forced to understand how MVC works.
Due to the fact that I did not come across other methods of organizing code in web development, I had a question - were there other effective methods of organizing code?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
O
OnYourLips, 2014-07-07
@OnYourLips

Did not have. Look at the code of old open source projects. There is porridge.
Therefore, new versions of some old engines are being rewritten taking into account the knowledge gained.

S
Sergey, 2014-07-07
Protko @Fesor

No. In general, all this is logical and was even before the web, the principles of strong / weak connectivity and all that. In the context of PHP - before PHP was only the letter V in projects on the pluses. Since then a lot has changed.
Well, again, nothing can be more effective than loosely coupled systems, whether you call it MVC or something else, the essence of this does not change.

E
Evgeniy Toropov, 2014-07-07
@evgeniytoropov

Previously, it was difficult to identify any patterns. There were projects where there was a complete mess, when both data processing and their display were in one file. But there were also projects that were somewhat similar to MVC, when templates were separated from the entire site structure into separate files.
Now along with MVC there are such design patterns as:
- MVP - ru.wikipedia.org/wiki/Model-View-Presenter
- MVVM - ru.wikipedia.org/wiki/Model-View-View_Model
- PAC - en.wikipedia. org/wiki/Presentation%E2%80%93abstrac...
- MOVE - habrahabr.ru/post/147038

P
Pavel Volintsev, 2015-08-13
@copist

Prior to PHP 5, there was no OOP, and almost all projection patterns involve the use of objects. They got out as best they could. It turned out differently. Basically what.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question