TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

PHP 8.3

118 点作者 daco超过 1 年前

14 条评论

egeozcan超过 1 年前
PHP was, and perhaps still is despite stiff competition from frameworks like Next.js, the ultimate backend-for-frontend (BFF) solution. It&#x27;s a server-side, super-flexible layer ideal for connecting various components and delivering static HTML with JavaScript enhancements.<p>While there&#x27;s nothing inherently wrong with using PHP for tasks Java already handles well, given Java&#x27;s proficiency in its domain, it&#x27;s not always necessary to replicate these functions in PHP.<p>However, there&#x27;s a tendency to undervalue PHP-based applications, often labeled as &#x27;home.php-style&#x27; apps. It&#x27;s true they can become unwieldy and unmaintainable if not properly managed. Adhering to good practices is essential, but it&#x27;s also important to remember not every project needs a complex solution like bootstrapping a Laravel project for a simple task list. Everything comes with its own set of trade-offs!
评论 #38404142 未加载
评论 #38404436 未加载
评论 #38404844 未加载
评论 #38404757 未加载
评论 #38404515 未加载
评论 #38404393 未加载
评论 #38404178 未加载
shortsunblack超过 1 年前
We&#x27;ve seen real change in rhetoric in web space. It seems like PHP (through Laravel in particular) is so back into being vogue. And that brings me joy.<p>HTMX, Laravel, Livewire, alphine.js are all the things that are what these insane JS SPA frameworks aren&#x27;t. Simple and intuitive.
评论 #38404776 未加载
评论 #38405015 未加载
评论 #38404902 未加载
评论 #38407216 未加载
jbirer超过 1 年前
Recently got a freelance Wordpress job after like 10 years of inactivity in that segment, I was surprised by how good PHP has become. I am hoping that it&#x27;ll continue in this direction.
评论 #38403668 未加载
评论 #38403467 未加载
评论 #38403430 未加载
Freaky超过 1 年前
Looks like my fix for CPU feature detection under clang made it in, so such builds should now have much faster addslashes&#x2F;base64&#x2F;etc.<p>They&#x27;re still disabled by default on FreeBSD - my PR is pending, and the patch has been in testing in ports for a while: <a href="https:&#x2F;&#x2F;github.com&#x2F;php&#x2F;php-src&#x2F;pull&#x2F;12288">https:&#x2F;&#x2F;github.com&#x2F;php&#x2F;php-src&#x2F;pull&#x2F;12288</a>
plz-remove-card超过 1 年前
I started using PHP for work back in the PHP 4 days when I started my career. As I grew in my abilities, appreciation for more advanced OOP concepts, and stricter typing, so did PHP, we kind of evolved together over the years. However, I&#x27;d be hard pressed to choose PHP for a green field project today.<p>I wonder if I&#x27;d have just started off immediately using something like Java if I would have been as effective? Early PHP&#x27;s sloppiness (paired with early javascript) gave me a lot of flexibility and allowed me to learn things more deeply.
评论 #38406589 未加载
评论 #38406812 未加载
ransom1538超过 1 年前
I coded php for years. Generally speaking, php teams (using smarty + composer) are faster. They don&#x27;t have the ci&#x2F;cd drama of java. PHP is made for the internet (unlike python) and is fast (unlike rails). It also doesn&#x27;t suffer version drama (python2 vs python3).
评论 #38406390 未加载
评论 #38404761 未加载
mschuster91超过 1 年前
At that point, I ask myself whether it&#x27;s possible to interface strongly-typed PHP with Java. Like, either a PHP frontend for JVMs (just like Kotlin and whatnot), or run Java code inside PHP in a run-and-throw-away model.<p>Almost everything but async&#x2F;threads that I use in Java stuff has an 1:1 mapping.
评论 #38403953 未加载
评论 #38403559 未加载
评论 #38403552 未加载
评论 #38403733 未加载
评论 #38403525 未加载
ulrischa超过 1 年前
PHP is so great. And there are many libraries that go far beyond just websites. What I miss are sole good libraries for NLP - especially for more languages than English. Or do I just don&#x27;t know them?
xhkkffbf超过 1 年前
How big are the performance gains? I&#x27;ve got a big block of legacy code so I&#x27;m not as interested in the new coding features. But if it brings better performance I&#x27;ll install it.
评论 #38408486 未加载
nilslindemann超过 1 年前
Python: preinstalled. Node: downloadable binaries, edit .bashrc. Rust, Nim, Deno: bash one-liner to install, edit .bashrc. PHP: Nine pages of super complex installing instructions.
评论 #38407071 未加载
评论 #38406021 未加载
diath超过 1 年前
Why the slash backward slash for override?
评论 #38404010 未加载
mrcino超过 1 年前
Is it backward compatible?
评论 #38404900 未加载
评论 #38404888 未加载
评论 #38404779 未加载
phplovesong超过 1 年前
sooo many better alternatives to PHP in 2023.
评论 #38408495 未加载
评论 #38404821 未加载
volkadav超过 1 年前
&quot;taerDown&quot;<p>good to see that php&#x27;s upholding the tradition of putting the K in Quality ;)
评论 #38403815 未加载
评论 #38403803 未加载