Live data from Hacker News

What is Symfony2?

fabien.potencier.org

21–26 of 26 posts

Re: What is Symfony2?

#21

Earlier quoted context omitted.

Wow - I'm taking a bit of personal affront to this. I'm not 'one person with limited experience with professional PHP development'. I've been PHPing since 1996 (from PHP/FI), and have done work with both PHP and many other platforms. I was doing MVC in PHP4 well before most of the popular frameworks of today were even started (probably before many of their authors were using PHP). Read this again: "Only a portion of…

tl;dr, Honest apology, and honest rant around people who litter HN with stupid posts. I was a bit harsher than I should have been, but I also see quite a bit, and it's encouraging. Sure, if you look around github and SF, you see a lot of libs/class that aren't built for Zend or Symfony, but then they shouldn't be built around a specific framework. Heck, even Zend/Symf attempts to make each component indecent and repl…

OK - I get your point. I guess I'm still a bit confused about this:

..."it's fairly clear you haven't been as involved with the community over the past few years (or if you have, nothing in your comment gives that impression). Otherwise, you'd know about all the projects that are being launched/have been launched on top of frameworks. Open source projects, community projects using Zend, Symonfy, CI, etc.

What in my comment should give that impression? Maybe I still don't get it. Yes, there are projects being built on top of frameworks. (I started zfkit some time ago, although other people have done much more in that area than I have). I've done project work using various frameworks.

I'm not ragging on PHP at all, and don't really know where you got that from. To the extent I'm seemingly ragging on Symfony, it's only that it's complicated and doesn't speak to everyone's needs. Many people still really just need a type language to suit their small needs, and PHP works great for that (as well as works great for many larger scale projects as well).

Honestly, really, I hope you were reacting to someone else and I just got caught up in this as a misdirected target. I teach PHP for Zend, have certification, just got back from Zendcon, and use PHP for about 70% of my work (using various frameworks). I enjoy PHP too - again, not sure where you're getting some idea that I don't enjoy it.

Oh... yeah, I said that the language can't do some things I can do in Groovy (or Ruby). Yeah, things I enjoy and like. You know something, learning other languages has made me a better developer, both in PHP and in those other languages, because I can appreciate idiomatic PHP as much as idiomatic $lang. PHP's taken some cues from other languages and implemented neat things, some of which make things easier. I still don't like the syntax of things, and we don't have the same sort of metaprogramming facilities I enjoy in Groovy. But I'm not complaining - I love them both equally.

What does annoy me is that people can't put out a "negative" view of PHP without raising the sort of rant you just posted here. Just because someone points out that PHP is missing something, it's not an automatic assault on everyone who uses PHP, nor is it stating that everyone who uses PHP is somehow an incompetent idiot. I'm pretty damn impressed with some of the stuff I see from people in the PHP community after all these years. I do wish some of them would at least acknowledge that other languages/platforms have some cool stuff in them too. That's happening, but far more slowly than I'd like to see. Even at Zendcon, there was a bit of an "us vs them" mentality I picked up in the hallway comments, and that saddens me.

At a CF conference a couple years ago someone brought up PHP and made some joke about people needing training wheels. WTF - this from a language that didn't allow user defined functions for the first X years? And somehow you think PHP is a 'toy'? Every platform/lang has pros and cons, and the factionalization and party politics are really starting to get me down - it's actually part of the reason I don't get in to various frameworks too much (I marginally use ZF as a default unless there's some reason not to). Even inside PHP, the framework zealots like to bash each other's frameworks (Cake vs ZF vs Symfony, etc) - they all suck and are all great - just use something and get your job done.

re: Diaspora - I'd say a year ago, public criticism might have had a chance of changing direction to get something more valuable out of it. Today, yeah, public criticism is pointless, as it is for more frameworks - you either like it or you don't, and move on.

So.. yeah, this was a big rant reply. You triggered a lot of thoughts, but overall, I think we're in agreement about a lot of things. People often dismiss PHP as a toy still - but PHP people do it to others as well (listen to PHP people dismiss Perl, Java, etc).

Re: What is Symfony2?

#22
post #10
post #8

Earlier quoted context omitted.

I'm curious; what is it about Symfony2 that makes you recommend it over CakePHP? I really enjoy using CakePHP personally, and I found Symfony v1 a headache to start with and never really got off the ground with it. It's interesting to me that the CakePHP 2.0 release got no love while Symfony2 is front page material. Any insight here would be appreciated.

Quickly: -CakePHP is atrociously slow, even when running with APC, and uses an alarming amount of memory for what you get. Symfony2 is neither slow nor particularly memory-hungry. -CakePHP is inexpressive; it's very difficult to use it piecemeal. You either use the whole whomp of it or you don't use it at all. Symfony2 is modular and easily used for exactly what you need. -CakePHP is stuck in the past; any framework…

"Note that I wouldn't recommend PHP in any greenfield development today"

