Table of Contents
回复内容:
Home Backend Development PHP Tutorial 我感觉看DZ论坛的的源码简直就像看天书一般,跟现在的MVC开发流程完全不同,没有什么控制器模型的概念啊?

我感觉看DZ论坛的的源码简直就像看天书一般,跟现在的MVC开发流程完全不同,没有什么控制器模型的概念啊?

Jun 06, 2016 pm 08:24 PM
php php framework thinkphp

我感觉看DZ论坛的的源码简直就像看天书一般,跟现在的MVC开发流程完全不同,没有什么控制器模型的概念啊?

随便一个文件,里面函数写的都看不懂,哪是哪儿,不知道是干什么的,是DZ太复杂了吗?

回复内容:

我感觉看DZ论坛的的源码简直就像看天书一般,跟现在的MVC开发流程完全不同,没有什么控制器模型的概念啊?

随便一个文件,里面函数写的都看不懂,哪是哪儿,不知道是干什么的,是DZ太复杂了吗?

复杂度不是大程序组织不好的借口。DZ那个样子几乎都只是历史遗留的后果:

  • 长年的开发历史

  • 巨大的用户量

  • DZ自己开发者素质的相对低下

  • 巨大的开发者量 + 扩展开发者素质的相对低下
    (低端开发者换来的扩展生态的繁荣,虽然畸形,也不好随意放弃对吧)

  • 外加上(投靠腾讯)跟爹加入大组织之后带来的变数

每一个都让DZ想做修改和重构也很艰难。另外还有一点就是,DZ官方™自己想不想改还两说呢……


实际上DZ这样的产品,在迭代轨迹上如同WordPress——

  • 诞生时足够先进

  • 但随着时间推移,定位和品味本身落后了

  • 自己却受制于用户增长、历史积累和产品生态,无法以一个革命性的姿态迎头跟上

  • 最后只能困在旧的路线上修修补补

  • 可是这样反倒对旧的用户群形成了有效的保护

  • 旧用户群的拥护,更加坚定了旧路线走到黑的决心

曾经有不少大热的产品试图打破这个循环,但结果基本上不是很成功,两个典型的例子:

  • Py3K 试图后向不兼容的取代 Python 2.x 最后落得社区分裂,鸡飞蛋打
    我感觉看DZ论坛的的源码简直就像看天书一般,跟现在的MVC开发流程完全不同,没有什么控制器模型的概念啊?

  • LoveLive! Sunshine!! 和 偶像大师 灰姑娘女孩 新企划,都没有能够达到甚至追近原版的高度
    我感觉看DZ论坛的的源码简直就像看天书一般,跟现在的MVC开发流程完全不同,没有什么控制器模型的概念啊?我感觉看DZ论坛的的源码简直就像看天书一般,跟现在的MVC开发流程完全不同,没有什么控制器模型的概念啊?

所以我们不得不承认的一个现实就是:任何一个产品都是有其不可改变的基本点(这些基本点可能是各种内容——目标需求、用户定位、技术根基等等)。如果妄想脱离开这些基本点,那么不是推不动,就是失败,或者是分裂。

也许这就是宿命和轮回——产品总会生存、绚烂、落后、死亡,唯有历史的车轮滚滚向前不曾停息。

37signals公司的《Rework》也这样告诉过我们:

谁管他们在做什么,做好你的产品。当你要以“iPod杀手”或“下一个Pokemon”为目标的时候,你就已经死定了。

在我的解读看来,这个除了商业竞争的哲学之外,应该也包含着“不要追随已经过时的产品定位”这层意思吧。

dz是一个2001年诞生的项目,那时的PHP版本是PHP4,你看到的都是老系统的通病。

dz不具备参考性
不算优秀的代码案例~
我是这个项目的老大 我马上重写这个项目~

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Repo: How To Revive Teammates
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian Dec 24, 2024 pm 04:42 PM

PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

CakePHP Date and Time CakePHP Date and Time Sep 10, 2024 pm 05:27 PM

To work with date and time in cakephp4, we are going to make use of the available FrozenTime class.

CakePHP File upload CakePHP File upload Sep 10, 2024 pm 05:27 PM

To work on file upload we are going to use the form helper. Here, is an example for file upload.

Discuss CakePHP Discuss CakePHP Sep 10, 2024 pm 05:28 PM

CakePHP is an open-source framework for PHP. It is intended to make developing, deploying and maintaining applications much easier. CakePHP is based on a MVC-like architecture that is both powerful and easy to grasp. Models, Views, and Controllers gu

CakePHP Creating Validators CakePHP Creating Validators Sep 10, 2024 pm 05:26 PM

Validator can be created by adding the following two lines in the controller.

How To Set Up Visual Studio Code (VS Code) for PHP Development How To Set Up Visual Studio Code (VS Code) for PHP Development Dec 20, 2024 am 11:31 AM

Visual Studio Code, also known as VS Code, is a free source code editor — or integrated development environment (IDE) — available for all major operating systems. With a large collection of extensions for many programming languages, VS Code can be c

CakePHP Logging CakePHP Logging Sep 10, 2024 pm 05:26 PM

Logging in CakePHP is a very easy task. You just have to use one function. You can log errors, exceptions, user activities, action taken by users, for any background process like cronjob. Logging data in CakePHP is easy. The log() function is provide

CakePHP Working with Database CakePHP Working with Database Sep 10, 2024 pm 05:25 PM

Working with database in CakePHP is very easy. We will understand the CRUD (Create, Read, Update, Delete) operations in this chapter.

See all articles