January 2012
10 posts
Sortable List using ASP.net MVC and jQuery
Sorting is one of the most basic and essential algorithm form the early days of computation, In this article we will be discussing about sorting a list of items in a web application, this is one of the common feature given to the administrators, for example sorting the products in an e-commerce application, FAQ list etc etc, I am using the feature list as an example, typically this will be like...
Jan 25th
jQuery collapsible menu
I was trying to implement a collapsible menu using jQuery following John Resig’s  online tutorial. it was great, such a nice effect with little code, I found one problem with the effect though, when I tried to click on the menu item which was already open it animated the list items again, I searched for any fixes for this but was not able to fin one so I thought let me try to fix this, here is the...
Jan 25th
Anonymous Types
Anonymous Types are inline class definition which is created at compile time, we use the same syntax of Object Initializer to declare a Anonymous Types but with out the class name var customer = new {Name = “Paolo Accorti”, Country = “Italy”}; In my previous post about Local Type Inference we discussed about the varkeyword and how it provides us a relaxed way of...
Jan 25th
Local Type Inference – var keyword
Type Inference is one of the important features for a dynamic language; it preserves type safety while allowing you to write code with more ease. The compiler has the built-in intelligence to determine the “Type” of a variable.  There is always an argument about code readability when it comes to dynamic type inference, but when we work with external APIs and language features like LINK this...
Jan 25th
LINQ: Introduction
What is LINQ  LINQ is a uniform programming model for any kind of data. LINQ enables you to query and manipulate data with a consistent model that is independent from data sources. LINQ stands for Language Integrated Query LINQ can be used to query against any kind of data collection like Database, XML file, ADS and so on, technically speaking any class that implements the IEnumerable or...
Jan 25th
Refactoring: Replace Nested Conditions with Guard...
Jan 25th
Refactoring: Reverse Conditional
Jan 25th
Refactoring: Move Declaration near Reference
Jan 25th
Refactoring: Coding Standards
Jan 25th
Refactoring: Introduction
When we work on a project as a developer our main focus is to write code and complete the requirements of the modules given to us, once we are done we just call it a day, when the other developers try to refer the module we develop they are clueless most of the time and the worst part we ourselves forget what we did and what a particular line of code is supposed to do. In  Agile software...
Jan 25th