4 ms·
I've just moved from years of PHP to RoR. And there's a lot that I miss about PHP. Deploying Rails Apps is still a motherfucking nightmare - I hanker for the
by AlexMuir 15y ago
I've just moved from years of PHP to RoR. And there's a lot that I miss about PHP. Deploying Rails Apps is still a motherfucking nightmare - I hanker for the days of just git pulling and changing a couple of config vars. I can google any error message in PHP and find dozens of answers - not so with Rails, where I end up really have to scrabble around for a solution.
But there's also a lot to love about RoR. I just needed to calculate the number of business days between two dates - step forward the business_time gem. Five mins later and I've got a stable, tested solution.
I've built and sold businesses on PHP, I run some sites on it still. But I've never got into testing with PHP, it just isn't seamless. And because of that, I've always hated going back into the code and improving things later - projects have tended to stagnate. With RoR you have to make an effort NOT to write tests, and making minor tweaks isn't like moonwalking across a minefield.
If you just want to whack up a prototype right fucking now then PHP and a Framework are for you. But if you think that you're working on something more than a punt then either put in the effort to write decent tests in PHP, or use a framework that will force you to do so.
In summary - PHP and Yii Framework do almost all of what Rails do. It's fast, stable, clean and easily deployed. But the weight of the developer community is now behind Rails. And Ruby is a neat language that I enjoy working with.