On leaving places.

It all begins when you start living in a place, even for a short period. Even if you don’t want to blend with the people, to disappear in the crowd. It’s not a matter of time. It’s a matter of trails left behind, trails of our past selves on the ones...

1 minute read

Dell Limerick Hackathon 2016

Hi everybody! Last January we had an Hackathon here @ Dell Limerick, the main theme was “office productivity”, aka “how would you improve your and your coworker’s productivity”. I was in a team with other 4 very smart guys, didn’t won but all in all it was a terrific experience…two...

2 minute read

Unit testing MongoDB in C# part 3: the database factories

Welcome to the third article of the series! Last time I was talking about the database context and at how I injected a Factory to create the repositories. Of course we could have injected every single repository in the cTor, but this way adding a new collection to the database would force too...

4 minute read

Unit testing MongoDB in C# part 2: the database context

Hi All! Last time I rambled a little bit about TDD and how to implement a very simple MongoDB repository. This time I want to introduce you to my cool friend, DbContext. The basic idea is to have an interface exposing all the collection on your db, or, in our case,...

4 minute read

Unit testing MongoDB in C# part 1: the repository

Ok folks, this time I’ll talk/brag a little bit about the fabulous C# MongoDB driver and how you can write some testable code with it. If you have come across this post, probably you already know what unit tests and TDD are so you can go directly to the code....

3 minute read

the importance of scope.apply() when testing promises

“remember kids, Jasmine likes to apply” …sorry, what? Well, basically, it’s simple: when writing unit tests on promises with Jasmine, remember to call $scope.apply(), it will save you some headaches! take a look at this AngularJs controller. Look at it. <span class=pl-k>var</span> <span class=pl-s1>myApp</span> <span class=pl-c1>=</span> <span class=pl-s1>angular</span><span class=pl-kos>.</span><span class=pl-en>module</span><span...

5 minute read

How I moved to Ireland (and survived to tell the tale)

It’s been almost two months that I have moved to Ireland now and guess what? I survived. The first week has been very difficult. Foreign country, no car and being alone knowing that I was going to be alone for a long time…all of this started to led me down...

2 minute read

Store and retrieve a class containing interfaces with JSON.NET

Suppose you have code like this: public interface IMyInterface { // blah } public class MyClass { public IEnumerable<IMyInterface> TheItems { get; set; } } </p> view raw json-interface-serialization-1.cs hosted with ❤ by GitHub </p> and you want to serialize in JSON an instance of MyClass. If you are using...

4 minute read