During application development, developers have to handle errors in the execution flow. PHP, among many other languages, allows you to do so but since I recently stumbled upon a really bad way to do it I thought that reminding the basics would not hurt. Errors or Exceptions PHP makes a distinction between “errors” and “exceptions”…. Continue reading
Posts by "Benjamin Grandfond"
De retour du Symfony Live Paris 2014
This blog post is in French as the event it relates to is French-only. De retour du Symfony Live Paris 2014 Ces lundi et mardi nous étions au sixième Symfony Live Paris qui se tenait à la Cité Internationale Universitaire de Paris. Theodo y était Sponsor Gold et, si vous y étiez, vous avez certainement… Continue reading
Adoptez le TDD sur vos projet Symfony2 existants
This blog post is in French as the event it relates to is French-only. A l’occasion du Symfony Live Paris 2012, j’ai eu la chance de pouvoir faire une présentation où j’explique comment faire du Test-Drivent Development (TDD) dans un projet Symfony2 dont les slides sont disponibles sur speakerdeck. Pour ceux qui n’ont pas eu… Continue reading
How to manage fixtures in a PHP project
Dealing with data developing a new application is a real challenge for the development team. You often need them to develop and then test your app. For example, for a login system, you would need different users with roles and permissions in the database in order to test that the configuration is well set. To… Continue reading
First steps with Behat
Warning : This blog post uses Behat 2.5. It is not all compatible with the ~3.0 version wich should be released on 20th of april 2014. At the beginning of the year I decided it was time to give a try to BDD. Hence every new project I started from then on was done with… Continue reading
Don’t overuse dependency injection
The other day, I stumbled upon the following code that I wrote a few days before. <?php // src/Foo/BarBundle/Manager/ReportManager.php namespace Foo\BarBundle\Manager; use Symfony\Component\Security\Core\SecurityContextInterface; use Symfony\Component\Finder\Finder; class ReportManager { /** * @var \Symfony\Component\Security\Core\SecurityContextInterface */ protected $securityContext; /** * @var String */ protected $baseDir; /** * @param string $directory * @param \Symfony\Component\Security\Core\SecurityContextInterface $context */ public function __construct($directory,… Continue reading
Back from Berlin
Two weeks ago most of the development team was at Symfony Live in Berlin. It was a pleasure for all of us to be there, meeting core team devs, talking with other Symfony user, seeing Fabrice on stage, speaking about Theodo Evolution with people with similar issues and hacking on TheodoRogerCmsBundle or Symfttpd. So let… Continue reading
Paris-Devops meetup 10 Octobre chez Theodo
This blog post is in French as the event it relates to is French-only. Pour lancer la saison 2012-2013 des meetups Paris-Devops, Theodo organise la 10ème rencontre des devs et des ops dans ses nouveaux locaux le 10 octobre 2012. Orienté plutôt langage, la thématique de ce meetup sera PHP-Python-Ruby-Perl. Pour assister aux présentations puis… Continue reading
Theodo is growing!
When I started working at Theodo, in october 2009 (indeed, nearly 3 years ago :)), we were 6 people. Now, Theodo is an awesome team of 20 theodoers[1], each with a different profile (still working hard ;)), and many more will be coming in the next months. Our current office, at Rue Notre Dame des Victoires… Continue reading
Theodo at Forum PHP and sfLive in Paris next week
The upcoming week will be really busy as two main conferences for the french PHP community will take place in Paris. First the Forum PHP organized by AFUP from Tuesday to Wednesday at Cité universitaire. Going there you will meet many French PHP experts and among them Theodo which sponsors the event. As every year Fabrice… Continue reading