28 September, 2014

varchar vs nvarchar

What are the differences between varchar and nvarchar in Microsoft SQL Server? Question quite common on the recruitment tests, but the question: when and why we should use this one or this one is not so simple. First, let’s take a look what are varchar and nvarchar: nvarchar- variable-length,...

31 August, 2014

UI Holy Grails part 1 - how to set two controls in one line

Everyone, who at least once was making an UI for the web application, met this problem: how to center vertically two controls, which are in one container side by side? One of them is higher, the second one lower, and when you finally set them up correctly – the div below the container double its height!...

24 August, 2014

ForEach != foreach

It is very often that we have to make some operations on every element in the collection. The most popular ways of doing this is to use a “for” or ”foreach” loop. Here are three ways of doing this: “For” loop – One of the oldest loops known to the mankind. It is the easy solution to get e.g. particular...

12 August, 2014

Unit testing with authentication

When we are developing an application that will be integrating with third party system, we often face the problem of testing some methods, that are using common session, which ID is being returned to us as a result of Authentication process. I have met this problem many times, when I was making integration...

04 August, 2014

Welcome to my blog!

Welcome everybody on my blog! I was thinking about starting the blog for more then a year. Finally, I have decided to start describing solutions of some problems, that I meet in my everyday work as a software developer. I hope you like it and find it usef...