l14107cb 发表于 2024-10-4 15:12:39

一年翻一倍!神奇的PHP,变老了,亦更离不开了!


    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p26-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/42e623ac8ded44978386cc3577132401~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728215982&amp;x-signature=WSRSX1BUaUxb2GQLcGS8bMumkwE%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></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 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></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">不久前,国外网站DevJobsScanner针对过去14个月(2021.10-2022.11)的数据进行了分析,从1200万个<span style="color: black;">研发</span>人员职位<span style="color: black;">需要</span>中,筛选出了对编程语言有<span style="color: black;">知道</span><span style="color: black;">需求</span>的工作机会,从中总结提炼了2022年度<span style="color: black;">需要</span>量最大的8种编程语言。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">其中,Javascript/Typescript毫无悬念地占据了主导地位,有近三分之一的工作机会需要<span style="color: black;">把握</span>Javascript/Typescript知识,而Python和Java则分别是2022年第二和第三大<span style="color: black;">需要</span>的编程语言,C#紧随其后。</span></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/68c1740a84c64cb7b2505c1730c19842~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728215982&amp;x-signature=81g2tKQ5DZiTtUzOPHNVVhV3DCo%3D" style="width: 50%; margin-bottom: 20px;">
      <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">2022 年编程语言及其各自<span style="color: black;">需要</span>的完整图表</p>
    </div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">比较令人意外的是,PHP位列第五。这门有着近三十年历史的编程语言曾几度被唱衰,但在这次调查中,<span style="color: black;">科研</span>人员<span style="color: black;">发掘</span>,依然有22.6万份工作是面向PHP的,占比约为10%。<span style="color: black;">况且</span>值得<span style="color: black;">重视</span>的是,2021年10月,PHP在所有<span style="color: black;">研发</span>就业机会中所占的比例约为5%,但到2022年11月,这一比例却几乎翻了一番。</span></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/231a64ca78c04a3393212f8b86401a04~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728215982&amp;x-signature=XtB%2FoVGjL4tojAl0sDXD6erMbe4%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;">1、老而弥坚的语言:曾<span style="color: black;">加入</span>厌弃前五名</h1>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">“PHP是世界上最好的语言。”在编程语言界,这是一个颇有年头的梗,<span style="color: black;">乃至</span>发展到后来,多少带了点黑色幽默。这些年,关于“PHP将亡”、“PHP已死”的言论并不鲜见,<span style="color: black;">不外</span>时<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;">来讲</span>,依然有不少<span style="color: black;">研发</span>人员并不待见PHP,在Stack OverFlow的调查中,PHP<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;">回顾一下PHP的发展历程,不可谓不精彩,其兴衰起伏<span style="color: black;">能够</span>说折射着<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;">PHP的创始人是出生于格陵兰岛的程序员Rasmus Lerdorf。1994年,Rasmus出于自己的工作需要<span style="color: black;">研发</span>了PHP,但他在后来的采访中透露,他从来<span style="color: black;">无</span>想过把它变成一种编程语言。最初,这个工具套件中并<span style="color: black;">无</span>任何东西是为了<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;">爱好</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><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></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>这种“无心插柳”的<span style="color: black;">行径</span><span style="color: black;">作为</span>了PHP的起点。而在PC互联网时代,PHP<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;">彼时,线上80%的网站都是用PHP语言<span style="color: black;">研发</span>的,淘宝、雅虎和<span style="color: black;">外链论坛: http://www.fok120.com</span>都有PHP的身影。当时用PHP做网站前后端不分离,而HTML+CSS+JS+jQuery<span style="color: black;">作为</span>了<span style="color: black;">研发</span>者的标配技能。举个例子,当时如日中天的社交软件Facebook有专门的团队对PHP做了二次性能优化。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">非常适用于快速建站的PHP在当时的确<span style="color: black;">叫作</span>得上“世界上最好的Web语言”。直到移动互联网兴起,一批以腾讯为<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>分离,PHP<span style="color: black;">亦</span><span style="color: black;">起始</span>没落,在随后的几年中,<span style="color: black;">快速</span>被Java、Python等其它语言攻城略地。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><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>心中,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>,PHP的官方团队<span style="color: black;">始终</span>在<span style="color: black;">连续</span><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;">如今的PHP除了在性能上有所<span style="color: black;">提高</span>外,在Laravel、ThinkPHP等框架方面<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;">在2022年12月发布的PHP 8.2版本中,新增支持在traits中定义常量、引入了“Random”扩展和“read-only”类、Disjunctive Normal Form (DNF) 类型,更新了内置web服务器的MIME类型表,减少了<span style="color: black;">各样</span>函数返回的字符串的内存占用,初步支持macOS Instrument的JIT性能分析生成,为Linux启用arc4random_buf,为随机字节引入Glibc 2.36以上版本。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">PHP的更新节奏不疾不徐。<span style="color: black;">能够</span>看到,在新语言层出不穷的编程世界中,PHP呈现了一种“老而弥坚”、“壮心未已”的姿态。</span></p>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;"><span style="color: black;">2、</span>重回前十,归因还是赚“快”钱</h1>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">当前,虽然PHP的市场占有率有所下滑,但依旧是Web<span style="color: black;">研发</span>的<span style="color: black;">重点</span><span style="color: black;">研发</span>语言。不久前,Tiobe<span style="color: black;">颁布</span>的2023年1月编程语言排行榜中,PHP爬到了第十位,堪<span style="color: black;">叫作</span>“稳稳的幸福”。</span></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/e9b583b93f534e3ebef347db34e3a033~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728215982&amp;x-signature=u2iLy%2FD6fXNE7mqAf0R5IEEwaR4%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;">Tiobe<span style="color: black;">颁布</span>2023年1月编程语言排行榜</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">但PHP还是经常为人所诟病。典型的一点是,PHP<span style="color: black;">重点</span>适用在中并发以下的Web项目快速<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></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>,PHP这门语言的优缺点都非常鲜明,这<span style="color: black;">亦</span>造<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;">PHP的长处在于:</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;">第1</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></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>速度快,<span style="color: black;">研发</span>成本低:一个小中型Web项目,一至三个月就<span style="color: black;">能够</span>出来。<span style="color: black;">况且</span>PHP的经典组合“LAMP(Linux + Apache + Mysql + PHP)”均是开源免费的,在<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;">因为</span>PHP是运行在服务器端的脚本,<span style="color: black;">能够</span>运行在UNIX、LINUX、WINDOWS、Mac OS下。新发布的PHP 8.2版本 初步支持Windows for ARM64平台上的跨平台创建,分配JIT缓冲区Opcache靠近PHP.text字段,以<span style="color: black;">准许</span><span style="color: black;">运用</span>直接的IP<span style="color: black;">关联</span>调用和<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;">PHP的短板<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;">第1</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>期,在流行前沿,背靠巨头好乘凉时,收入自然水涨船高,但当技术过了巅峰期,正在下坡,从业者里的“大神”比重自然下滑,收入水平<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;">因为</span>入门PHP不需要用到底层特性,这让单一的PHPer很难<span style="color: black;">得到</span>接触底层代码的机会。<span style="color: black;">倘若</span>不想在一棵树上吊死,就必须在学完PHP后再去学习其他语言,<span style="color: black;">例如</span>Java、Go之类的,<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;">研发</span>。就像有的<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 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></p>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;">3、最好的语言:被唱衰的“命硬”玩家</h1>
    <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>,关于编程语言的鄙视链<span style="color: black;">始终</span>都有,<span style="color: black;">无</span>什么语言会<span style="color: black;">得到</span>所有人的好评。有人讨厌PHP,就像有人讨厌JavaScript、C++或Python<span style="color: black;">同样</span>稀松平常。但不可否认的是,PHP的确非常适合Web<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></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><span style="color: black;">运用</span>PHP的你,如今有什么感悟?”这一问题下,<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仍然是快速<span style="color: black;">研发</span>项目的首选。即使被唱衰<span style="color: black;">那样</span><span style="color: black;">数年</span>,PHP如今还是很活跃,就像下图中这位<span style="color: black;">伴侣</span>所描述的——真是“命硬”。</span></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-qvj2lq49k0/5489bcfb88de4b4fbdadfac287a8cb05~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728215982&amp;x-signature=PhjI8D2sXVPkDAKtbz5KW9QuESs%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></p>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;">参考链接:</h1>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">https://www.devjobsscanner.com/blog/top-8-most-demanded-languages-in-2022/</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">https://zhuanlan.zhihu.com/p/144582666</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">https://www.zhihu.com/question/549502049</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">https://baijiahao.baidu.com/s?id=1751714923061441454</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>: 51CTO技术栈</span></p>




j8typz 发表于 2024-11-2 07:12:36

回顾过去一年,是艰难的一年;展望未来,是辉煌的一年。

nqkk58 发表于 2024-11-5 08:13:55

外链发布社区 http://www.fok120.com/
页: [1]
查看完整版本: 一年翻一倍!神奇的PHP,变老了,亦更离不开了!