V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
haoliang
V2EX  ›  PHP

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

  •  
  •   haoliang · 2022-06-08 19:10:55 +08:00 · 2514 次点击
    这是一个创建于 659 天前的主题,其中的信息可能已经有所发展或是发生改变。

    原文在这里

    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 接口,框架也就帮忙给代码逻辑分下层,它不分,我们也能自己分啊。

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

    Yii 用了十年有,其实不用 jq 也不是不可以,国内有很多写的开源或者网上能找到源码的避源 PHP 代码都没有用 jq ,他们都写的还行。
    ywisax
        3
    ywisax  
       2022-06-08 23:21:47 +08:00   ❤️ 1
    等了几年 Yii3 ,最终还是老实换 Laravel/Symfony 了
    fxjson
        4
    fxjson  
       2022-06-09 00:57:19 +08:00 via Android
    yii2 七八年了吧,前端组件的年代,并且现在流行 ioc,yii3 又难产,是有点儿过时
    wowbaby
        5
    wowbaby  
       2022-06-09 09:23:10 +08:00   ❤️ 1
    yii2 能满足我的需求,一直在用,稳定 bug 也少,jq 等很多组件不想用不用就是,主要是组件高度灵活,Laravel 个人感觉嵌套太深,还是不太好用。
    cai314494687
        6
    cai314494687  
       2022-06-09 10:22:15 +08:00
    Yii2 技术确实过时了,Yii3 迟迟不出来,创始人强哥也没管了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3215 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 11:37 · PVG 19:37 · LAX 04:37 · JFK 07:37
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.