偶然发现 yii2 被它的一位核心开发者在三年前说是 `outdated technology`

2022-06-08 19:10:55 +08:00
 haoliang

原文在这里

It is sad to admit, but Yii is outdated technology, which does not keep up with the modern trends. The core team stick to the BC-keep policy too much since 2.0 release, which make Yii2 lacking of many modern approaches and features. While it is common requirement of the modern web project to provide "single page application" based on modern JS frameworks like ReactJS, EmberJS, VueJS and so on, Yii keeps enforcing JQuery, facilitating its usage and requiring its installation. The BC breaking changes, which are supposed to change the situation, like accepting PSR standards for caching and logging, separating JQuery from the Yii core and so on, are frozen till the future 3.0 release, which can not be expected in any near future.

之前写 php 的时候大部分时间在用这个框架,用着还是蛮舒服的;话虽如此,如果现在让我用的话,我估计会用 symfony 组件自己攅一套。 对于这位核心开发者的话,我觉得无所谓:一来,可能我离得远了;二来,我之前的印象中 yii 的所有组件都是可以替换的,psr 这些自己实现或引个包就行啦;三是 php 写 http 接口,框架也就帮忙给代码逻辑分下层,它不分,我们也能自己分啊。

2557 次点击
所在节点    PHP
6 条回复
Mitt
2022-06-08 19:18:03 +08:00
主要是 Yii3 一直没出来都五六年了,要说过时也是正常的
encro
2022-06-08 21:39:25 +08:00
就是不喜 laravel 那套,做同一个事情有很多方式。

Yii 用了十年有,其实不用 jq 也不是不可以,国内有很多写的开源或者网上能找到源码的避源 PHP 代码都没有用 jq ,他们都写的还行。
ywisax
2022-06-08 23:21:47 +08:00
等了几年 Yii3 ,最终还是老实换 Laravel/Symfony 了
fxjson
2022-06-09 00:57:19 +08:00
yii2 七八年了吧,前端组件的年代,并且现在流行 ioc,yii3 又难产,是有点儿过时
wowbaby
2022-06-09 09:23:10 +08:00
yii2 能满足我的需求,一直在用,稳定 bug 也少,jq 等很多组件不想用不用就是,主要是组件高度灵活,Laravel 个人感觉嵌套太深,还是不太好用。
cai314494687
2022-06-09 10:22:15 +08:00
Yii2 技术确实过时了,Yii3 迟迟不出来,创始人强哥也没管了。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/858240

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX