Earlier quoted context omitted.
Namespaces, as others have mentioned. The first question I had when I first encountered that as the Namespace operator was: "Why not the double colon operator?" Double colon is already being used for static member referencing, and in a few talks I've heard from Rasmus, they weren't able to find a way to overload it for Namespaces. Another option that was discussed was a triple colon operator, which most were opposed…
> the backslash is ugly Not only that, it's very unconfortable to type in some international keyboard layouts.
Image manipulation library for PHP 5.3
21–29 of 29 posts
Re: Image manipulation library for PHP 5.3
#22Just curious, is there a reason you chose GD over imlib2? I've used both and I think I prefer imlib2 for flexibility and breadth, and there's already at least one imlib2 binding for PHP: http://pp.siedziba.pl/
Re: Image manipulation library for PHP 5.3
#23Just curious, is there a reason you chose GD over imlib2? I've used both and I think I prefer imlib2 for flexibility and breadth, and there's already at least one imlib2 binding for PHP: http://pp.siedziba.pl/
Hasn't been updated in a while? Is it even still supported?
Thanks for the correction!
Re: Image manipulation library for PHP 5.3
#24Just curious, is there a reason you chose GD over imlib2? I've used both and I think I prefer imlib2 for flexibility and breadth, and there's already at least one imlib2 binding for PHP: http://pp.siedziba.pl/
very cool, I'll see about adding support for it too
Re: Image manipulation library for PHP 5.3
#25Whats\With\All\The\Backslashes? Am I only one seeing that in the examples?
Namespaces, as others have mentioned. The first question I had when I first encountered that as the Namespace operator was: "Why not the double colon operator?" Double colon is already being used for static member referencing, and in a few talks I've heard from Rasmus, they weren't able to find a way to overload it for Namespaces. Another option that was discussed was a triple colon operator, which most were opposed…
I hope I'm stating this right, I must admit it's from a fuzzy recollection.
Re: Image manipulation library for PHP 5.3
#26Whats\With\All\The\Backslashes? Am I only one seeing that in the examples?
It's PHP 5.3's namespacing functionality, in a nutshell. Symfony2 and Lithium are two frameworks I can currently think of that use them extensively. On the one hand, Symfony2 has a quite extreme implementation, and on the other, Lithium's is much more concise. The backslashes can be used to represent a hierarchy.
Re: Image manipulation library for PHP 5.3
#27For my projects I've moved out to Python after having dealt with legacy trash like Wordpress, Google's api libraries, over-engineered frameworks like ZF and lets just say the less said about Propel the better.
Code like this, Symfony 2, Doctrine 2, Lithium etc... are a breath of fresh air. Their obviously written by a group of talented devs and after cutting ties with legacy PHP versions < 5.3 the future of "modern" PHP is looking bright!
Re: Image manipulation library for PHP 5.3
#28Earlier quoted context omitted.
Namespaces, as others have mentioned. The first question I had when I first encountered that as the Namespace operator was: "Why not the double colon operator?" Double colon is already being used for static member referencing, and in a few talks I've heard from Rasmus, they weren't able to find a way to overload it for Namespaces. Another option that was discussed was a triple colon operator, which most were opposed…
> the backslash is ugly Not only that, it's very unconfortable to type in some international keyboard layouts.
It's the main reason why, even though my phyiscal keys are in German layout, I still have the USA layout in software. It's just nice to be able to make [] with a single key press :)
Re: Image manipulation library for PHP 5.3
#29Whats\With\All\The\Backslashes? Am I only one seeing that in the examples?
It's PHP 5.3's namespacing functionality, in a nutshell. Symfony2 and Lithium are two frameworks I can currently think of that use them extensively. On the one hand, Symfony2 has a quite extreme implementation, and on the other, Lithium's is much more concise. The backslashes can be used to represent a hierarchy.