适用于高级PHP开发人员的MVC [英] MVC for advanced PHP developers

查看:58
本文介绍了适用于高级PHP开发人员的MVC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要更多有经验的程序员的帮助.我想提高我的MVC技能.但是我找不到有关MVC的Google优秀教程. Google始终会为初学者提供MVC".

I need some help from more experienced programmers. I want to improve my MVC skills. But I could not find a good tutorial on Google for MVC. Google always gives "MVC for beginners".

我了解MVC是什么并且可以实现,但是我没有足够的经验来从事OOP实用的工作.

I understand what MVC is and I can make it, but I'm not experienced enough to do something practical in OOP.

如果有人知道有关MVC的良好的面向对象的教程,请把我定向到正确的位置—我在寻找良好的链接,书籍等.

If anyone knows a good object-oriented tutorial for MVC, please direct me to the right place — I'm looking for good links, books etc.

推荐答案

包含仅PHP材料的链接用 php 标记,以便于识别.

Links, that contain PHP-only materials, are marked with php for easier identification.

在全面了解OOP之前,您甚至无法开始研究MVC.其中包括OOP实践(依赖注入重构 a>)原则( SOLID SoC LoD )和普通模式(不,单例不是面向对象的模式).

You cannot even begin to delve into MVC before you have comprehensive understanding of OOP. That include OOP practices (dependency injection, unit testing, refactoring) principles (SOLID, SoC, CQS, LoD) and common patterns (and no, singleton is not an object-oriented pattern).

MVC是一种高级架构设计模式,需要扎实的理解. 不适合初学者或小型"hello world"应用程序.当简单地遵循OOP惯例变得太松散而无法控制代码库时,可以使用MVC在代码库中添加其他约束.

MVC is an advanced architectural design pattern, which requires solid understanding. It is not meant for beginners or for tiny "hello world" applications. One uses MVC to add additional constraints to the codebase, when simple adherence to OOP practices becomes too loose to control the codebase.

我能为您建议的最好方法是,首先扩大您对面向对象代码的了解:

The best I can suggest for you would be to begin by expanding you knowledge regarding object oriented code:

  • Clean Code I: Arguments
  • Clean Code III: Functions

以上两个讲座应涵盖基础知识.然后继续:

The two lectures above should cover the basics. And then move on to:

  • Inheritance, Polymorphism, & Testing
  • Unit Testing
  • Global State and Singletons
  • Don't Look For Things!

当您理解了本系列中所有解释的内容后,您可以进行以下扩展:

When you understand all that was explain in this series, you can expand on:

  • Don't be STUPID, Grasp SOLID! php
  • The Principles of Agile Design
  • Advanced OO Patterns (slides) php
  • Beyond Frameworks (slides) php
  • Agility and Quality php
  • Beyond Design Patterns php

此外,我强烈建议您阅读(按此顺序):

Also, I would strongly recommend for you to read (in this order):

  • Design Patterns Explained
  • GUI Architectures
  • Inversion of Control Containers and the Dependency Injection pattern
  • Patterns of Enterprise Application Architecture
  • Domain-Driven Design: Tackling Complexity in the Heart of Software

PS::您可能还会看这本书(谨慎地,因为它有问题):

P.S.: you might also take a look at this book (cautiously, because it has issues): Guide to PHP Design Patterns php

这篇关于适用于高级PHP开发人员的MVC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