First tryst with .Net
Disclaimer in the beginning itself : I am a java professional basically and Java J2EE and RDBMS is my bread and butter.
Still, in the due course of time and out of passion for different programming languages, to gain versatility, and because of mood swings I get rather frequently than rarely, I have a fair bit of flair for PHP, Ruby, Python et al…
C and C++ was my introduction to programming language world, some 10 years back, but never got chance to work extensively on those. Had C# basic knowledge as such, but nothing concrete again. That sums up .Net.
But recently got into the project which has its backend in Java and client written in C#. Want to take full use of technologies.
Intsalled .Net framework 1.0/2.0 and 3.5 which comes bundled with VS2008. First thing first, being a Eclipse/Idea guy all along, spent my hours making VS too similar to Eclipse for me. Second, I always start a project with “debug”. Now I am not aware of the theories regarding whether its right or wrong to do so, but yet this is my modus operandi, so I set sail on my debug journey.
Got my debug working. Found out two-three things in first hour, these are:
1. Just like jars, here the things resolve around dlls.
2. the interface to include those dependencies though are pretty bad.
3. VS is much much slow than Eclipse in my humble opinion. You can say I knew it by birth, but now I can definitely write so too.
4. Strange things happen in .Net world (Pardon me, I have heard that too many times that it has definitely affected my viewpoint). My project was supposed to work from the word “go”, but it didn’t. Got some System.DLLexception: and it was not able to load some DLL we are creating in the project through NAnt. (It was my first experience with NAnt too, something, a very little tiny thing about that in some other post too.) so, DLL was there. But why the f***, it was not able to load then. Got to know it might be because of some other DLLs which this DLL is dependent on. Fine. I thought I will check that. got to know about dependecnychecker, run it and to my surprise and irritation found that whatever dlls it require are present in my system, their path is already included. What the hack! Then, just it happens, sometimes some idea strikes by lightning, I thought to give VS a restart and viola! (Questions for experts here first: I have seen these kind of things sometime happening with Eclipse too, not with jars, is it VS issue or some crap of .Net?)
5. Shortcuts with VS are so bad, I say.
6. Good learning, and my learning starts with the DLLimport sort of keywords, already a stuff of intermediate level I guess(other experts can confirm or take me out of my fairy tales)
7. Did learn about setting arguments, setting output directories, Assembly Infos in the first go. first two much like Java, not a big deal!
Hope I will get more insight with already running (although crappy) code at my disposal.
One last question: What’s the best framework to embed MVC in window Form applications?
And what the hack is Resharper?