相对于别的php框架来说thinkphp有什么缺点吗?
为什么现在越来越多的php老手(大牛)都是推荐yii,cakephp,ci等框架,而不是国产的较为知名的thinkphp框架呢?是不是thinkphp有什么别的框架所没有的缺点啊?
回复内容:
一个框架弱,要么是架构弱,要么是性能弱~ 优点:中文文档,上手快,部署迅速。缺点:中国人开发的框架,有low的原罪,而且中文文档,看惯了github的表示看不懂。用的人太多,没有逼格。由于是中国人的开发的框架,效率低不解释。操作太傻瓜式了,没有命令行的仪式感,函数命名更是low,到处都是抄袭的痕迹,抄Y家,抄L家。
这么low的一个框架,轻松占据国内php半壁江山,知乎大牛才不care呢,分分钟徒手撸出一个框架,并发量几百万,效率高出原生几条街。 中文注释,单字母函数,版本间一致性低都是缺点 Thinkphp就像是电脑操作系统里的Windows。足够简单,能让你很快地体会到什么是MVC,就像Windows能让你认识电脑是个什么东西,日常能用来干些什么事情。但它就会偶尔要更新一下漏洞,偶尔可能要修修补补升升级什么的,偶尔可能也会被卡一下什么的,但这些都不紧迫,因为你毕竟有框架可以用了。就像你已经有电脑可以用了,出了点什么问题,或者要重装系统,叫个同学就能帮你搞定了,某度一搜都有答案。
如果你有足够知识,你可以去用Linux系统啊,可以去用 MAC OS 啊,甚至可以去用linux命令行。但问题是,一开始就给你一台linux你能不能用,给你一台MAC你会不会用,遇到问题的时候你可以去问谁。
每一个框架都有一个框架的定位,选择自己需要的。可以温顾一下小学的那篇文章《小马过河》
----------------------
一些技术大牛能专注于Windows,能写出进入千家万户的便民软件。
一些装逼人士也能天天捧着个苹果却连个PPT都做不好。
------------------------2016年3月17日----强行更新---BUG报告-----------------------
ThinkPHP在Linux下部署关闭调试后会遇到不少问题要调试、改配置;详情可以看我的博客 大牛亮了 以前一直只用过ThinkPHP,公司项目一般也是自己鼓捣的框架,直到一周前我学习了一下Yii。。。。。顿时觉得TP那真的是。。。。比较适合初学者。 大牛为什么不让你学laravel呢? 大牛怎么没跟你说YAF、SWOOLE。。。 从项目的角度来说。。
thinkphp开发的效率大家是有目共睹的。
会php语法的人培训1周可以上手了。
但是从项目稳定开发情况来看。
thinkphp一直不能提供testunit套件。更不用说behat了。
项目做着做着。。就无法维护了。
这是我在使用和看到的最大问题。 要看跟谁比,tp对于ci这样的轻框架来说,易学,丰富的函数,社区文档这些是优势,但比较yii(1,2),laravel来说,有些地方(没错,我就是说的单字母函数,又面向对象又过程,人不人鬼不鬼)比如配置(比之yii),路由(比之laravel),tp被甩几条街,不灵活,作为php的教程,yii源码更优秀

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











PHP and Python each have their own advantages, and choose according to project requirements. 1.PHP is suitable for web development, especially for rapid development and maintenance of websites. 2. Python is suitable for data science, machine learning and artificial intelligence, with concise syntax and suitable for beginners.

PHP is widely used in e-commerce, content management systems and API development. 1) E-commerce: used for shopping cart function and payment processing. 2) Content management system: used for dynamic content generation and user management. 3) API development: used for RESTful API development and API security. Through performance optimization and best practices, the efficiency and maintainability of PHP applications are improved.

PHP is a scripting language widely used on the server side, especially suitable for web development. 1.PHP can embed HTML, process HTTP requests and responses, and supports a variety of databases. 2.PHP is used to generate dynamic web content, process form data, access databases, etc., with strong community support and open source resources. 3. PHP is an interpreted language, and the execution process includes lexical analysis, grammatical analysis, compilation and execution. 4.PHP can be combined with MySQL for advanced applications such as user registration systems. 5. When debugging PHP, you can use functions such as error_reporting() and var_dump(). 6. Optimize PHP code to use caching mechanisms, optimize database queries and use built-in functions. 7

PHP and Python each have their own advantages, and the choice should be based on project requirements. 1.PHP is suitable for web development, with simple syntax and high execution efficiency. 2. Python is suitable for data science and machine learning, with concise syntax and rich libraries.

PHP is still dynamic and still occupies an important position in the field of modern programming. 1) PHP's simplicity and powerful community support make it widely used in web development; 2) Its flexibility and stability make it outstanding in handling web forms, database operations and file processing; 3) PHP is constantly evolving and optimizing, suitable for beginners and experienced developers.

PHP is suitable for web development, especially in rapid development and processing dynamic content, but is not good at data science and enterprise-level applications. Compared with Python, PHP has more advantages in web development, but is not as good as Python in the field of data science; compared with Java, PHP performs worse in enterprise-level applications, but is more flexible in web development; compared with JavaScript, PHP is more concise in back-end development, but is not as good as JavaScript in front-end development.

PHP and Python have their own advantages and disadvantages, and the choice depends on project needs and personal preferences. 1.PHP is suitable for rapid development and maintenance of large-scale web applications. 2. Python dominates the field of data science and machine learning.

PHP is mainly procedural programming, but also supports object-oriented programming (OOP); Python supports a variety of paradigms, including OOP, functional and procedural programming. PHP is suitable for web development, and Python is suitable for a variety of applications such as data analysis and machine learning.
