On 1/10/13 2:15 PM, Ralph Schindler wrote:
> I think PSR-3, as codified as a PHP Standard Recommendation #3 is
> misguided. It has little to do with de-facto standard way of doing
> things, and has more to do with shared code implementations that
> promotes "framework interoperability"- which I see as two separate things.
>
>
> at any rate i dont think that renaming PSR's to FIG's will solve
> anything. its a 3 letter acronym, they tend to take on lifes of
> their own. we did have the discussion already on the list when we
> pondered the namespace and decided to stick with PSR.
>
> regards,
> Lukas
>
>
> Passing an implementation/interface off as a "standard recommendation"
> in the same vein as autoloading (PSR-0) and code formatting (PSR-1,
> PSR-2) detracts from the original goals of the group, which I think is
> generally understood to be identifying and classifying de-facto
> standards in the PHP community at large.
Now see, here's the key and fundamental problem I disagree entirely on
every point you just made, right down to the fundamental philosophy. :-)
My understanding of this group has always been to promote
interoperability between projects. The "De facto standard" for the past
15 years has been... no interoperability. That's the problem we're
trying to solve. If all we do is codify "what everyone is doing
anyway", then
1) We'll never actually do anything, because PHP is still largely not
interoperable. Even PSR-0 wasn't already a de facto standard, unless
you consider PEAR and Java to be sufficiently de facto.
2) None of our existing PSRs are valid. PSR-0 wasn't what people were
already doing because namespaces were still very young. PSR-1 is good
best practices, but certainly not universal. PSR-2 was an amalgam of
different standards based on a survey, but nearly every project that has
adopted it has had to change something. PSR-3 is inspired by two
existing systems (Monolog and Drupal), but not something everyone was
using already.
The lack of a de facto standard is the problem to be solved, not simply
documented.
In that light, I would actually flip your statement around. PSR-3 is
what we should be doing, and PSR-2 was and still is an off-topic
distraction. Given that PSR-2 passed by a slim margin and PSR-3 passed
unanimously, I think there is some weight behind that position.
> In the end, 30 different PSR-#'s that deal with various interfaces and
> interop issues is going to detract visibility from the ones like
> PSR0,1,2 where the audience for those is much larger (PHP Community at
> large vs. those who build frameworks).
>
> -ralph
I think that statement misses the key importance of 2012. With the
advent of FIG and, more importantly, Composer, there is not a clear
dividing line between "those fancy framework people" and "the great
unwashed PHP masses". There's absolutely no reason that random Joe
Developer should have to decide between building his work on top of a
big stack (be that stack Zend, Symfony, Drupal, or Cake) and rolling
everything himself. By leveraging the Packagist archive, he can have
his Cake and Log it too. (Sorry, had to!) But that requires not that
Symfony and Zend are on the same page, but that the PHP world in general
is on the same page.
So no, the audience for tabs-vs-spaces standards is not larger than the
audience for "people who want to log things but not have to define their
own logging API". Or, rather, it may have been at one point, but it
either no longer is or won't be for much longer (depending on your POV).
And that change is beneficial for everyone.
--Larry Garfield