Monday, December 31, 2012

Interesting Findings - Entity Framework

Performance Considerations http://msdn.microsoft.com/en-us/data/hh949853.aspx Notracking option If you don't want the context to track some entities you can use this option. But make sure to use it in correct situations. Otherwise you'll end up having bad performance. Often, Entity Framework generates nested sql queries. This is the easiest way to build query logically from the expression tree. Entity...

Saturday, December 29, 2012

What you need to know about performance in Entity Framework

http://msdn.microsoft.com/en-us/data/hh949853.aspx  Mapping Views Mapping views are set of SQL statements that represents the database in an abstract way, which are also part of the metadata. link1, link2 Query execution Deferred vs. Immediate execution Client side execution of LINQ queries Query and mapping complexity Mapping complexity Query complexity Relationships Query paths Saving...

Saturday, December 22, 2012

Saturday, December 8, 2012

Stuff you need to know about JavaScript

JavaScript has lot of concepts around it. There are things that you might miss out. Lets see some of them. In JavaScript there are some variables starting as __ (__defineGetter, __defineSetter, __proto__). These are variables defined by the browser and are not defined by ECMAScript #convention (link2)  Best practice to define libraries is to define one global variable (google, jquery) and...

Friday, November 30, 2012

Wednesday, November 28, 2012

Compilation basics in .NET

Compiler is a computer program that transforms the source code into a target language which can be executed directly.  Following are few concepts behind compilation JIT - Just In Time compiler Ahead of time compilation Compilation in ASP.NET # Intermediate language (IL) Also known as MSIL (Microsoft Intermediate Language). All .NET source code is compiled to IL which is then converted...

Thursday, November 22, 2012

C# Tips and Tricks

For a seasoned software developer, knowing just the basics and theories of programming is going to do any good. They must also be aware of little tricks which makes development easy and fun. In this article I'll share few tips which we can use to improve our coding. (I'll be focusing on C# here.) Null-Coalescing operator Rather than explaining...

Saturday, November 10, 2012

JavaScript prototyping

In JavaScript, every object has a prototype property. Prototype property is also an object. All JavaScript objects inherit there properties and methods from there prototypes. Using prototypes makes object creation faster. This file contains bidirectional Unicode text that may be interpreted or compiled differently than...

Saturday, November 3, 2012

Introduction to IIS

IIS is a web server software developed by Microsoft. IIS provides a request processing architecture. IIS includes, A customizable web server engine by adding or removing modules Windows Process Activation Service (WAS) which enables sites to use protocols other than HTTP and HTTPS Integrated request processing pipelines from IIS and ASP.NET Components in IIS Performs important functions in IIS....

Wednesday, October 17, 2012

ASP.NET MVC Controller class

Controller is the base class from which we create Controllers in ASP.NET MVC (article). The base class Controller has many useful properties and methods. If you look in to the MSDN documentation of the Controller class you can see a comprehensive list of that. Controller actions HttpContext (type = HttpContextBase) Gets HTTP specific information about an individual HTTP request. You should...

Monday, October 8, 2012

Sunday, September 30, 2012

Useful Delegates in .NET

Func<T, TResult> Delegate Encapsulates a method that has one parameter and return a value of the type specified by the TResult parameter. Use this method to represent a method that can be passed as a parameter without explicitly declaring a custom delegate. Action<T>  Delegate Encapsulate a method that has one parameter and does not return a value. ...

Lambda Expressions in C#

Lambda expression is a anonymous function that you can use to create delegates or expression tree types. These are useful for writing LINQ query expressions. Expression Lambdas A lambda expression with a statement on right side of => operator. These are used to construct expression trees.  This file contains...

Friday, September 14, 2012

Session State Modes in ASP.NET

ASP.NET session state supports several different storage options for session data. Each option is identified by value in the SessionStateMode enum. ASP.NET Session has the type HttpSessionStateBase type. Session has 2 methods, Session.Clear() and Session.Abandon(). See the difference. InProc (default) Store session state in web server memory. StateServer  Store session state in a separate...