I'm curious, but what would you recommend ? I'm not cynic — but I work in a very small startup, doing mainly maintenance code in php and I've suffered my share of "use Drupal for x" when x is inappropriate inside Drupal, or any cms, and would have asked for a mostly custom backend designed from the ground up. So for these case I'm stuck — trying to do my best within the constrain I have. But for the occasion where I can do better, I'm curious about alternative !

Re: What is Symfony2?

#23
I have a few years experience with CakePHP, Symfony 1 and I have also been playing around with Ruby on Rails a bit.

Now, I just finished going through the Symfony 2 internals to see what is so different from Symfony 1. I have to say that, when I realized the paradigm change, I had a WOW moment.

I mean most of the frameworks gravitate around the classical "MVC monilith active record framework" and they all resemble more or less Rails.

Symfony 2 isn't even a MVC framework (although it separates concerns very well), I mean it doesn't even have a Model!!!

At the core it's a Kernel object that is responsible for building a Service Container for dependency injection, into which all sorts of Components get pluged-in as services. And along the way it triggers lots of events to which you can attach listeners.

That's it! Everything else you augment by choosing the kind component you want to use and by configuring the Service Container.

After the little bit I played around with Ruby on Rails I have to say that Ruby is much nicer then PHP, but as a framework I really like where Symfony 2 was taken.

Re: What is Symfony2?

#24

Earlier quoted context omitted.

tl;dr, Honest apology, and honest rant around people who litter HN with stupid posts. I was a bit harsher than I should have been, but I also see quite a bit, and it's encouraging. Sure, if you look around github and SF, you see a lot of libs/class that aren't built for Zend or Symfony, but then they shouldn't be built around a specific framework. Heck, even Zend/Symf attempts to make each component indecent and repl…

OK - I get your point. I guess I'm still a bit confused about this: ..."it's fairly clear you haven't been as involved with the community over the past few years (or if you have, nothing in your comment gives that impression). Otherwise, you'd know about all the projects that are being launched/have been launched on top of frameworks. Open source projects, community projects using Zend, Symonfy, CI, etc. What in my c…

I don't remember what it was specifically about your post that set me off, and rereading it, you didn't deserve the treatment. I'm sorry. As I mentioned, it's reading different comments, then coming to yours, something lights the spark, and I went into flamewar mode. Not fair to you (or anyone, really).

> What does annoy me is that people can't put out a "negative" view of PHP without raising the sort of rant you just posted here.

It's not comments negative to PHP. It's comments negative to people who use PHP. All too often I read people quip about "If I'd be forced to use PHP for my projects — which, luckily, I'm currently not" or they get all scotsmans and say things like "No real programmer would choose to use PHP these days...". And this seems to have every. Maybe it's bias. I've grown so accustomed to it that I look for it, and start seeing it where it doesn't occur.

And I completely realize I'm not helping matters any.

I love learning new languages, learning their quirks. And I can't fathom how an intelligent person can casually insult people simply for their tool choice.

Thank you for being as gracious as you have been. I've been nothing but a dick.

Re: What is Symfony2?

#25
post #10

Earlier quoted context omitted.

Quickly: -CakePHP is atrociously slow, even when running with APC, and uses an alarming amount of memory for what you get. Symfony2 is neither slow nor particularly memory-hungry. -CakePHP is inexpressive; it's very difficult to use it piecemeal. You either use the whole whomp of it or you don't use it at all. Symfony2 is modular and easily used for exactly what you need. -CakePHP is stuck in the past; any framework…

"Note that I wouldn't recommend PHP in any greenfield development today" I'm curious, but what would you recommend ? I'm not cynic — but I work in a very small startup, doing mainly maintenance code in php and I've suffered my share of "use Drupal for x" when x is inappropriate inside Drupal, or any cms, and would have asked for a mostly custom backend designed from the ground up. So for these case I'm stuck — trying…

I generally use Java and Scala for my own personal projects. Scala less than I'd like because there's no really good solution for web development aside from Lift (and Lift, while comprised of fantastic code, doesn't map well to my mental model of web development), but moving more and more towards it over time.

Some Python too, but that's more for one-offs.

Re: What is Symfony2?

#26

Earlier quoted context omitted.

OK - I get your point. I guess I'm still a bit confused about this: ..."it's fairly clear you haven't been as involved with the community over the past few years (or if you have, nothing in your comment gives that impression). Otherwise, you'd know about all the projects that are being launched/have been launched on top of frameworks. Open source projects, community projects using Zend, Symonfy, CI, etc. What in my c…

I don't remember what it was specifically about your post that set me off, and rereading it, you didn't deserve the treatment. I'm sorry. As I mentioned, it's reading different comments, then coming to yours, something lights the spark, and I went into flamewar mode. Not fair to you (or anyone, really). > What does annoy me is that people can't put out a "negative" view of PHP without raising the sort of rant you jus…

Wow - thank you for being so straightforward and gracious yourself. I probably went overboard in my replies, but it was good to hash some of this out.

FWIW, I agree on the type of statements you're referring too - they bug the hell out of me.

I'm OK, you're OK (and PHP's OK too!) :)

Post reply on HN