8 Aralık 2013 Pazar

dependency injection in .net - ninject

i am spending this cold but bright sunday at home, since my mother had a simple surgery-like operation lately. So i am trying to solve some problems today to facilitate my week. One of those is refactoring my C# project by applying dependency injection.
Here is a short video which clearly explains the concept: http://www.youtube.com/watch?v=IKD2-MAkXyQ
My tool choice is ninject, since it is lightweight and does not require to write an xml for configuration. ( Despite being a SOA developer for several years in the past and dealt with bpel for a while, i still do not like using XML as a programming language. Here is an up-to-date discussion about it: http://programmers.stackexchange.com/questions/213316/xml-based-programming-languages )
Here is Ninject home page: http://www.ninject.org/
a sample chapter named Getting Started with Ninject can be downloaded from Scribd http://tr.scribd.com/doc/170865212/9781782166207-Mastering-Ninject-for-Dependency-Injection-Sample-Chapter
- a practical introduction mini-book: http://www.jeremybytes.com/Downloads/DependencyInjection.pdf
which barely mentions Ninject.

to start with Visual Studio 2013

i strongly recommend to watch http://www.youtube.com/watch?v=wa9Tvr9yiQs prior to development with Visual Studio 2013.

7 Aralık 2013 Cumartesi

a good eclipse - visual studio comparison article

Here is an article which compares Eclipse and Visual Studio: http://jmonkeycoder.wordpress.com/2013/08/28/eclipse-vs-visual-studio/
totally agree :)

windows authentication in IISExpress

When i migrated from Visual Studio 2012 to 2013, HttpContext.Current.User.Identity.Name started to return an empty string . To overcome this, i had to turn on Windows authentication and turn off anonymous authentication in applicationhost.config file and restart Visual Studio 2013. (http://stackoverflow.com/questions/4762538/iis-express-windows-authentication)
By the way, the project properties are as follows: