How is MVC more convenient?

I have a large website on which I have time to transform into a beautiful customizable structure that I can build for my needs. I want to create my own, and not use something like Smarty, because I would like to ...

  • know how all his guts work.
  • cut everything and all the bells and whistles
  • find out just for kicks

But, having created it in different ways, several times ... I always feel that for the amount of "convenience" that it offers, the code is becoming more and more inflexible, the attempt to track files becomes triple (especially if you are a lone developer in a project) and there is no real amazing documentation there.

At this moment I really need to convince ... how will this change my life, again?

+3
source share
6 answers

The answer to this question is already , but to put a thinner point in it, I think that the only attribute that covers when / is not MVC is scalability:

  • MVC allows a clear separation of duties (for example, front-end and base coders).
  • MVC is a template that provides consistent coding habits.
  • Maintaining health is increasing because it is easier for a new project participant (who understands MVC) to understand the code base.

If you are the sole owner of the code and do not anticipate other people joining in the near future, then you will not need it.

+7
source

( ) - /. , MVC.

  • , . , , , , - , ,
  • , "". , , , , , .

, , - . MVC , , , . = .

+4

, , , , , , . Design Patterns, , , , .

, .

+1

MVC , . , , .

MVC , . "-" . CLI -.

MVC. MVC.

+1

MVC, , , , , MVC, , .

, , , .

+1

MVC HMVC , . , , , , , .

, ? , , . drupal . - Kohanaphp.com, ORM ( ), MVC. , , open source . , , , -: D , , xss, ..

: D

+1
source

Source: https://habr.com/ru/post/1724997/


All Articles