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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Learn PHP the Right Way

35 点作者 schlonger000910 个月前

8 条评论

hu310 个月前
This playlist is a great overview.<p>I watched it myself and learned a thing or two despite also working with PHP professionally for years.<p>Highly recommend to also stop after each video and try to implement a quick example of what it is teaching.
muglug10 个月前
Passively watching YouTube is probably not the right way to learn any progamming language.
评论 #41160749 未加载
calvinmorrison10 个月前
PHP in 2024 is really nice. It&#x27;s come a long way but is still very rock steady.
replwoacause10 个月前
I like PHP, and guess what? I also like PowerShell for web apps. I don&#x27;t really care what anybody says—I can build fast in PowerShell. My clients are happy, it&#x27;s simple to debug, and I can tap into .NET classes when necessary. PowerShell + HTML + Alpine = productivity. I&#x27;m not building the next Netflix or Amazon and the end-user isn&#x27;t going to notice or care that I haven&#x27;t selected Node and React.<p>I just can&#x27;t get behind the complexity of build steps and compiling, all just to get a website online. It&#x27;s crazy. The simplicity that PowerShell (and PHP) bring to this process can&#x27;t be overlooked... so I like to beat on this drum whenever I get the chance.<p>Choose the tool that is right for the job, and PHP can be that tool in a surprising number of cases.
评论 #41161695 未加载
cletus10 个月前
It&#x27;s disappointing that PHP still gets hate in 2024. PHP of 2024 isn&#x27;t the PHP of 2004. As someone with a bunch of experience in Java, C, C++, Python, PHP, Hack, Javascript and a handful of others, PHP is (IMHO) almost a perfect language for serving HTTP requests because of these characteristics:<p>1. Essentially an HTML document is a valid PHP program. This is an excellent starting point for beginners;<p>2. PHP has a stateless API that means there&#x27;s basically zero start up cost, unlike, say, loading libraries like you do in Java or even Python;<p>3. There&#x27;s no threading within the context of a request. This is what you want 99.99% of the time. Hack extended this with cooperative async&#x2F;await;<p>4. Because of (3) everything you allocate&#x2F;use within a request context just gets thrown away. There&#x27;s no persistent state (eg like Java&#x27;s servlet model). Again, this is almost ideal;<p>5. Because of all the above, PHP hosting is incredibly cheap and accessible.<p>The two things I&#x27;d probably add to PHP come from Hack: a modern type system with nullable support and the collections (vec, map, set).
评论 #41165206 未加载
评论 #41161067 未加载
pluc10 个月前
...why take a title that&#x27;s already quite famous in the industry?<p><a href="https:&#x2F;&#x2F;phptherightway.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;phptherightway.com&#x2F;</a>
Alifatisk10 个月前
Take me back to the LAMP stack days, good times
djaouen10 个月前
The only reason to learn PHP in 2024 is if you are specifically targeting PHP jobs. Learning PHP is like learning Perl: suboptimal.<p>Edit: Jesu X. Chris, I didn’t mean to start a language war. Learn PHP if you want, I won’t stop you lol
评论 #41160514 未加载
评论 #41160807 未加载
评论 #41160587 未加载
评论 #41160501 未加载
评论 #41160555 未加载
评论 #41160878 未加载
评论 #41160601 未加载
评论 #41160510 未加载
评论 #41160584 未加载
评论 #41160465 未加载