:::: MENU ::::

How to find possible loops in hierarchy using sql

Hierarchies are quite difficult to represent correctly in a flat structure such as that of a SQL Table. Recently, I had to work on finding possible looks in a db hierarchy. In this post I will share with you the tips I gathered all around the internet to solve this problem efficiently.

Continue Reading

Why is it a best practice to use var in c#?

The var keyword might appear a little bit deceiving sometimes, specially when involving Linq in the equation. Some developers (particularly novice ones) can’t seem to draw the line between two things that are separate concepts. So, what is the best practice when using var in C#?

Continue Reading

C# virtual methods

Ah! and yet again we find ourselves in the deep rabbit hole of Object Oriented Programming. In this particular instance I will discuss a bit on the mysteries of polymorphism and in particular virtual method. Continue Reading