ramblings on PHP, SQL, the web, politics, ultimate frisbee and what else is on in my life
[1]  «  1  2  3  4  5  6  7  »  [71]

Diversity

First up a disclaimer. I don't think I have any answers to offer and I must admit I will probably not actively do much to help improve the current situation. However I do believe it would be great if this would become a non topic but I acknowledge that there is a problem. Like many I don't see myself as part of the problem, maybe I am wrong there. In general the Symfony2 scene is quite un-diverse, at least when it comes to gender. I don't remember ever seeing a women present on a Symfony2 topic at a conference. I think the only one that I have heard speak on Symfony2 is Lorna. Alvaro mentioned that at deSymfony there was a presentation by a female speaker. That being said, skimming over the top 100 contributors I don't see a single female name. Actually just going by memory I don't remember a single PR from a female contributor. I would be surprised if there wasn't at least one, likely there are quite a few. Not remembering is actually quite ok imho, because its not the most memorable thing about a PR what the gender of the contributor was. But I am quite sure that the number of patches from women is a tiny tiny part. I sure hope that the numbers in my head aren't skewed by women preferring to contribute with a male name because they are worried a female name would cause issues.
read on (comments 18)

Decoupled mindset

Back when PHP5 came along in many ways it meant a new stepping stone for PHP. To some extend this was caused by the fact that it was impossible to write E_STRICT compliant code that also worked on PHP4, since initially using "var" for properties didn't pass strict mode. As a result many people used this as an excuse to start over and I think overall this led to higher quality code, since the community had evolved from the skill set, but was held back by the legacy baggage. Then when PHP 5.3 came around with namespaces, it had a similar "cleansing" effect. So evolution was done partly by burning bridges. What is interesting is that with composer I see a process in the community of equal impact, yet instead of burning bridges, its building them.
read on (comments 9)

Wanted: content negotiation library

So a while back I wanted to add native support for API versioning to FOSRestBundle. While working on this I began to realize that this would really require supporting proper content negotiation. Note that while there is a spec for how to express the preferences of the client, there is no spec on "negotiating" between what the client wants and what the server has to offer. My current implementation is rather simple .. well simple is probably a euphemism for "incomplete to the point of being more than half wrong". I began to search and didn't really find any decoupled library for PHP that could do the job. I then stumbled over mod_negotiation and thought that it would make a lot of sense to use their algorithm as I simply assumed that it would have gotten a fair bit if scrutiny preventing me from doing something stupid. More over it could also mean that we cut optionally allow users to leverage this apache module instead of our PHP implementation to improve performance. Now that idea sat there for a while until the Drupal guys brought up the topic again. I told them my idea and work began doing exactly this but unfortunately isn't moving forward as quickly as needed to make the December feature freeze of Drupal 8. There are two new people willing to work on this, but its still unclear if things will get ready in time. Since I know we are not the only ones who need this in the PHP community, I am sending this out as a rally cry to work on this together.
read on (comments 5)

Lessons learned on OSS

Just wanted to make some general observations based on what I learned around the Symfony2 CMF initiative. I hope that these will be helpful to others working on other open source initiatives. Of course every initiative is born into different sub-communities and every set of leaders have other skill sets and networks but there might still be some general lessons to take home from my experience.
read on (comments 0)

PHPCR on Doctrine DBAL

So I have noticed that people don't like it when I talk about all the cool stuff Jackrabbit can do. Many people are still scared of running Java stuff in production which I guess is to be expected since PHP shops tend to .. guess what .. PHP. So in this post I just want to talk about all the cool features we have ready to use in the pure PHP Doctrine DBAL based implementation of PHPCR. Just to say it again: PHP, no Java. So first up the implementation with all its features works with MySQL, PostgreSQL and SQLite. Given that we started with MySQL we ended up relying on few specific MySQL behaviors. These are all gone now, so adding another RDBMS is likely just a half days work, maybe a day if you look at the code base for the first time, then again the relevant code to edit are just a few places in two classes (Jackalope\Transport\DoctrineDBAL\Client and Jackalope\Transport\DoctrineDBAL\Query\QOMWalker). At any rate the implementation essentially gives you a tree document store on top of an RDBMS with support for references and so called node types allowing you to optionally add constraints to your document structure. Documents can have any number of properties which can choose from a wide set of datatypes like string, integer, date, url and binary. You also get both an OO and string based query API.
read on (comments 5)
[1]  «  1  2  3  4  5  6  7  »  [71]