News for hackers. Stuff that matters.
Re:PHP is much better than what you think by skrebbel on Wednesday July 04, 2012 @04:38AM (#4198381)
For reference's sake, this article is written by Fabien Potencier, the creator of the symfony framework. This guy's probably single-handedly responsible for lifting the PHP community to a higher level, by making great software (which, when he started, was pretty unique, with horrible hacks-upon-hacks like CakePHP being the norm), and by showing people how to do so.
Re:PHP is much better than what you think by jonwinstanley on Wednesday July 04, 2012 @05:59AM (#4198688)
A great part of Fabien's work is that he pushes people onto the latest releases. Symfony2 cannot be used without PHP5.3 which is great of keeping people's servers more up-to-date.

Frameworks such as CodeIgniter were guilty of keeping compatibility with PHP4 for far too long.

The world of PHP is a nicer place if you are on the latest version and are aware of the latest features such as namespaces etc.

Re:PHP is much better than what you think by scott_w on Wednesday July 04, 2012 @06:28AM (#4198761)
It's a double-edged sword however.

Users stuck on PHP 5.2 will miss out on potential security fixes to Symfony 2. This can potential compound an already bad situation.

I'm not saying Fabien didn't have good reasons, more playing Devil's Advocate.

Re:PHP is much better than what you think by ihsw on Wednesday July 04, 2012 @09:04AM (#4199235)
Symfony2 is not compatible with php-5.2 and never was.

Python will be under the same situation when the big push onto python-3 finishes over the next ten years. The vast majority of applications runs on python-2 (for performance and backwards compatibility reasons), however that is changing.

Re:PHP is much better than what you think by TazeTSchnitzel on Wednesday July 04, 2012 @08:47AM (#4199162)
If only cheap shared hosting was consistently up to date :<
Re:PHP is much better than what you think by slurgfest on Wednesday July 04, 2012 @09:05AM (#4199238)
If a host doesn't stay up to date and doesn't let you stay up to date, you shouldn't be using it!
Re:PHP is much better than what you think by TazeTSchnitzel on Wednesday July 04, 2012 @09:07AM (#4199248)
I'm referring more to end-users of PHP packages :/
Re:PHP is much better than what you think by slurgfest on Wednesday July 04, 2012 @09:47AM (#4199385)
I feel for you :(

If people are so incompetent that they can't choose a decent host or install a recent PHP (or deploy on anything but mod_php) then there is probably nothing that package maintainers can do to rescue them, no matter how much they want to.

End users need more help but there are lines between "end user" and "needs to learn things" and "stubborn idiot". If you want to write and deploy web apps, it is your JOB to choose a halfway decent host, keep dependencies up to date and deploy with some appropriate technology!

Re:PHP is much better than what you think by rhspeer on Wednesday July 04, 2012 @01:32PM (#4200183)
It's not reasonable to host symfony on anything less than a VPS. It can be done, but you can also punch yourself in the face.

Servergrove.com has the best options for symfony sites IMHO

Re:PHP is much better than what you think by josegonzalez on Wednesday July 04, 2012 @01:21PM (#4200148)
For what it's worth, CakePHP was a hack to get PHP working as it properly should. Our base object class was made so that PHP4's broken object model would work as expected. It has also gotten a lot better, but has also taken a different approach to application development than many of the other available PHP frameworks.
Re:PHP is much better than what you think by risratorn on Wednesday July 04, 2012 @05:20AM (#4198538)
Indeed a good point, fabien is the catalyst in the current generation of PHP projects, just take a look at Symfony2, Symfony CMF, Silex, Composer, Doctrine, ... they all spawned in the trail of his work. I actually wonder how he gets so much work done.
Re:PHP is much better than what you think by old_sound on Wednesday July 04, 2012 @07:35AM (#4198923)
I think Doctrine is not related to his work. The Symfony CMF, while part of the Symfony community, has been mainly pushed by companies like Liip AG
Re:PHP is much better than what you think by rhspeer on Wednesday July 04, 2012 @01:37PM (#4200199)
Projects like Doctrine & swift mailer for email have been adopted and had development funded by Sensio @fabpot's dev shop.

So while not a tightly coupled part of Symfony they are related through developers, community, and funding

Re:PHP is much better than what you think by agumonkey on Wednesday July 04, 2012 @05:40AM (#4198617)
The recent PHP releases are nice, but is there any plans about .. pardon me .. rewriting the core libs ? I guess they're close to zero. Even with a nice Object model, traits, closures and literals .. whenever I see old core functions poke it hurts. At the same time the world has moved: Scala, Go .. PHP still looks odd to me, even with his new found maturity.
Re:PHP is much better than what you think by Kiro on Wednesday July 04, 2012 @08:48AM (#4199165)
What's so horrible about CakePHP?
Re:PHP is much better than what you think by skrebbel on Wednesday July 04, 2012 @12:36PM (#4199981)
Admittedly, I used it a long time ago. Back then, it was obviously never really used by any of its developers for things beyond the trivial "Blog Tutorial". For example, you couldn't reasonably put model-related code in your model classes, because the model data (coming in from the ORM as nested associative arrays) were structured subtly different depending on how it came in (i.e. on which ModelPeer the query originated). This effectively forced you to make fat controllers and useless models.

Additionally, I know of no framework that reinvented more wheels than CakePHP.

Re:PHP is much better than what you think by mikegirouard on Wednesday July 04, 2012 @08:55AM (#4199195)
Its legacy (who wants to still support PHP4?). AFAIK, it's no longer maintained; I believe all the core development is now taking place on the Lithium project: http://lithify.me/
Re:PHP is much better than what you think by unavoidable on Wednesday July 04, 2012 @10:26AM (#4199520)
None of these things are true, I don't know where anyone comes up with this stuff. Sounds like a smear job more than anything. CakePHP2 is PHP 5.2.8+[1]. It's still being maintained and 2.2 was released this week[2]. Lithium is not a real 'fork' from Cake - rather it is a project that two of the Cake devs were working on as a 'next gen CakePHP' but decided to make into a separate project - the two frameworks don't share any code in their 'production' releases. Lithium has a much smaller community and is still poorly documented (as far as I can tell having tried to use it for a project).

[1] http://book.cakephp.org/2.0/en/appendices/2-0-migration-guid...

[2] http://bakery.cakephp.org/articles/lorenzo/2012/07/01/cakeph...

Re:PHP is much better than what you think by mikegirouard on Wednesday July 04, 2012 @12:44PM (#4200011)
> Sounds like a smear job more than anything.

Not at all. I'm sorry you misunderstood. Cake has been quite good to me over the years. Ever since I switched to Lithium I haven't looked back.

Re:PHP is much better than what you think by sequoia on Wednesday July 04, 2012 @10:40AM (#4199570)
Wrong wrong wrong wrong wrong. I can see you posted this without doing so much as a single google search pointing your browser to "cakephp.org".

I am interested in hearing skrebbel's response to this question however (what makes cake so horrible).

Re:PHP is much better than what you think by mikegirouard on Wednesday July 04, 2012 @12:48PM (#4200039)
Goodness. Sorry.

Perhaps I just misunderstood. To me it seems sold as the successor to Cake. http://www.meetup.com/lithium/

Re:PHP is much better than what you think by sequoia on Wednesday July 04, 2012 @01:02PM (#4200088)
The Lithium folks (nate & gwoo in particular) split off from the Cake core team. There was some contention but generally speaking I think everyone is still friends. As for lithium being the successor to cake 1.3... well certainly nate & gwoo feel that way, that's why they built it. :) And certainly phpnut & mark_story don't feel that way, that's why they are still driving forward with cake 2.0. Anyway they are both cool projects but I was reacting strongly to your assertion that cake is "no longer maintained", which is as accurate as saying RoR is no longer maintained and has been officially superseded by Node+Express.
Re:PHP is much better than what you think by giulianob on Wednesday July 04, 2012 @09:38AM (#4199365)
CakePHP 2.x did a major rewrite of nasty parts and dropped support for PHP 4. It's actually very well done and much more consistent now.
Re:PHP is much better than what you think by Kiro on Wednesday July 04, 2012 @09:24AM (#4199312)
Isn't Lithium just a fork? CakePHP 2.2 was released just a few days ago and they dropped PHP4 support in 2.* I think.
Re:PHP is much better than what you think by Kudos on Wednesday July 04, 2012 @11:29AM (#4199738)
It's not a fork, it's a separate project by 2 former Cake developers.
Re:PHP is much better than what you think by brendoncrawford on Wednesday July 04, 2012 @02:35PM (#4200391)
> AFAIK, it's no longer maintained

False. Last commit was 18 hours ago.

Re:PHP is much better than what you think by code4pay on Wednesday July 04, 2012 @05:11AM (#4198497)
yeah he has done an amazing job.