Classes and structs encapsulates set of data and behaviors into a logical unit. A class is a reference type while struct is of value type. When a struct is assigned to a new variable it is copied. Struct is like a light-weight class. (Read)
Note: the new operator is used to create and invoke objects. The new operator doesn't mean it is a reference type. It says the type has a constructor. All...
Monday, December 29, 2014
Wednesday, October 8, 2014
Saturday, September 27, 2014
Overview of OWIN and Project Katana

Image credit : MSDN
Historically ASP.NET architecture (System.Web.dll) was coupled to a specific web hosting option IIS. To separate this, ASP.NET MVC was released as an independent download.
Then Microsoft built ASP.NET Web API such that it had no dependencies on any of the core framework types found in System.Web.dll. therefore it had no...
Understanding Deferred in JQuery
Simplest example of ajax request in JQuery.
$.ajax('http://ip.jsontest.com/', {
success: function (result) {
console.log('success');
},
...
Thursday, August 21, 2014
Abstract in C#
In this article, we'll look at what abstract in C# is. Also we'll look at
when and how you can use it to get its benefits.
In C# abstract modifier indicates that the thing being modified has a missing or incomplete implementation. This modifier can be used with classes, methods, properties, indexers and events.
Abstract classes...
Saturday, August 2, 2014
Execution Context Best Practices in JavaScript
In this article we'll see what this means, and places where this is applicable.
We'll also look at how to manipulate this with built-in functions like
apply, call and bind.
Every JavaScript statement is executed in one execution context or the other. In it's simplest terms this refers to the "owner" of the function we currently executing. this helps us to get the object...
Saturday, July 26, 2014
Hidden Secrets of Interfaces in .NET C#
Interface contains definitions for a group of related functionalties that a class or a struct can implement. Interface in C# is similar to an abstract class in which all methods are abstract (Why C# interface methods not declared as abstract).
Interface can contain methods, properties, events, indexers but it can't contain constants, fields...
Friday, July 25, 2014
How to Asynchronous Programming in C#
async and await are the main keywords in asynchronous programming. You can use asynchronous with things such as downloads, uploads etc.
Below example shows you how to get a specific Http Header asynchronously.
Name of async method by convention ends with async.
Return type is one of the following,
Task<TResult>
Task
void
Method...
Wednesday, July 9, 2014
Covariance and Contravariance in Generics
Covariance
Enables you to use more specific type than the type originally specified.
IEnumerable<Derived> d = new List<Derived>();
IEnumerable<Base> b = d;
Contravariance
Enables you to use more generic type than the type originally specified.
Action<Base> b = (target) => { Console.WriteLine(target.GetType().Name); };
Action<Derived> d = b;
d(new Derived());
Examples...
Tuesday, July 8, 2014
Introduction to Entity Framework
Entity Framework (EF) is an object-relational mapper (ORM) for .NET. Entity Framework can be used to work with relational data using domain-specific objects. Entity Framework eliminates need for data access code that programmers usually need to write. The codes you write with Entity Framework will be converted to SQL queries.
You can view...
Monday, July 7, 2014
What is ASP.NET Core
ASP.NET Core (previously known as ASP.NET VNext and then ASP.NET 5) is the next version of ASP.NET. Unlike its predecessors, Core is is open source available on github.
Here are some of the features
Open source and cross platform
Can run on .NET core or on full .NET framework
Leander and modular
ASP.NET Core is no longer based on System.Web.dll it is now based on NuGet packages
Built-in...
Wednesday, May 7, 2014
Understanding IEnumerable and IQueryable in C#
IEnumerable<T> is the base interface for collections in System.Collections.Generic namespace. IEnumerable<T> exposes
the enumerator which supports iteration over a collection of a specified type. For non-generic types .NET has another interface called IEnumerable. See the difference between IEnumerable<T> and...
Monday, March 10, 2014
Deferred in JQuery
Web applications are kept alive by data. These data usually retrieved from data sources. AJAX (Asynchronous JavaScript and XML) is a technique used to communicate with web servers to send and receive data asynchronously. Often you'll send a ajax request, wait for data to come inside
callbacks and execute rest of the flow. Ajax uses XMLHttpRequest object to communicate with server side.
XMLHttpRequest...
The Comparison of Continuous Integration, Deployment and the Delivery
What appears in title seems familiar? It should because these are the concepts (or you can say techniques) we use to deliver our products to stakeholders. Even though Continuous Delivery, Continuous Integration and Continuous Deployment are the buzzwords today most people often misunderstands the difference among each.
First we'll look...
Saturday, March 1, 2014
Performance tuning JavaScript
In this article we'll look at what is performance,
why it is important, different ways of tracking performance issues
and ways to solve them.
What and why performance is important?
Performance tuning is very important when an application gets larger. But it can be very crucial to retain the value of the software. When developing...
Monday, February 24, 2014
Data Validation in Entity Framework
Validating data is important to make sure bad data is not getting into the system causing unnecessary troubles. When developing applications using Entity Framework, you can use features in .NET and Entity Framework to ensure only valid data will flow through it. Here we'll see what features we can use with Entity Framework to do our job
Using Data-Annotations
Data-Annotations are attributes...
Subscribe to:
Posts (Atom)
Powered by Blogger.
Software Architect at Surge Global/ Certified Scrum Master
Experienced in Product Design, Software Engineering, Team management and Practicing Agile methodologies.