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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Leaving PHP is too expensive

22 点作者 cujanovic超过 9 年前

6 条评论

teh_klev超过 9 年前
Already discussed in great detail a couple of days ago:<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11104265" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11104265</a>
brianwawok超过 9 年前
TLDR: PHP is the language supported by <a href="https:&#x2F;&#x2F;forge.laravel.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;forge.laravel.com&#x2F;</a>, and forge is so awesome, I couldn&#x27;t afford to use any other language for side projects.<p>Kind of silly, but also kinda a good point. If a framework is awesome but deployment for side projects is either $50 a month or a huge pain, it may be not worth it for the small fish..
xiaoma超过 9 年前
In the first paragraph, this post looked like it was going to go down the path of discussing local optima—once you&#x27;re skilled with PHP and its toolchain, you have a strong incentive to keep using it.<p>In the past certain events such as the rise of Ruby on Rails made a compelling reason to move, but now PHP has very productive frameworks of its own. Even though a strong case could be made that working in rails is still a bit more productive, PHP is close enough that it&#x27;s a win in the short term.<p>From the other side, PHP isn&#x27;t as performant as Java, Node or Go for certain things, but that gap has also narrowed (especially with PHP7). In this case, the biggest returns from switching would appear only after your app has hit a certain scale and at that point switching is harder.<p>This would have been a compelling argument.<p>What the author argued instead was that Heroku, Azure and other hosts were too expensive and $10&#x2F;month hosting at Laravel Forge locks him into PHP. I don&#x27;t get that at all, especially coming from a Swede.<p>How much is it worth to learn something like Rails that would give you an edge in building an MVP for a side project? How about learning Node and getting an idea of what so much of the development world is using? If you&#x27;re living in a wealthy norther European country, is the hosting cost really something that you want to direct what education you&#x27;ll invest into your career?
fennecfoxen超过 9 年前
The answer is cheap shared hosting that supports old-school standards: CGI (or FastCGI), and your choice of Perl&#x2F;Python&#x2F;Ruby&#x2F;NodeJS&#x2F;Go&#x2F;Rust&#x2F;etc. For a hobbyist project with minimal traffic, you can afford to deal with the application&#x27;s startup latency. (Java &#x2F; Scala are probably out, though. Don&#x27;t know about Erlang, haven&#x27;t used it).<p>Dreamhost is affordable enough and will do such things.
评论 #11119701 未加载
评论 #11119668 未加载
wildster超过 9 年前
There are hosting companies such as Webfaction that have great reasonable rails or Django hosting.
评论 #11120231 未加载
andy_ppp超过 9 年前
I couldn&#x27;t help think &quot;Staying with PHP is too expensive&quot; while reading this.
评论 #11119783 未加载
评论 #11119602 未加载