Live data from Hacker News

PHP is much better than what you think

fabien.potencier.org

181–190 of 346 posts

Re: PHP is much better than what you think

#181
post #71

Earlier quoted context omitted.

Well, we can all dream, but what are you using now do get things done and make a living? I'm pretty sure Python and Ruby fail your criteria. Using the "perfect language" is a luxury that I for one can't afford. I need something that I can use reasonably easy and that is sought by employers. The fact that is has event-driven IO and parallelism (what kind of parallelism do you need for web sites?) is nearly irrelevant.

Yes, Python and Ruby do fail my criteria. Which is why I don't advocate them either. I'm currently using OCaml, but I would probably prefer to use Haskell. They are both far ahead of PHP. Assuming your website is doing anything non-trivial, parallelism would certainly be useful. Just because it's a web project does not mean you're not doing something computationally intensive, after all. But even if you don't need it…

I don't know why you are being downvoted for your opinion. Redditors - go back to your caves, you heathen!

Re: PHP is much better than what you think

#182

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.

What's so horrible about CakePHP?

Re: PHP is much better than what you think

#183

They have maid a decent progress in 5.4 http://php.net/releases/5_4_0.php http://net.tutsplus.com/tutorials/php/php-5-4-is-here-what-y...

"Has made great progress and will continue making great progress" is another way of saying "got it wrong first time and is still getting it wrong now" :P

It took more than 10 years and almost 6 major versions of a supposedly quick and easy scripting language to have short array notation? Or binary numbers? Seriously? And this improves your faith that they know what they're doing?

Re: PHP is much better than what you think

#184

"PHP is the best web platform ever", because it (finally) has a decent package manager. And don't mind that far fetched statement, the author will surely delete any rude comments. Congrats, PHP has a package manager. This does nothing to shake my feeling that PHP's most ardent advocates have little hands-on experience with the more full-featured alternatives. You know, like the ones that also have decent package mana…

"PHP's most ardent advocates have little hands-on experience..."

And from what I've been seeing, PHP's most ardent critics have little hands-on experience with PHP, itself.

Edit: see this http://news.ycombinator.com/item?id=4198900 current rambling nonsense I'm having to contend with.

Edit edit: the voting is up and down, I can only assume that ~ 50% of this community just don't care about facts and would rather subscribe to witch hunts.

Re: PHP is much better than what you think

#186
post #182

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.

What's so horrible about CakePHP?

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

#188
post #179

Earlier quoted context omitted.

Your code doesn't start with a "<?php" tag?

What does that have to do with SGML?

It's the opening of an SGML process instruction tag. That's why PHP code is inherently embedded in SGML documents......

That's why the LedgerSMB project uses Template Toolkit with tags (that and [% %] causes problems in LaTeX).

Re: PHP is much better than what you think

#189

Earlier quoted context omitted.

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.

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.

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.

Post reply on HN