Mahesh's profile▒▒╰☆╮Mahesh kumar R {Yes...PhotosBlogLists Tools Help

Blog


    All about Model View ViewModel (MVVM) ? - Points to Note

    * Its an architectural pattern used in software engineering that originated from Microsoft
    * targeted at modern UI development platforms (WPF and SL)
    * View-Model is responsible for exposing the data objects from the Model in such a way that those objects are easily managed and consumed. In this respect, the View-Model is more Model than View, and handles most if not all of the View’s display logic 
    * Pattern is designed to support WPF and Silverlight

    Elements of the MVVM pattern include:
       (1) Model as in the classic MVC pattern, the model refers to the data access layer representing the real state content.
       (2) View as in the classic MVC pattern, the view refers to all elements displayed by the GUI such as buttons, windows, graphics, and other controls.

       (3) ViewModel: the ViewModel is a “Model of the View” meaning it is an abstraction of the View that also serves in data binding between the View and the Model. It could be seen as a specialized aspect of what would be a Controller (in the MVC pattern) that acts as a data binder/converter that changes Model information into View information and passes commands from the View into the Model. The ViewModel exposes public properties, commands, and abstractions. The ViewModel has been likened to a conceptual state of the data as opposed to the real state of the data in the Model.
    src(wikipedia)

    Azure™ Developer Challenge - Contest entries & Result

    These days I'm glued very much to cloud computing via twitter(#surprisedcloud), janakiramm.net/blog/, RSS updates, infosys microsoft blog etc. In addition to this, here is the much awaited contest result out for new CloudApp() - Read from here - http://www.newcloudapp.com/ Personally I like MyImpulsive & radio, infacted voted for this two. 
    Interesting part is, my current employer-sapient also appeared for this - http://sapientlabs.cloudapp.net/ 
    Cloud computing is really rocks and looking forward !

    Why I should not use DataTable.Select() for larger set of records

    Reason : Performance degrade
    How      : Select() takes arbitary criteria, returns an array of DataRows (Row Collection).  It has to walk thru the entire table and compare every record to the criteria that you passed in. It is
    considered worst method to use for large set of records.

    So here is the alternative,
    1) DataTable.Rows.Find if you look for single row...
    2) Indexing the DataTable..but need to build Index in .NET Code as well.
    3) LINQ - recommended
    4) Morphing the DataTable into a generic collection like Dictionary(Of String, String) to hold the same data as the DataTable.

    Src : Scaling ADO.NET DataTables and Best Practices for Using ADO.NET

    Microsoft TechEd 2009 Detail


    Type of event : Paid event, 7125.00 Rs.
    More detail @ www.msteched.in/

    Architect contest @ http://www.virtualtechdays.com/toparchitect/

    Updated : Steve Ballmer coming to the event and also Jam with Indian rock band Agnee..
    Looking for Bdotnet member discount..any one from group lead listening..pls grant me discount if applicable as a member.. Nerd

    Problem Statement for MS Architect Contest.

    India Election Pedia – A DIGITAL MESH
    Functions and Features of the system shall include the following:
     
    1. All authenticated users should be able to participate as Voters;
    2. All authenticated users should be able to mark themselves as candidates for a fee and market themselves as Candidates by uploading content onto the system. The content should be in various formats.
    3. All authenticated users should be able to sponsor someone else as Candidates.
    4. All authenticated users should be able to view Candidates’ information.
    5. All authenticated users should be able to view Reviews/Ratings of Candidates.
    6. All authenticated users should be able to start and fill Surveys.
    7. All authenticated users should be able to view Survey Results.
    8. All authenticated users should be able to compare and contrast Candidates based on all relevant information on the Candidate available on the system.
    9. All authenticated users should be able to interact with others as Candidates or Voters.
    10. All authenticated users should be able to view interactions between all.
    11. All authenticated users should be able to submit Candidate Ratings.
    12. All authenticated users should be able to submit comments for Candidates.
    13. All authenticated users should be able to search for anything and everything on the system.
    14. The system should provide a mechanism for other systems to access functionality and data of this system in an open fashion for a fee.
    15. The system should be accessible in a secure fashion by as many people as technically possible irrespective of location, language, ethnic background and technology.
    16. The system should be scalable, reliable, available, responsive, cost-effective as much as possible.
    17. The system should provide best possible User Experience across various devices.
    18. The system should be Microsoft Technology-based leveraging as many existing/upcoming (in the next year or so) Microsoft Technology assets as possible.
    Src : http://www.virtualtechdays.com/toparchitect/problem_statement.aspx

    Achieved MCTS in Web !!

    Yes, this monday I've cleared 70-528 following 70-536 to get MCTS in Web Applications. I was planning this exam for the past 2 years, but every time i get some excuse. But this time I've decided to achieve it without delay. I manage to get decent score around 820 and 875 ( 700 is the pass mark, max 1000). I gave my exam in NIIT Prometric center, Residency road branch. { Note : NIIT dont have parking, Carry 2 original ID proof along with xerox copy }


    Thanks to kalyan  for his blog on 10% gift voucher. Follow here to get one - http://kaliyans.spaces.live.com/blog/cns!96AD32C97E4483A0!712.entry
    On total I saved 10$ (5$ for each exam). Really matters during this testing time...Smile Looking forward to solve the ongoing contest from MS and also TechEd 2009.

    ASP.NET MVC – Points 2 Note

    Hi, Today I had some time for exploring about latest ASP.NET MVC model and concluded myself with few points with lot of questions. Here is those few points which you can make use to kick start your ASP.NET MVC learning.

    images_aspnetlogo

     

     

     

    About ASP.NET MVC from my understanding :There are few Presentation Patterns readily available for Web application. These patterns comes with pro’s and con’s as well. Its all depends about scenario and requirement we choose this patterns. It is broadly classified into 5, here we go..

    Model-View-Controller How do you modularize the user interface functionality of a Web application so that you can easily modify the individual parts.
    Page Controller How do you best structure the controller for moderately complex Web applications so that you can achieve reuse and flexibility while avoiding code duplication?
    Front Controller How do you best structure the controller for very complex Web applications so that you can achieve reuse and flexibility while avoiding code duplication?
    Intercepting Filter How do you implement common pre- and post-processing steps around Web page requests?
    Page Cache How do you improve the response time of dynamically generated Web pages that are requested frequently but consume a large amount of system resources to construct?
    Observer
    How can an object notify other objects of state changes without being dependent on their classes?

     

     

     

     

     

     

    * MVC pattern separates the components of an MVC web application
    * more control over the individual parts of the application and also lets you easily develop,modify and test them
    * based on architectural pattern { Model, View, Controller }
    * It is defined under System.Web.Mvc namespace
    * now 3 types of Microsoft Web development
                           + Traditional web forms with Post back,view state pattern (currently we use)
                           + using MVC
                           + Mingling both ( MVC + ASP.NET traditional )

    mvc_small MVC got 3 components,
    MODEL : acts as a DB interface (Business Logic), either as Object / Dataset.
      -> for DDL operation - Object (Model Object) retrieve,store,update state in DB.
      -> for DML operation - Dataset will act as Model object,fetch and display
    VIEW  : acts as a UI for our Model Object/Dataset. Page with controls,CSS etc (UI Logic)
    CONTROLLER : Controls and handles user interaction (Input logic), handles user input,events,query string values, values passed to method  etc

    * loose coupling between the three main components of an MVC application also promotes parallel development. For instance, one developer can work on the view, a second developer can work on the controller logic, and a third developer can focus on the business logic in the model.
    * MVC framework does not an replacement of Web Forms model.

    Advantages of an MVC-Based Web Application :
    ======================================
    * It easier to manage complex app by dividing an application into the model, the view, and the controller.
    * It does not use view state or server-based forms, It uses a Front Controller pattern that processes Web application requests through a single controller
    * It provides better support for test-driven development
    * It works well for Web applications that are supported by large teams of developers and Web designers who need a
    high degree of control over the application behavior.
    * Mapping URLs to ASP.NET pages or handlers, the framework maps URLs to -> controller classes. Controller classes
    handle incoming requests, such as user input and interactions, and execute appropriate application and data logic, based on user input.

    NEW -URL Mapping : MVC framework uses a URL-routing engine that provides flexibility for mapping URLs- > controller classes.

    OLD – POSTBACK: It does not use post back model for interactions with the server. Instead, all end-user interactions are routed to a controller class. so there is no view state/life-cycle events as like asp.net application.

    Advantages of a Web Forms-Based Web Application :
    ==========================================
    * It supports an event model that preserves state over HTTP, which benefits line-of-business Web application
    development. The Web Forms-based application provides dozens of events that are supported in hundreds of server controls.
    * It uses a Page Controller pattern that adds functionality to individual pages.
    * It uses view state or server-based forms, which can make managing state information easier.
    * In general, it is less complex for application development, because the components (the Page class, controls, and
    so on) are tightly integrated and usually require less code than the MVC model.
    * In an ASP.NET Web site, URLs typically map to files that are stored on disk (usually .aspx files). These .aspx
    files include markup and code that is processed in order to respond to the request.

    From below ref : (1) http://www.asp.net/mvc (2) http://www.microsoft.com/downloads/details.aspx?FamilyID=f4e4ee26-4bc5-41ed-80c9-261336b2a5b6&displaylang=en (3) http://blogs.msdn.com/webdevtools/archive/2009/01/29/t4-templates-a-quick-start-guide-for-asp-net-mvc-developers.aspx 

    I hope this would be useful for new bie’s..

    All Microsoft SDK's in one page..

    I wonder how many of us know all these SDK's..Nerd atleast exact place where we use it.. check here .. http://msdn.microsoft.com/en-us/dd299405.aspx

    Here is my OPML !!

    This is for all my friends who keep asking me to post my RSS OPML. I used to keep this harvested feeds close to me like personal diary Open-mouthed. But i always love to share back to the community & friends. I strongly believe in Learning by Sharing Computer

    [Note :Pls dont forget to leave your comment]Sun

    .NET 3.5 Enhancements Training Kit - Download

    .NET Framework 3.5 Enhancements Training Kit containing Labs, Demos and PPTs – Download ( 35 MB )  it from here.

    Here is the some of the interested topics in detail,

    • Introduction to ADO.NET Data Services
    • Developing ASP.NET MVC Applications
    • Introduction to ASP.NET Dynamic Data
    • Introduction to ADO.NET Entity Framework
    • Introduction to ASP.NET AJAX History
    • Introduction to ASP.NET Silverlight Controls
    http://www.microsoft.com/downloads/details.aspx?FamilyID=355c80e9-fde0-4812-98b5-8a03f5874e96&displaylang=en

    .NET 3.5 Framework Distribution Size

    I’m wondering how many us know Framework 3.5 Distribution size.Nerd.?? But I’m surprised to see whooping..197 MB..OMG..
    .NET Framework 1.0: 19.7MB
    .NET Framework 1.1: 23.1MB
    .NET Framework 2.0: 22.4MB
    .NET Framework 3.0: 50.3MB ( x86 )
    .NET Framework 3.0: 90.1MB ( x64 )
    .NET Framework 3.5: 197.0MBHot
    (via) Ricks’ Blog

    new web site for all Visual Studio extensions - VisualStudioGallery.com

    The Microsoft Visual Studio Ecosystem team has officially launched the new Visual Studio Gallery site at http://visualstudiogallery.com/. This new web site is a resource center for all Visual Studio extensions and includes everything from free VS Power Toys like tools to VSIP products. Any developer can post information and a link for their Visual Studio extensions. http://www.visualstudiogallery.com
    Some more useful links on this:
    http://www.visualstudiogallery.com/ExtensionGallery.aspx?id=0d28f031-1c7e-4856-95ac-0603dd0c76f0
    http://blogs.msdn.com/vsxteam/archive/2008/02/27/Visual-Studio-Gallery-announced.aspx


    Are you a 100% Web developer ?

    Since I’m doing my very first Ajax project in ASP.NET ( moved from winform app to webapp ), I've been subscribed for internal training with my company who provides trainining on ASP.NET Ajax Javascript stuffs etc. In which I've come across the below interesting slide during first day of my training for web developers. It iterates the importance and percentage of involvment during web development. Until that training, I was thinking ASP.NET and C# will make my life easierHot, but I completely agree with my trainner for this.
    ASP.NET -                             30 %
    Javascript & HTML -         20%
    CSS -                                     10 %
    ADO.NET & C#     -              40 %
    =========================
    Web developers-                100%Computer
    ========================
    Must required for any ASP.NET / Web developer. Are you 100% web developer ..? sorry I’m not yetSad.


    String Reversal with loops and without loops

    Hi all,
    This is a simple coding snippet for Reversing a user inputted string using C#, tried out with various ways and techniques.  Here we go…
    Topics covered: (1) String Reversal with loops and without loops , (2) Char[chrArray] to string conversion
                   //█ String reversal – with loop
            private void button1_Click(object sender,EventArgs e)
            {
                string _strInput = "ABCDE";
                char[] _strResult = new char[_strInput.Length];
                int _count = 0;
                for(int i = _strInput.Length - 1;i > -1;i--)
                {
                    _strResult[_count] = Convert.ToChar(_strInput[i]);
                    _count++;
                }
                // tip #1 // Converting Char[] to String - using stringbuilder class
                StringBuilder strm = new StringBuilder();
                strm.Append(_strResult,0,_strInput.Length);
                MessageBox.Show(strm.ToString());
     
                // tip #2 // Converting Char[] to String - using string constructor
                string _strPrint = new string(_strResult);
                MessageBox.Show(_strPrint);
            }
              //█ String reversal – without loop     
            private void button2_Click(object sender,EventArgs e)
            {
                MessageBox.Show(Reverse("ABCDE"));
            }
            //Recursive function (author : unknown,from net )
            string Reverse(string _strParam)
            {
                if(_strParam.Length == 1)
                    return _strParam;
                else
                   return Reverse(_strParam.Substring(1)) + _strParam.Substring(0,1);
            }
      Is there any other way of reversing a string..? Hope someone try out if any other possibility exist ..I mean without looping and recursive techniques…..
    Mahesh~

    Microsoft is hosting a virtual career fair

    Hi MS Dreamers,

    This is followed by Windows Live message received from Priya, Microsoft, HR, Redmond asking me to refer her blog post about virtual career fair hosted by MS. I knew this from her blog and also created an avator for me. So hope this could be useful if you are working towards MS career. Here is the actual message from her inbox to me.

    ----------------------

    Hi Mahesh,

    Can you cross reference this article on your blog?

    Guys,

    Microsoft is hosting a virtual career fair, please include this link to your blogs and send this to your friends, it is going to be in a simulated environments, where candidates will have their avtars and there will be real recruiters and hiring managers too as avtars, meeting with candidates and answering questions etc. It is almost as good as any career fair, just better. The deadline to submit resumes is Monday. The candidates can be college/industry. This is a great opportunity for you to refer your friends, not only will they be able to submit resumes, but actually go through preliminary interview on line. http://blogs.msdn.com/jobsblog/archive/2007/05/11/microsoft-in-second-life.aspx. I am very proud of this cool way of attracting talent and reaching out to a broader audience world wide. If nothing this will be a great story and a great experience.

    Thank you, Priya


    Hope the above url gives you the MS career chance, if you meet their expectation. Virtual Job fair is not new to us, but here once you registered it will prompt you with time slot for online appearance. All you need is Internet,patience and timing on that schedule.

    Enjoy. All the best.
    Mahesh~

    CLR Profiler for the .NET Framework 2.0

    CLR Profiler for the .NET Framework 2.0 is out - released on 4/16/2007 ( 5.0 MB)
    Clock the download here > CLR Profiler for .NET 2.0.