DDD – Domain Driven Development

One of the new challenges I faced at my new job was understanding and adapting to DDD. It can be a bit confusing at first, but as soon as I made sense of it, I couldn’t not recommend it.

In this post i want to explain the basic concept of DDD.

What is DDD?

DDD consists in one domain project that doesn’t depend on anything, while the other projects depend on it. Usually, the domain project contains interfaces, domain entities and utility classes that don’t depend on third parties. Confusing? I’ll explain better in the example below.

Continue reading DDD – Domain Driven Development

ASP.NET MVC Tricks (Remote Validation)

The necessity of validation a field in a form using AJAX it’s really common. Sometimes it can give a little work but the ASP.NET NET 3/4 has one attribute to help us for this kind of work.

Here is a simple demonstration of how to check if a username already exists in the system. Because the username should be unique.

Continue reading ASP.NET MVC Tricks (Remote Validation)

reCaptcha + Asp.Net MVC 3/4

What is reCaptcha ?

reCaptcha, it’s an anti-bot service, in other words checks if it was a human or a bot submitting a form. But it also has another utility, when we are using this service we are helping on digitize of books.

Here is an explanation of how it works. (Link)

If you want to learn more about this you should spend 15 mins of your day, watching this Ted Talk.

Continue reading reCaptcha + Asp.Net MVC 3/4

Moq Framework

What is Moq FrameWork?

Moq is one mocking library for .NET developers to simulate objects that pretend the behavior of real objects. A programmer generally creates a mock object to test the behavior of some other object. This framework is the only one who takes full advantage of .NET plataform (ex: Linq, Expression Trees) and C# features (ex: Lambda Expressions) that make it the most productive.

Moq supports mocking interfaces, classes(the classes can’t be sealed) and you cannot mock static methods.

Continue reading Moq Framework

Xna: Recycle Game

Recycle Game is the first game that i created with Microsoft XNA 4.0 framework. It was relatively easy and fast to develop it. I created this game with my friend, Flávio Cadete (Designer), for a little competition of indie games in Portugal, just for fun.
This game is very simple and its goal is to pick up the trash from the streets, to clean the city, and then you have to choose the right color of the container (yellow, green or blue) to recycle it.

Continue reading Xna: Recycle Game


Xna is a Microsoft’s framework that gives you a chance to easily create your own games (2D, 3D) with C# language. This framework is 100% free and if you have a good idea you can also try to sell it at marketplace of windows phone.
Another advantage is that when you are developing a game in XNA, you can do it for three platforms (Windows Phone, Windows an Xbox 360) at the same time.

For more Information : http://msdn.microsoft.com/en-us/centrum-xna.aspx

Continue reading Xna