108 points · by fomb · 12y ago · 87 comments
It's good to have options.
This is odd since most people don't think of equating WordPress with PHP, but WP gets a TON of love from the development community.
in many ways, WP exemplifies PHP core devs' philosophy of "dont ever break existing ecosystem compat". PHP has some major WTF that lingers on because of this. i'm very surprised that it has been progressing at all considering how stubborn they are on even fixing completely obvious shit like "unexpected comma" errors written in Hebrew. wordpress takes this attitude to a whole new level :(
there is great, maintainable software written in clean* PHP; the only thing i've learned from WP is how not to write software.
I'd like to look at a good example to give it another chance.
It's a Rails-like framework for PHP, and seems to be pretty well designed. I wouldn't start a new PHP project without it.
The bare metal lack of abstraction in PHP that other languages have to have but PHP doesn't can be one of its strengths.
The idea is that Laravel gives you a huge solid launching pad and takes the busy work out of making a website run.
Which is an interesting question in and of itself - what's the minimum viable feature set for a modern PHP framework? I would say a PSR autoloader, Composer and a url router, and everything else is superfluous. Most people wouldn't even count that as a microframework, and I understand that. And it probably wouldn't scale for crap either.
Although one thing I really like about laravel, which technically has nothing to do with laravel, is Artisan. Using .phar files as command line applications doesn't get as much attention as it should, maybe.
Fast and a really good documentation.
Something like Wordpress is in my opinion not built for readonly paas,more for classic/upload with FTP workflow. And Heroku IS expensive while being very easy to use when one think his app as readonly backed up by cdns and databases.
I deployed a few Symfony projects on Heroku,it works well. But why choose PHP when I can choose my entire stack since not limited by host restrictions?
It's an interesting experiment nevertheless.
Some would say its part of their "all platforms" deal, but then I'd argue its not much different than AWS. I'm wondering if they can bring some of the large portion of PHP websites that still run today onto their platform as a way to increase active and paying users.
> I'd argue its not much different than AWS.
Could you expand here? What about the platform do you find similar and different? Which of that is good and bad? What were you using each to accomplish?
I'm happy to answer questions about Heroku. But I do like hearing unfiltered impressions and experiences before I taint them with my own world views.
Note: I'm currently experimenting with Heroku for a side project app and I've used AWS before. I'm a "cloud computing" newbie when it comes to running a web setup in the cloud.
I'm a developer currently using a lot of languages like python, c++, php, coffee script, & java. I've never understood "cloud computing" and why everyone wants to be on it. It's always been a disaster to setup a php application (for me personally). AWS was a pain in the ass to get phpMyAdmin setup and then they over billed us while on the free tier and we quit and went back to standard web server.
I've briefly looked into Heroku and getting it running with php and I understand the basic git push to Heroku "workflow". However, I quickly became lost once I started looking into getting phpMyAdmin on Heroku. I couldn't find documentation or videos on youtube. Am I just to comfortable with phpMyAdmin in my little webserver? Does Heroku and cloud computing offer better tools / different tools for phpMyAdmin? I haven't seen a good explanation for AWS or Heroku on how to setup a webserver from start to finish to mimic a traditional simple web server.
TLDR; I get frustrated trying to setup cloud computing for simple projects when non technical people want to "be in the cloud".
Heroku probably does some nice workflow things, which is a feature, not a product. Whatever "timesavings" the tooling provides is an AWS feature release away from having parity.
Personally, I've only tested Heroku a couple of years ago out of curiosity.
So here is Heroku, working closely with facebook to bring the PHP platform to Heroku, while all along other hosting and infrastructure companies don't even have to worry about supporting PHP because they sell you scaled box-space, not application stacks.
I guess my whole point is "if you're building your apps with PHP these days, you are probably the type of shop that would benefit from the value-add of Heroku." That is, small to medium businesses with 1-2 web guys running a PHP app who don't know shit about hosting, deployment, or scaling.
Does that make sense?
It's hard to sell Heroku which is why we have the free trial dynos. I find most people either love us see us as a huge value add, or don't understand why anyone would use us.
We're not simply a small abstraction layer, instead we support deployment at the application layer. Which again basically sounds like meaningless fluff unless you've already bought into the product. If I had to sum it up, i would say we're a company that provides a collection of small, sharp, extremely well integrated tools that seek to make your production development experience more pleasant.
For Ruby you get the app setup which is huge, but then you also get process monitoring out of the box so if your app goes down due to hardware failure we get paged at 3am instead of you. It's extremely easy to do things like have multiple staging servers, and I really like our CLI.
Instead of trying Heroku, I would recommend starting off trying out Heroku Postgres and using it through whatever server you deploy to right now. Get the credentials from the CLI.
On a production DB you get forks, and followers. We also have point in time recovery which is pretty fancy. Hacker destroy your DB? Forgot to schedule a backup? Rollback to 1 second before the deletions, and done. If you like Heroku Postgres, then I would recommend trying the dynos, and if not: agree to disagree.
For PHP the sell is management, stability, and consistency. If you're on a shared host your performance is very inconsistent as well as your uptime. If you're on a VPS you have pretty decent performance but now you have to manage everything manually, and even then there's that uptime thing we're not 5 nine's but hopefully above most: https://status.heroku.com/uptime.
I honestly don't think we're right for every application, every developer, and every scenario. When we are though I hope to provide the best experience possible.
http://fabien.potencier.org/article/71/sensiolabs-raises-5-m...
I haven't seen any mention of that on HN.
Symfony components are used in Laravel and upcoming Drupal 8. The funding above means that SensioLabs will continue to work on solid platform(s) that will bring higher quality development and standards to PHP.
Honestly, I'm pretty happy for that.
Heroku held its own for a while. I'd recommend it if you need to do some quick testing and get people on it to start, but I wouldn't pay for it.
> PHP developers are makers at heart.
What is the difference between a PHP developer and any other developer? If they tried to stick this in the middle, I could swallow it but opening sentence is just ridiculous.
> What is the difference between a PHP developer and any other developer?
It's exactly the type of response I was hoping for. In early drafts we got a common "big whup" response from some readers. Most posts on PHP these days only do well when they bash the language, very few focus on __why__ they use PHP: which is to create things. Yes, all developers create things, and PHP developers do as well. This sentence serves to validate PHP and their developers. So to answer your question:
> What is the difference between a PHP developer and any other developer?
Nothing.
Even if you still don't buy my explanation. Maybe you can stomach some non-wordsmithed docs: https://devcenter.heroku.com/articles/getting-started-with-p...
Either way - thanks for taking the time to explain.
Some hooks are better than others. I'm an engineer before a writer. It sucks that we have to market tech things, but the sad truth is most announcements that have no "hype" get no hype. I do a bunch of open source work, and some projects I promote and they do well, others I don't promote and they don't do as well.
Generally at Heroku I try to only put one or two flashy sentences in. The rest should be direct substance delivery, though that's not always the case. Thanks for taking the time to click the link, read, and comment!
The Ruby community is for Ruby. Period. A company can't dictate their own policies based on ideas of just one community.
The sentence just sounds as if you paid $5 someone to write you an intro to a technical matter because you didn't know what to to use.
The sentence is general and without point. Because it is coming from a technical company and is aimed towards technical people, yes, I find it ridiculous.
If the Ruby on Rails blog made a post saying "Rubyists are makers at heart." would you complain?
My bias: 80% hate, 18% apathy, and 2% curiosity into what facebook is doing with the language.
In this context, I think disclosing my emotions towards the language tells others that while I dislike PHP the way Heroku phrased their "makers at heart" was a positive sentiment that I could agree with. It seemed relevant.
Why do I hate it at 80%?
Because it burned me in the past. Because it makes doing things right hard. Because other people make the same mistakes over and over and yet I still have to use it on occasion.
It's an emotion built up after years of negative experiences. My emotional experience with PHP went from Interested to Excited to Cautious to Wary to Hateful.
For me, PHP was the friend that promised the moon and when he did show up he came with week-old dried out cheese instead of the moon that he promised.
Cumulative bad experiences, especially when larger factors (legacy decisions, inertia, switching costs, etc) force you to continue having those bad experiences, leads to negative emotions.
Call it extreme dislike if you want, but for me it is a lesser form of hate.
Note that this is all personal description. Perhaps it was the timing (04-08) perhaps it was my level of experience, perhaps it was bad luck. I realize that some people have unanimously or mostly positive experiences with PHP and I'm not trying to diminish their experiences.
Playing devil's advocate, perhaps it's even noble to hate a non-sentient thing which one believes impedes the progress of sentient things.
Not putting much actual stuff out there, but always preaching about Monads, purity, laziness, Typeclasses, etc.
(Joking, but only half)