Blog tvlooy

SymfonyCon 2013 Hacking Day

SymfonyCon, Symfony2 | December 15, 2013

Symfony docs badge

Last week the first SymfonyCon took place in Warsaw. Two of my Intracto colleagues (EpochDC and jeroenmoons) attended the conference but unfortunately for me, I was out of resources and had to stay home. These two guys will have a lot of talking to do next week ;-). I also can't wait until SensioLabs publishes the recordings.

A Symfony conference traditionally ends with a Hacking Day. Our friend of the Symfony community cordoval was so kind to organize one for this first SymfonyCon.

SymfonyCon Hacking Day, Dec 14th 2013
Poll initiated by Luis Cordova
Where: Hotel The Westin Warsaw
We are organizing the hacking day and we have the chance to make this day a very rewarding experience for advance and newcomers alike. This Hacking day will be for all the community!
Below please make a choice and which group or repo are you interested in. This will help us see how many people will be there joining each working group. Don't worry if your repo or group does not show. Rather email me at cordoval at gmail dot com to include it quickly.
You can be remote too!

You can be remote too? Great! There was no reason for me not to attend. This was what I did on the Symfony2 Hacking Day.

Saturday morning I joined the #symfony and #symfony-docs IRC channels on Freenode and asked how things were going to be done. WouterJ from the Symfony docs team already wrote a document with instructions. A list with tickets to work on was also available. I like good documentation and there was a lot to do, so I got started with looking at the open PR's.

I picked two tickets that were related to the Console component. Since 2.3 you can use console events, but the logging cookbook entry was still lacking this information (PR #2534). Also since 2.4 the MonologBundle provides a ConsoleHandler that simplifies the way you can use messages in a command, but this was also not well documented (PR #2939). I learned a lot by looking at the code and discovering new features.

After some valuable feedback from WouterJ, xabbuh and stof I was able to remove the [WIP] label from my PR's. Now I will have to wait for more feedback and eventually they will probably get merged into the main repository. High five!

The Symfony2 documentation uses reStructuredText as its markup language and Sphinx for building the output. After hacking on the docs for a while, I was trying to figure out how I could build and test my changes on my local machine. The absolute advantage of a hack day is that IRC is very active. You can just ask your questions and get an answer from someone in no time. Wouter pointed me out to PR #3328, where he tried to link the build to Travis CI. That PR helped me to set up the build in under 10 minutes. That's amazing. I created a little helper repository so you can set it up really easy too.

We kept discussing the PR in question and decided that it could be improved with git sparse checkouts. I honestly didn't think this would work with git, but it seems it does because we now have a new PR that includes this optimization :-)

Hackday results

I had a good time. If you want to see detailed statistics about the Hacking Day, I suggest you read cordoval's blogpost. For me personally, hacking days are the perfect moment to get involved. I have a busy schedule and if I finally do make some time to give back to the community I don't want to lose time with getting up to speed or figuring out things I forgot about. I didn't even have time to look at the other repositories, so more of this please!