Want to Live in Italy for a While? Get in Touch

I’ve been working remotely as a PHP developer for the last 3 years and in the last 2 of them I’ve spent several months outside Italy. As I already wrote, I love this kind of lifestyle and I want to continue this way.

I’m planning to spend next winter in Berlin and for this round I’d like to try home exchange, maybe with someone interested in the same kind on “semi-nomadic” lifestyle.

If you live in Berlin (or somewhere else, who cares :D) and you’re curious about living in Italy for 3 to 6 months, keep reading, maybe we can make a deal ;)

Read on →

Exploiting CGI for Functional Testing

Recently I had the chance to work on a huge code base that has been evolved and maintained for a long time. When refactoring time comes you’d like to have comfy and reliable test suite to count on, but we all know that this is not always the case, especially talking about code that has been around for a while.

Looking for a safe refactoring strategy I stumbled upon in CgiHttpKernel and it really made my day, allowing me to test my legacy scripts.

After playing briefly with it I want to share my experience with you.

Read on →
TDD

How to Copy Documents With Doctrine PHPCR

If you’re working with Doctrine PHPCR and you need to copy a document, with all its children, you may find this snippet useful:

1
2
/* @var $dm Doctrine\ODM\PHPCR\DocumentManager */
$dm->getSession()->getWorkspace()->copy('/node/to/copy', '/copy/of/the/node);

More information about tree operations can be found at phpcr-odm wiki

First Contact With Laravel

As a Symfony developer when it’s time to start a new PHP project, usually, it tooks me about 1.2 seconds to decide for Symfony. I’m working with it since its version 1, I’m quite proficient in it and it is a really good piece of code, so why bothering with something else? If I need to get some work done, Symfony2 is the best way I know to achieve that.

That said I find extremely useful (and fun) keeping an eye on other tecnologies, frameworks, etc etc. Last night I decided to go for a ride with laravel. Laravel is an emergent PHP framework and is getting more and more popular so I thought it was worth a look.

What’s coming here is not an extensive and detailed description of the framework, neither a reinterpreted version of the “getting started” documentation, but rather some thoughts about the framework from a “Symfony oriented developer”. Just my impressions and opinions after playing around with it for a while.

Read on →

A Monogamous Freelance

I realized that I’m kind of a monogamous freelance. It took me some time to get this but I’m feeling that it is quite an achievement. I wouldn’t probably call it an epiphany, but it always feels good when you realize something new about yourself.

Read on →
job

Time to Move Again

It’s been a nice (and short) summer, and it’s time to move again. Some time ago we (me and my girlfriend) decided to travel around the world, but just travelling was not enough for us, we wantend to “live” in a new place for a while. When you move to a new city for living and not just for sightseeing you get to know a completely different story than as a tourist. We wanted that point of view.

So we moved to Edinburgh from May 2012 to February 2013. In mid February we were back to Italy. We spent the all summer here, with friends and family, and now is backpack time again.

Read on →

Switching From TDD to BDD With Behat and Symfony2

Recently I started a small extra project with a smart fellow from my local PHP User Group, since the project was quite simple and both of us were willing to learn something new, we decided to give BDD a try. In the PHP world BDD means Behat, Mink and PHPSpec.

Working on a real project is always different to dealing with documentation, and we had to go through many different issues. Most of the issues related to our old habits with Xunit testing frameworks and some others were due to us getting used to different APIs.

In this post I won’t cover all the details about BDD, Behat or PHPSpec, I’d rather describe how I switched from PHPUnit and TDD to BDD (and also show some bits of code).

Read on →

Long Time No See

I have to admit it: I haven’t been an active blogger in the last year. Not really because I don’t enjoy writing nor for lack of time and motivation, I guess many of reasons that kept me away from this blog are not real, they are just excuses and so I decided to change.

From today I’ll try to bring this blog to a new life, sharing something about me, and some lessons I’ve learned (about PHP and maybe about my real life).

Starting from scratch is always thrilling, what is the best way to enjoy it if not using some new technologies? So I’ve decided to get rid of the good old wordpress website and build this new one using Octopress and github pages. Just writing markdown and deploying through a git push sounds like a lot of fun, but it is not just this, it is more a matter of being focused on content instead of dealing with a CMS. Wordpress is really easy to use, and it works just fine, but git is a part of my daily workflow and using it also for blogging feels way more natural, let’s see how it will work.

That’s all for now, this is just kind of a hello world post.

By the way, you’ll get all the code of this blog on github, if you found any error or typo, please fork and edit the post. Thank you so much! This post is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.