问题描述

WordPress Core 的设计模式是什么?作为 this Stack Overflow question shows,WordPress 不遵循 MVC 模式; 然而,开发人员可以编写 plugins and themes that follow MVC 。但是我的问题仅适用于 WordPress Core,而不是任何其他可能或可能不遵循 MVC 模式的 add-ons,主题,扩展,插件或 forked projects

如果 WordPress Core 不遵循 MVC 设计,那么它遵循什么样的设计模式呢?

最佳解决方案

肉丸意粉

The term “spaghetti with meatballs” is a pejorative term used in computer science to describe loosely constructed object-oriented programming (OOP) that remains dependent on procedural code. It may be the result of a system whose development has included a long life cycle, language constraints, micro-optimization theatre, or a lack of coherent coding standards.

它也有一点通心粉混合在…

http://en.wikipedia.org/wiki/Spaghetti_code#Spaghetti_with_meatballs

参考文献

注:本文内容整合自 Google/Baidu/Bing 辅助翻译的英文资料结果。如果您对结果不满意,可以加入我们改善翻译效果:薇晓朵技术论坛。