Live data from Hacker News

Symfony 2.0 is now available

symfony.com

71–75 of 75 posts

Re: Symfony 2.0 is now available

#71
post #68
post #25

Earlier quoted context omitted.

Exactly. It actually seems to go the way that various other PHP frameworks can be replaced with Symfony2. There is already a compatibility bundle for running Zend Framework apps with Symfony2: http://symfony2bundles.org/beberlei/WhitewashingZFMvcCompatB... And I'm working on another bundle that allows running Midgard MVC apps: https://github.com/bergie/MidgardMvcCompatBundle

Whoa, this is very cool. (I have a legacy Midgard MVC app I'd like to get rid of.) Between Symfony2 and Silex, I'm not sure what case there is to use anything else anymore. It seems like the low and high ends are very well covered in the Sensio Labs environment, and I'm not sure how much room there is in the middle.

Ping me on Freenode #midgard and I can give you more info how to proceed. Out of curiosity, though: are you sure this is Midgard MVC and not MidCOM, the older MVC framework for Midgard?

Doesn't matter, though. We're building compatibility bundles for both. Though Midgard MVC is already in somewhat running state.

Re: Symfony 2.0 is now available

#72
post #53

Earlier quoted context omitted.

Sadly, Symfony/Symfony2 are not widely used enough . :/ (This may be a bit flippant, but seriously--there's not really a good reason to be using stuff like CakePHP, etc. in 2011.)

I may be in the process of updating a very neglected cakephp site. When I created the site, I had heard of Symfony but went with cakephp. I've not followed either framework for well over a year, so could you please give your reasons for Symfony and against cakephp?

To my experience, Cake simply does not grow beyond their own blog tutorial.

Maybe they fixed this, but last time I used Cake, for instance, if you were overriding hooks in the Model to e.g. change the data as returned to the view/controller, you had to do this different depending on how the data was collected. So in the same hook method of the BananaPeer, you either got a single Banana, or an array of Banana objects, or an array with a key "Bananas" which had an array of Banana objects. There was no way to figure this out except with a lot of testing. There was no uniform way to implement standard features and constraints inside the model.

Cake was full of this kind of shit. It was, simply, horribly badly designed and to my impression only popular because its web site was pretty. The source code was horribly undocumented and the internal SQL query building process was a disaster.

Re: Symfony 2.0 is now available

#73

Earlier quoted context omitted.

I may be in the process of updating a very neglected cakephp site. When I created the site, I had heard of Symfony but went with cakephp. I've not followed either framework for well over a year, so could you please give your reasons for Symfony and against cakephp?

To my experience, Cake simply does not grow beyond their own blog tutorial. Maybe they fixed this, but last time I used Cake, for instance, if you were overriding hooks in the Model to e.g. change the data as returned to the view/controller, you had to do this different depending on how the data was collected. So in the same hook method of the BananaPeer, you either got a single Banana, or an array of Banana objects,…

Personally, I think that Cake was popular because it was one of the first frameworks out there. It's been surpassed by all sorts of folks (Symfony2 now chief among them).

I think that, next time someone asks me why Cake sucks, I'm just going to say "BananaPeer" over and over again.

Because bananas don't have peers.

Re: Symfony 2.0 is now available

#74

> Everything is a Bundle in Symfony2: A bundle is a directory containing a set of files (PHP files, stylesheets, JavaScripts, images, ...) that implement a single feature (a blog, a forum, etc). That changes everything. Share your bundles between your projects or publish them in the wild. I have no idea whether this is novel, but it is to me, and I really like it.

SilverStripe's Sapphire framework has had this for quite a while, if you wanted to use it, with their modules. If you're in the mood for being that organised it can be really helpful.

Re: Symfony 2.0 is now available

#75
post #45

Congrats to Symfony2 Team! FYI, Symfony2 requires minimum PHP version 5.3.2 PHP 5.3 which is not something every shared hosting provider will support, most are still on 5.2.series. so everyone should keep that in mind while writing PHP app with Symfony2

I hear these sorts of things regarding hosting all of the time. However, in my experience, if you are working on an app that is large enough to warrant using a framework like Symfony or Zend Framework, you are probably going to also be using your own server. People don't build large expensive applications and then deploy to GoDaddy or something :)

Agree completely. CodeIgniter used to use this as an argument for supporting PHP4 (!!?!?!?), but it seems so bankrupt. I (anecdotal, I know) don't know a single person writing an application (what these frameworks are designed for) who would deploy to a classic shared hosting environment over a VPS or app cloud service.
Post reply on HN