Archive for category .NET
IoC and Dependency Injection With “Unity Application Blocks”
Posted by Kinnar Shah in .NET, ASP.NET MVC, Technology on January 15, 2010
Modern business applications consist of custom business objects and components that perform specific tasks or generic tasks within the application, in addition to components that individually address crosscutting concerns such as logging, authentication, authorization, caching, and exception handling.
The key to successfully building these types of applications is to achieve a decoupled or very loosely coupled design. Loosely coupled applications are more flexible and easier to maintain. They are also easier to test during development. You can mock up shims (lightweight mock implementations) of objects that have strong concrete dependencies, such as database connections, network connections, enterprise resource planning (ERP) connections, and rich user interface components.
Dependency injection is a prime technique for building loosely coupled applications. It provides ways to handle the dependencies between objects. For example, an object that processes customer information may depend on other objects that access the data store, validate the information, and check that the user is authorized to perform updates. Dependency injection techniques can ensure that the customer class correctly instantiates and populates all these objects, especially where the dependencies may be abstract.
Read More At MSDN
Interesting Linq Problem
Posted by Kinnar Shah in .NET, Technology on November 4, 2009
Check out the code below:
using System.Linq;
class Program
{
static void Main()
{
int[] data = { 1, 2, 3, 1, 2, 1 };
foreach (var m in from m in data orderby m select m)
System.Console.Write(m);
}
}
Now, the question is:
If valid, how?
If not valid, why?
(Source: Eric Lippert’s Blog)
DAIICT | ASP.NET MVC Session
Posted by Kinnar Shah in .NET, Technology on October 31, 2009
Hey folks!
Today there was my session on ASP.NET MVC at DAIICT, Gandhinagar. And an amazing seminar it was for me..
It started with Vivek giving a brief introduction about me to the crowd.
Then we had a session on ASP.NET MVC where I bored the poor kids to death for 1 hour and 20 mins <Evil Grin>
Then cane a session on Windows Mobile by Kaushal.
To wrap it up, we had an HOL on windows mobile where we showed some nifty tricks that can be done on windows mobile.
The resources of my presentation can be found here: ( Presentation , Code Sample )
To run this sample you will need:
- VIsual Studio 200 Or Visual Web Developer 2008 Express Edition (Download Express Edition)
- Visual Studio 2008 SP1 (Download)
- ASP.NET MVC Framework (Download)
Keep watching this space for a detailed walk-through of the contact manager I made in the presentation.
You can see the gallery of the photos of this event here: ( Uploading Soon…)
Learning Resources:
•C#
–MSDN
–C# 3.0, A Beginner’s Guide | Herbert Schildt | TMH
•ASP.NET Fundamentals
–MSDN
–ASP.NET, A Beginner’s Guide | William Sanders | TMH
•MVC
–Http:// asp.net/mvc
–Http://weblogs.asp.net/ScottGu
–Professional ASP.NET MVC 1.0 | Scott Guthrie et.al. | Wrox
–Pro ASP.NET MVC Framework | Steven Sanderson | Apress