4 meses en Londres - Experiencias

4 meses en Londres - Experiencias

Este post no va de tecnología, o por lo menos no va a haber código. Sin embargo, voy a intentar resumir algunas experiencias que he tenido en mis primeros 4 meses en Londres. Tal vez con eso consiga animar (o incluso desanimar, y quizás ahorraros algo de sufrimiento) a todos aquellos que os estéis planteando dar el salto. Todo viene de unos tweets cruzados con los grandes @asiermarques y @pgodel así que ya sabéis a quién culpar!

Symfony2 versus Go: Round 1 - Hello world (static pages)

In my new job at Hailo we are introducing Go as the main language in the new architecture and because of that I have started playing with it. Besides that, there has been a lot of comments and opinions in both the Symfony2 and the PHP community regarding the TechEmpower framework benchmarks where Symfony2 appears at the bottom of the list for most of the tests. Needless to say, PHP is and will always be slower than a compiled new-generation language.
APC Settings: stat and shm_size

APC Settings: stat and shm_size

Most of you already know that APC is really important to boost PHP performance. It will probably be replaced in the next months / years by Zend Optimizer+ but meanwhile it is important to know how to properly tweak this amazing PHP extension. If we have a look at http://php.net/manual/en/apc.configuration.php we will see in the first couple of lines that both stat and shm_size are the most important directives but most people seem to not know about them, and this is why I am writing this post.
APC vs Zend Optimizer+ Benchmarks with Symfony2

APC vs Zend Optimizer+ Benchmarks with Symfony2

If you are following some of the biggest names in the PHP scene you may have seen that Zend Optimizer+ is now open-source on Github at https://github.com/zend-dev/ZendOptimizerPlus and it seems that will be included in PHP 5.5 distribution. This is awesome news as we will finally get a PHP Accelerator bundled with the main language distribution and there should not be (let’s hope) weird issues like the ones happening in early versions of PHP 5.

Testing Symfony2 Commands - Mocking the DI Container with Mockery

Some months ago I had the pleasure to contribute to phpcassa library, maintained by Tyler Hobbs, adding support for Composer and Travis, and fixing some issues with PHP5.4 and some E_STRICT warnings. And, as there is no Symfony2 bundle for Cassandra yet, I have decided to create one myself. The bundle is at early stages but I have already developed some basic Administration commands, mainly to create a Keyspace, a ColumnFamily, etc… and I have decided to share here how I have unit-tested those commands.

Resumen 2012 y Objetivos 2013

Si 2011 fue movido, 2012 ha sido una auténtica locura. Resumen Laboral Empecé el año en Ulabox, posiblemente el proyecto web del cual me siento más orgulloso, terminando una larga migración del infame Prestashop a un backend 100% Symfony2. Todo parecía ir bien, pero la crisis no perdona ni a los mejores y el proyecto tuvo una época muy dura con fuertes recortes de personal. Fueron momentos complicados ya que como sabréis todos los que habéis estado en una startup, acabas sintiendo que el proyecto es como un pequeño hijito y creedme que fue muy duro tenerlo que dejar.

How to log messages to different files with Monolog in Symfony2.0

If you are logging lots of activity in your Symfony2.0 application you might have seen that it is not that obvious to split them into different files. This has been solved in Symfony2.1, thanks to MonologBundle channels (Cookbook here) but if you are in Symfony2.0 and need to handle different log files this is the way to do so: You’ll have to define a new Logger service and a Handler service for that logger.

Resumen Q1 2012 - Muchos cambios

Hace poco más de 3 meses que hacía mi propia retrospectiva sobre el pasado año 2011. Y la verdad es que desde entonces han sucedido un montón de cosas sobre las cuales me apetece escribir un poco. Desde aquel post, ha cambiado totalmente mi situación a nivel laboral y ya he conseguido cumplir alguno de los objetivos que me había propuesto para este 2012. Para empezar, la comunidad Symfony Barcelona ya es una realidad.

Composer.json and Travis-ci for our Symfony2 Bundles

Travis-CI and Packagist / composer.json are the new toys in the PHP community and specially amongst the Symfony2 developers crew. I like Travis-CI because you can easily setup Continous Integration to some degree without having to setup a full working Jenkins (or whatever suite) environment and code can be tested with different PHP versions. This can be really useful to ensure that our code is ready for the incoming PHP5.

Resumen 2011 y Objetivos 2012

Vaya año más movido ha sido este 2011. Resumen laboral Volviendo la vista atrás, en Enero estaba trabajando en Privalia, en el equipo de Front y aparentemente todo estaba bastante tranquilo. Junto a mis compañeros conseguimos elevar muchísimo la fiabilidad de las subidas de código, desarrollar buenas prácticas, hacer algo de Scrum y todo parecía ir en la buena dirección. Pasamos por momentos algo duros, de mucha presión, debido a varios rediseños de la web completamente absurdos (el tiempo nos dio la razón y muchas cosas se echaron para atrás) y las interferencias de los managers pero salimos adelante con una nota bastante alta.