Blog
Why choose DI interception over aspect oriented programming?
Let me start with saying that in this post I will explain why I think Dependency Injection is a better way to solve cross cutting concerns than AOP. I know there are heavy debates for each side, but I will try to explain my motives. I will only be talking about DI in the context [...]
The N-layer myth and basic Dependency Injection
Dividing an application in N layers is considered a standard and a best practice. It is often thought that this automatically creates a decoupled application. However, just creating layers doesn’t make your code loosely coupled. A typical N-layer application Let’s take a simple layered application: 1. A typical N-layer architecture In the above image you [...]
JavaScript Namespaces and Modules
Namespaces In most programming languages we know the concept of namespaces (or packages). Namespaces allow us to group code and help us to avoid name-collisions. In c# for example you have this declaration namespace MyNameSpace { public class MyClass { } } If you want to use MyClass, you need to do explicitly say in [...]
Javascript hoisting explained
Often I see problems arise when people try to tackle Javascript. Taking a certain behavior for granted can get them frustrated. Javascript has little differences but they can cause unexpected results if not taken into account. One of those differences is the way it handles scope. What is hoisting? In Javascript, you can have multiple [...]
hover background
hover background
hover background