219mze 发表于 2024-10-4 12:26:20

为啥 php 还有这么多人在用啊?


    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">2023年都过完了,看招聘,php 都还是有<span style="color: black;">非常多</span><span style="color: black;">机构</span>在用。想<span style="color: black;">晓得</span>为啥这些<span style="color: black;">机构</span>不换成 node, java 啥的啊。php 是不是太老了?</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;"><span style="color: black;">研发</span>人员最容易被割韭菜,微服务、低代码、云原生、saas化这些天坑,只要一进去,这人三两年内基本就报废了。而<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>的业务,别说一万QPS了,那怕是每小时有一两个客单价高点的成交业务,<span style="color: black;">机构</span>基本就发财了。</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">尤其是那种<span style="color: black;">仅有</span>三五个后端PHP程序员的小团队,配几个前端,轻<span style="color: black;">容易</span>松就能支撑<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>还能出国旅游,<span style="color: black;">定时</span>团建吃烤肉。反而是十几个java那种,<span style="color: black;">各样</span><span style="color: black;">高挑</span>上概念全面铺上,看人家大厂怎么搞自己就生搬硬,没日没夜加班,一上线,喔豁,没客户!没量!直接把<span style="color: black;">机构</span>整裁员倒闭,这种大批量生产模式简直和现代<span style="color: black;">商场</span>南辕北辙。</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;"><span style="color: black;">做为</span>一个自己开<span style="color: black;">机构</span>的老板<span style="color: black;">运用</span>PHP超过5年,当然<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>的<span style="color: black;">重点</span>业务还是大部分用PHP写的。</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">我<span style="color: black;">为么</span><span style="color: black;">运用</span>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>运营了几十个APP和网站,一个创意从出来到<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>运行一堆刚上线的应用。一台4核2G的服务器我<span style="color: black;">倘若</span><span style="color: black;">安排</span>超过10个Java应用<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>量很低,我<span style="color: black;">能够</span><span style="color: black;">安排</span>100个都不是问题。这是我从成本上来<span style="color: black;">思虑</span>。</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;"><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>了。</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">Java程序员工资比PHP高,<span style="color: black;">一样</span>的应用<span style="color: black;">研发</span>速度上PHP有时候<span style="color: black;">能够</span>略快于Java<span style="color: black;">或</span>等同。这就存在性价比的问题。</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">总而言之,前期<span style="color: black;">制品</span>原型期PHP足够支撑,<span style="color: black;">制品</span>中期有充分的性能来支撑<span style="color: black;">制品</span>的过渡到其它高性能的架构,这就足够了。至于语法什么的怎么没人谈Haskell呢?</span></span></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p26-sign.toutiaoimg.com/tos-cn-i-axegupay5k/192fd6b3ea0f47f4bdc38bea896d25a2~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728207040&amp;x-signature=zcLiZQvIRC0zkCSJcXWjit9NhBw%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">来百度APP畅享高清<span style="color: black;">照片</span></span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">说实话,php成本<span style="color: black;">便是</span>低,真正懂点程序的老板都愿意招php。</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">我看市面上<span style="color: black;">哪些</span><span style="color: black;">需要</span>,基本上php都能搞定,php性能<span style="color: black;">亦</span>没<span style="color: black;">那样</span>差,php无非是代码层面的东西,真正的性能瓶颈还是在数据库,项目搭起来,mq,缓存这才是用来<span style="color: black;">处理</span>性能问题的利器。</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">我之前用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>2个后端加1个前端做的~~后端<span style="color: black;">安排</span>都是<span style="color: black;">机构</span>买的云服务,我来搭建的~~</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">别说什么php工程化<span style="color: black;">欠好</span>,<span style="color: black;">此刻</span>大<span style="color: black;">都数</span>项目无非是controller调个service,<span style="color: black;">繁杂</span>一点的<span style="color: black;">亦</span><span style="color: black;">便是</span>service再互相调调,撑死了<span style="color: black;">亦</span>没几层。<span style="color: black;">晓得</span>为啥java<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>无论啥功能都要vo,dto,repository,service,controller,mapper,dao,test来一遍~~一行的功能代码<span style="color: black;">亦</span>要分成一个类~~写完了之后还自己欣赏一番~~他以为自己写得明明白白的,等后人<span style="color: black;">守护</span>的时候,就可以很<span style="color: black;">容易</span>,然而想多了吧,无论你写得代码有多清晰,后人永远优先<span style="color: black;">选取</span>重写~~</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">至于强类型这件事,其实弱类型<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>的代码?</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">别说什么最新的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>语言简单的话,<span style="color: black;">例如</span>用php写的,你重构起来还是更方便<span style="color: black;">有些</span>的,<span style="color: black;">倘若</span>用的语言<span style="color: black;">繁杂</span>,重构起来简直是火葬场。之前有人嘲笑php重构火葬场,java重构就容易了?</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">真正像课本上学的那样的,什么样的<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>化了。有<span style="color: black;">有些</span><span style="color: black;">地区</span>,用p股想都<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>。</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">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>真的说php有啥不适合做的事,可能<span style="color: black;">亦</span><span style="color: black;">便是</span>爬虫了吧,这块用</span><span style="color: black;">golang</span><span style="color: black;">或</span>python弥补一下就好。当然<span style="color: black;">倘若</span>不是专门做爬虫的,仅仅是爬个少量数据的话,开多个命令进程完全够用了。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">我不否认java确实是比php性能更好更严谨工程化更好的语言,<span style="color: black;">非常多</span>php做不了的<span style="color: black;">行业</span>,java确实<span style="color: black;">能够</span>做。但问题是<span style="color: black;">此刻</span>市面上的大部分<span style="color: black;">制品</span>,php足够了。</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">总有<span style="color: black;">非常多</span>人说<span style="color: black;">非常多</span>大<span style="color: black;">机构</span>都把php转成java了,<span style="color: black;">然则</span>你<span style="color: black;">不可</span>否认<span style="color: black;">非常多</span>项目确实是用php赚到钱了,有钱了之后随便你怎么折腾呗,你转python,你转go,你自己<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></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;"><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>把程序员分等级,例如p6,p7啥的。<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><span style="color: black;">倘若</span>你自己说在<span style="color: black;">机构</span>做到了P几,做到了L几,自己脸上<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>不了。php和java的<span style="color: black;">选取</span><span style="color: black;">亦</span>是如此,上过大学的都认为java是正统,<span style="color: black;">由于</span>从学校里就学,大学课本里就有,java被<span style="color: black;">非常多</span>程序员当<span style="color: black;">成为了</span>最高的追求,学java,走java学习路径是个正统路线,认为学php属于歪门邪道,<span style="color: black;">不足</span>系统,永远都做不专业。</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;"><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>很简单了。就像springboot的<span style="color: black;">显现</span>,基本上有手就行吧。。。<span style="color: black;">因此</span><span style="color: black;">显现</span>了<span style="color: black;">非常多</span>老java程序员不乐意了,不行!你只会springboot不<span style="color: black;">能够</span>,你要学会看springboot的源码!其实大<span style="color: black;">都数</span>人即使看了springboot的源码,<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>了~~让他用springboot中的思想在<span style="color: black;">实质</span><span style="color: black;">研发</span>中,<span style="color: black;">基本</span>办不到~~</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">说了这么多,只想说,php<span style="color: black;">此刻</span>依然有很大的<span style="color: black;">功效</span>,什么时候java能把php的优点<span style="color: black;">所有</span>干掉,我才觉得php真该被淘汰了。</span></span></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/3055a3bbb86f451ca49329cf39c68021~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728207040&amp;x-signature=VWSLmv9nvTmxo5PmC9XNJTMtqbg%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">被node和java坑过的想告诉你,创业<span style="color: black;">机构</span>无脑选PHP,别跟钱和时间过不去!</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;"><span style="color: black;">非常多</span>人问<span style="color: black;">为何</span>,16年用php做的b2b站点<span style="color: black;">此刻</span>还跑的稳稳的,<span style="color: black;">一月</span>就上线了,半个月调调bug,<span style="color: black;">始终</span>迭代运行到<span style="color: black;">此刻</span>,<span style="color: black;">日前</span>还是<span style="color: black;">机构</span>的支柱盈利项目。后面鬼迷心窍用java搞b2b家装类站点,一组java断断续续半年,线上还有一堆bug,前端大佬ts+vue3玩的飞起,切页面都玩不会,之前php大佬2天切好<span style="color: black;">况且</span>对接好的页面,他<span style="color: black;">这儿</span>要10天,现实告诉我,java和ts写出来的才是屎山,那波人干掉了,再招来的java和前端<span style="color: black;">基本</span>接不住。</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">后面整组java<span style="color: black;">所有</span>干掉,<span style="color: black;">她们</span>效率实在太低,<span style="color: black;">况且</span>继续留着<span style="color: black;">机构</span>营收都有问题,于是重新招了一个12年经验的php大佬重写,人家12年java+7年php经验,前后端都能写,我告诉他薪水给2倍,但1个半月要稳定上线,别用go、java、ts,就laravel,我<span style="color: black;">为何</span>这么告诉他,<span style="color: black;">咱们</span>16年上线的项目,<span style="color: black;">此刻</span>每月净收入30万+,日ip<span style="color: black;">亦</span><span style="color: black;">不外</span>才8000,后面事实证明我是对的,2020年上的子类目垂直项目,<span style="color: black;">此刻</span><span style="color: black;">亦</span>是月入20万+,<span style="color: black;">况且</span>人员精简后<span style="color: black;">咱们</span><span style="color: black;">安稳</span>的渡过了疫情三年,之前20多号人,精简后剩下7个人,薪水<span style="color: black;">仅有</span>之前的三分之一,全员在家办公,办公室+水电费一年就省了20万+,别说互联网<span style="color: black;">机构</span>裁员黑,有时候不降本增效,<span style="color: black;">机构</span>就活不下去!!!</span></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">创业<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></span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">还有一点,告诉前端,seo能带来不错的自然流量,<span style="color: black;">必定</span>要做好,<span style="color: black;">因此</span>别用vue打包,就用后台语言渲染。</span></span></p>




j8typz 发表于 2024-11-2 08:38:07

外链发布社区 http://www.fok120.com/
页: [1]
查看完整版本: 为啥 php 还有这么多人在用啊?