Monday, September 10, 2012

Delegates in C#

In simple words delegate is a type that references to a method with a particular parameter list and a return type. You can invoke(call) the method through the delegate instance. Delegates are used to pass methods as arguments to other methods. Event handlers are methods invoked through delegates. Delegate is a similar concept as function pointers in C and C++. The ability to pass methods as parameters...

Saturday, September 1, 2012

HTML Elements

Upto HTML 4.01. block level elements and inline elements.  inline elements:  respect l to r margins and padding. not top and bottom cannot have width and height set allow other elements to sit to their l and r can display things before and after it, on the same line. span, a, strong, em, img, input, abbr, acronym block respect all of those force a line break after the block element demands...

Saturday, August 25, 2012

What is reflection

The main value of using reflection is to inspect assemblies, types and members. Using reflection you can retrieve type information at run-time. Its a powerful tool to examine the unknown assembly or iterate through object details. When you're working with a third party assembly you can use reflection to grab type information. Resources http://stackoverflow.com/questions/1458256/why-is-the-use-of-reflection-in-net-recommended http://programmers.stackexchange.com/questions/123956/why-should-i-use-reflection http://msdn.microsoft.com/en-us/library/ms173183.aspx http://www.tutorialspoint.com/csharp/csharp_reflection.htm ...

Friday, July 13, 2012

Tuesday, July 10, 2012

Filters in ASP.NET MVC

Filters are .NET attributes used to inject extra logic into MVC framework request processing. You can apply filters before and after calling an action method (pre-action and post-action).  Filters can be used for, - Custom Authentication - Custom Authorization (User or Role base) - Error handling and logging - User Activity logging -...

Tuesday, July 3, 2012

Generics in C#

Introduced in .NET 2.0, Generics introduced type parameters to the framework. Generics makes it possible to design classes or methods to defer the specification of types until the class or method is declared and instantiated by the client code.  This file contains bidirectional Unicode text that may be interpreted or...

Saturday, June 16, 2012

Tuesday, June 12, 2012

All about C Sharp

Basics Structs and classes Modifiers Enums Abstract Interfaces Constructors Generics Delegates and Events Lambda expressions Nullable types Dynamic binding Attributes Globalization String and text hanlding Dates and times Collections LINQ  XML Disposal and Garbage collection Threading Streams and I/O Networking Dynamic programming Security Advanced threading Parallel programming COM Regular...

Sunday, May 20, 2012

Federated Identity

Single Sign On (SSO) allows users to access multiple services with a single login.  Federated Identity refers to where the user stores their credentials. Also Federated Identity can be viewed as a way to connect identity management systems together.  Claim based Authentication Claim based authentication for dummies (SO) Claim based architectures Claim based identity model  Resources http://security.stackexchange.com/questions/13803/what-is-single-sign-on-versus-federated-login http://en.wikipedia.org/wiki/Federated_identity http://en.wikipedia.org/wiki/Claims-based_identity...

Saturday, April 14, 2012

HTTP Modules

HTTP module is an assembly which gets called for every request made to the application. You can use these to customize and extend ASP.NET request pipeline. HTTP Modules are similar to ISAPI filters in that they run for all requests. ISAPI filter : Internet Server API (Read more here) You can work on this example to see how HttpModule works. Typical usage Security :...

Saturday, April 7, 2012

Introduction to RequireJS

To do modular programming you can use RequireJS. It is a JavaScript file and module loader.  Loads all codes relative to a baseUrl With paths config you can setup locations of a group of scripts You can define modules in RequireJS in few different ways Simple name/value pairs Definition functions Definition functions with dependencies Define...
Powered by Blogger.


Software Architect at Surge Global/ Certified Scrum Master

Experienced in Product Design, Software Engineering, Team management and Practicing Agile methodologies.

Search This Blog

Facebook