Monthly archives: August, 2014

Unity Container: What was wrong with this code?

Recently, I reviewed code from a candidate. He wrote a simple Web Application using WebApi. And he used Unity as IoC Container. And this is part of the code I asked him the question My question to him: What is wrong with that code? And his answer: Due to from best practice from this post: …

Support serialization with Expando object

Recently I have a chance to work with project that need to store dynamic data, work with dynamic data. The data will be stored in RavenDB. After some considerations, I decided to use this implementation from Rick  Strahl. Everything works fine, except saving to database. It is store as empty object in RavenDB. Just add …

Design and implement a template engine–part 2

In the Design and implement a template engine – part 1 I mentioned about a better solution: Reuse Razor Engine. In the post, I go in detail of how to implement it. But, first, we need to know some concepts: Concepts Template Engine: Use to render a template into string Template Model Builder: Build the …

Can we code when age?

I am a developer living in Vietnam. I got many friends from the university, from companies I worked. When I was under 30; just a number to say that when I was young developer; my friends usually say: You cannot code when you are age; assuming over 30 as they said. You have to do …

Design and implement a template engine – part 1

Recently, I got a task which is typical in many systems: Template with merge fields. The common usage is for email. Given that an employee is created, the system will notify the manager by email with template: Dear Manager, New employee {Name} has been created on {DateTime.Now}. From the above statement, we have template with …

Get started – again

It has been a while I have not written anything. And I almost forgot that I do have a blog. Fortunately, from this August, I set some big goals for my life, targeting in next 2 years. As I learn from “Getting things done”, I better write them down and get started. Goals are not …

%d bloggers like this: