OK so weirdly, he claims PHP is dead but actually specifically says he's comparing two frameworks. So, does that mean because Rails recently had a heap of vulnerabilities, Ruby is automatically insecure?
No.
There is a difference between a language and a framework. That Flow is yet another attempt at an "Enterprisey" mvc framework for PHP is a fault of the developers of Flow, not the language it's written in.
Re:PHP has reached its limit
by juan_juarez on Thursday February 28, 2013 @04:21PM
(#5301106)
A limited templating language forces you to behave. More importantly, it also forces other people to behave. It stops people from creating ugly hacks in the middle of templates that become impossible to track bugs. It stops Joe Random Designer from being able to break your database when he works on a new header design.
If you need a templating language to force you to behave, you are not likely to understand why you need to "behave".
If others "misbehave" fucking tell them not to - why does everyone look for a technical solution to a human problem?
I totally agree with this. To many times developers of frameworks or other reusable components seem to try to protect developers from themselves.
I understand that there is a good argument for this but in the end it's making everything more complex and limited for developers who do understand what they're doing.
> Metaprogramming and reflection have to be implemented by the framework as they’re not part of the language.
Every example there seems to relate to a framework called "Flow", and the author sums this up quite succinctly:
> It took them five years to experiment and find something that works for them
The key words are the last three. WORKS. FOR. THEM. I've never heard of Flow before, and from what I've seen in this blog alone, it looks like more PHP developers who want to be Java developers.
I agree completely that the examples shown are fucking horrific, but thats not a fault of the language.
Let's take the "Fetch a record" example. It's perfectly possible to have a php model that works like so:
As for the templates, yes the Flow templates are fucking stupid. That's still not a fault against PHP - I've given up trying to understand why people feel the need in PHP - which is itself an excellent templating language - to create new, more complex and yet limited template languages.