4zhvml8 发表于 2024-10-4 22:54:06

为么越来越多企业弃用 PHP 运用 Java?


    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://mmbiz.qpic.cn/mmbiz_jpg/T0baAbk8MoibBLN4ficpwMJz8QWt3Hh0lVCLesGh7gbTcconKtMsfSUAUHNOuRAC6znhl656kibfs8EncUbj8Yn9g/640?wx_fmt=jpeg&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">既然说越来越多的<span style="color: black;">机构</span>弃用php转向java,那就说明之前有<span style="color: black;">非常多</span><span style="color: black;">机构</span>在用php。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">她们</span>弃用php就说明<span style="color: black;">她们</span>遇到了问题,我经历过的php最火的时候是12到15年,<span style="color: black;">而后</span>职位数量急转直下。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">这个时间段移动互联网很火,<span style="color: black;">非常多</span>做app的创业者都以为自己是风口的猪。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">见到投资人的时候就说我做了个app,你准备投多少钱,未来可能是百亿市值。语气好不霸道!</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">那样</span>投资人<span style="color: black;">亦</span>不是<span style="color: black;">白痴</span>,你得有<span style="color: black;">制品</span>呀,要有<span style="color: black;">制品</span>就得<span style="color: black;">研发</span>,<span style="color: black;">研发</span>就需要技术人员。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">想<span style="color: black;">研发</span>的快,性能又<span style="color: black;">不可</span>太差,人员要好找,上手要容易,</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">再加上培训<span style="color: black;">公司</span>一吹,php培训三月月薪过万,<span style="color: black;">非常多</span>卖菜的,送水的,搬砖的,高中辍学的,等等等,都抱着月薪过万的梦想去培训php,培训<span style="color: black;">公司</span>赚的盆满钵满。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://mmbiz.qpic.cn/mmbiz_jpg/T0baAbk8MoibBLN4ficpwMJz8QWt3Hh0lVQSFsuOia25yyfq4EDv0Zsx1trgUmZGVsGBiaAd6CsyJMotOnkicO7TQsw/640?wx_fmt=jpeg&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">我记得当时我<span style="color: black;">第1</span>份工作,一个同事是厨师转行的。后来我做组长的时候被人亲切的叫“导演”,<span style="color: black;">由于</span>PHP=拍(Pai)黄(Huang)片(Pian)。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">说完php火的历史(pc时代php<span style="color: black;">亦</span>很火,动态网页<span style="color: black;">研发</span>,但我没经历过),<span style="color: black;">那样</span><span style="color: black;">来讲</span>说<span style="color: black;">为何</span><span style="color: black;">非常多</span><span style="color: black;">机构</span>转向java, <span style="color: black;">亦</span>说说我<span style="color: black;">为何</span>转向java。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">php职位变少当然跟风停了,摔死了<span style="color: black;">非常多</span>猪<span style="color: black;">相关</span>,</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">然则</span>现有的<span style="color: black;">机构</span><span style="color: black;">为何</span>还要转?我觉得有以下<span style="color: black;">原由</span>。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">语言层面</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">所说</span>动态语言一时爽,重构起来火葬场。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">不仅</span>重构起来,<span style="color: black;">守护</span>起来<span style="color: black;">亦</span>是费脑筋的事情,<span style="color: black;">倘若</span>一个变量在运行过程中改变了类型,可能<span style="color: black;">导致</span><span style="color: black;">有些</span>意外的结果,</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">然则</span>程序依然运行正常,排查起来让人抓狂 。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">再者运行效率,<span style="color: black;">非常多</span><span style="color: black;">机构</span>发展到<span style="color: black;">必定</span>阶段,用户量上来之后,php单体应用<span style="color: black;">已然</span><span style="color: black;">没法</span>支撑,</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">那样</span>集群,集群相当于把单体应用多<span style="color: black;">安排</span>了几台<span style="color: black;">设备</span><span style="color: black;">罢了</span>,<span style="color: black;">咱们</span>之前<span style="color: black;">便是</span>这么干的。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">然则</span>单体应用会越来越大,越来越难以<span style="color: black;">守护</span>,想按业务拆分起来,<span style="color: black;">发掘</span>并<span style="color: black;">无</span><span style="color: black;">尤其</span>好的例子和<span style="color: black;">方法</span>。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">不像java, 运行效率高,很容易分模块,做成微服务,量大的业务独立模块单独<span style="color: black;">安排</span>,单独<span style="color: black;">守护</span>。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">市面上较多成熟<span style="color: black;">方法</span>和例子,<span style="color: black;">能够</span>借鉴。并且java的强类型,<span style="color: black;">能够</span>在编译期就确定<span style="color: black;">非常多</span>潜在的bug<span style="color: black;">危害</span>。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://mmbiz.qpic.cn/mmbiz_png/T0baAbk8MoibBLN4ficpwMJz8QWt3Hh0lVAUrCzialn3j4FksKMxcDwibky7CiaibYXfuxeXzMosgO73BCZO6uYqmuHA/640?wx_fmt=png&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1" style="width: 50%; margin-bottom: 20px;"></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">人才质量</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">海量</span>的php程序员非科班出生,要么自学要么培训班。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">php容易上手却不<span style="color: black;">表率</span>容易写好,这一点初期php程序员可能不服,认为很简单,</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">但动态语言太灵活,<span style="color: black;">因此</span><span style="color: black;">每一个</span>人写的代码很烂<span style="color: black;">亦</span>能运行,后期项目代码简直不堪入目。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">而java相对<span style="color: black;">来讲</span>人员质量和个人水平<span style="color: black;">需求</span>比较高,写出来的代码<span style="color: black;">倘若</span><span style="color: black;">不外</span>关很难运行起来。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">并且<span style="color: black;">各样</span>设计模式,数据结构,网络协议等我敢说<span style="color: black;">非常多</span>php程序员<span style="color: black;">始终</span>从未接触过,怎么能做好良好工业设计呢,上来<span style="color: black;">便是</span>一顿造。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">将来</span>发展</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">机构</span>到了<span style="color: black;">必定</span>发展<span style="color: black;">周期</span>,发展起来<span style="color: black;">通常</span>会<span style="color: black;">需求</span>高性能,可拓展,易<span style="color: black;">守护</span>,</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">此时</span>候<span style="color: black;">已然</span>不是快速迭代抢市场的时候,而是可<span style="color: black;">连续</span><span style="color: black;">提升</span>进步的时候,业务和技术架构<span style="color: black;">亦</span>要跟着发展。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">而高性能,可拓展,易<span style="color: black;">守护</span>等这一点是php很难做到的。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">招人难度</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">我之前做过一段时间面试,php很好招人,<span style="color: black;">然则</span>招5年以上php技术经理,架构师却很难招,</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">有人5年经验,其实是一年经验重复了5年。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">大部分面试的对高并发,微服务,分布式都没有<span style="color: black;">实质</span>做过,<span style="color: black;">或</span><span style="color: black;">非常多</span><span style="color: black;">乃至</span>没概念。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">相反java却<span style="color: black;">累积</span>了<span style="color: black;">海量</span>优秀人员,架构师,高级工程师都很好招。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">我关注的几家以前用php的<span style="color: black;">机构</span>,随着业务发展<span style="color: black;">亦</span>在慢慢转换到java技术栈。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">例如</span>丁香园记得以前<span style="color: black;">无</span>java岗位,</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">例如</span>美柚杭州以前<span style="color: black;">亦</span>是只招php。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://mmbiz.qpic.cn/mmbiz_jpg/T0baAbk8MoibBLN4ficpwMJz8QWt3Hh0lVzfmxVdroWPsEibYHyrer4sjeF78Yqia3TibmDDhricDs4Z0nUHyhw5Iy9A/640?wx_fmt=jpeg&amp;tp=webp&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1" style="width: 50%; margin-bottom: 20px;"></p>




页: [1]
查看完整版本: 为么越来越多企业弃用 PHP 运用 Java?