Visual Studio 2012 New Feature MY Work

Wednesday, September 26, 2012



Visual Studio 2012 help developer to focus on what is Important by using New Features in Team Explorer Called “MY Work”. Normally when we are doing some new development in Visual studio. We open multiple windows, breakpoint for the debugging current scenario. Sometimes mid of development we get very urgent. Like some bug fix.  For that you have changed the whole context. To compile and debug   code for bug fixing. Change context it’s really such great Problem me.  Because to change my context of the work I have to close all current working windows and remove all breakpoints and commit the uncompleted code in Visual Studio.  And it’s such a waste of time and developers Productivity.  But in new Microsoft Visual Studio 2012 has a new feature called “My WORK”.
If you’re using Visual Studio Premium or Visual Studio Ultimate you can use My Work Page in Team Explorer.  Just Clicking on “Home Icon”

In My work page you will three major Sections
In Progress Work
By just drag and drop your work item you can track all associated with this task automatically.






 Suspended work

You save current Work State. Like all breakpoints and open windows uncompleted Source Code. And resume it later to start from the same state. It’s just like Pausing IED. 




 Available work items
All tasks which Assign by Team to you. On Agile board by using the TFS Agile Template.  Automatically will appears in here. And when you just drag them into In Progress work automatically IT start’s tracking of all code Changes and Associated with this task. And that your team can monitor form agile board.
And you Team Member can also check all Code Changes in browser with side by side comparison.  
 Code Reviews and Requests
 In visual studio 2012 you can improve your code quality and reduce the risk. By using Code Review or Requests.  You can Request your team member to review your code or test and helps you to solve the problem. And another team member can receives Code Review Requests and they can respond their idea and Point of view by test or code. The requester has right to accept these code changes or reject them.


Reference :
http://msdn.microsoft.com/en-US/library/hh474795
http://msdn.microsoft.com/library/ms245462(v=vs.110)#my_work

By : Usama Wahab Khan

The Visual Guide for Building Team Foundation Server 2012 Environments

Tuesday, September 25, 2012

MEA ALM Community is an independent & non -profit community, dedicated to supporting and educating Microsoft Application Lifecycle Management tools and technologies. The key mission of our community is to provide a strong and vibrant community for the different roles involved in software development and delivery to enable them build better software!



Watch the Videos

This Guide comes with 38 videos that explain all scenarios in a step-by-step manner.

Parts

Part 1- Introduction & Overview
Part 2 - Creating & Preparing the Required Infrastructure
Part 3- Installing and Configuring Team Foundation Server Pre-requisites
Part 4- Installing and Configuring Team Foundation Server
Appendices

Chapters

Part 1- Introduction & Overview

  • Chapter 1: Introduction
  • Chapter 2: Architecture & System Requirements

Part 2 - Creating & Preparing the Required Infrastructure

  • Chapter 3: Creating & Preparing the Domain Controller
  • Chapter 4: Creating & Preparing the TFS Infrastructure Physical Machine (Hyper-V Host)
  • Chapter 5: Creating & Preparing the Team Foundation Server Virtual Machine

Part 3- Installing and Configuring Team Foundation Server Pre-requisites

  • Chapter 6: Installing & Configuring SQL Server 2012
  • Chapter 7: Installing & Configuring SharePoint Server 2010
  • Chapter 8: Configuring SharePoint Server 2010 for Dashboard Compatibility

Part Part 4- Installing and Configuring Team Foundation Server

  • Chapter 9: Installing & Configuring Team Foundation Server 2012 
  • Chapter 10: Configuring the Team Build Service
  • Chapter 11: Configuring the Enterprise Application Definition

Appendices

  • A. Creating Local Service Accounts and Groups for Windows Server 2012 
  • B. Installing Hyper-V Role on Windows Server 2008 R2
  • C. Adding .NET 3.5 Framework feature for Windows Server 2008 R2
  • D. Configuring SQL Server 2012 Analysis Services Port
  • E. Configuring SQL Server 2012 Database Engine Port
  • F. SQL Server 2012 Installation Verification  
  • G. SharePoint Server 2010 SP1 Installation Verification
  • H. Team Foundation Server 2012 Installation & Configuration Verification

Videos

    Team

















    Reference 
    http://tfs2012visualguide.codeplex.com/

    Most Important Design Patterns for SharePoint developer

    Friday, September 21, 2012


    A design pattern approach in SharePoint development is very important for standard and  reusable Solution for most common problems in software development. A design pattern is not only for implementation of code. its solution template to solve real life Programmatic Problems.  adopting design pattern approach to develop solution for SharePoint    that allows you to formulate a high level Solutions that is independent of the implementation details.


    Most Common Design Pattern for SharePoint Development.


    • Model-View-Presenter (MVP)
    • Repository
    • Service Locator
    • The Trusted Façade Pattern

    Model-View-Presenter (MVP)


    As UI-creation technologies such as ASP.NET and Windows® Forms become more and more powerful, it's common practice to let the UI layer do more than it should. Without a clear separation of responsibilities, the UI layer can often become a catch-all for logic that really belongs in other layers of the application. One design pattern, the Model View Presenter (MVP) pattern, is especially well suited to solving this problem.


    In SharePoint
    A Web page or Web Part in a SharePoint application contains controls that display application data. A user can modify the data and submit the changes. The Web page or Web Part retrieves the data, handles user events, alters other controls on the page in response to the events, and submits the changed data. Including the code that performs these functions in the Web page or Web Part makes them complex, difficult to maintain, and hard to test.


    Repository

    Repositories act as mediators, or interface layers, between different parts of an application. The Training Management application uses repositories to manage persistence of information. The Training Management repositories are responsible for querying SharePoint and for updating SharePoint list items.

    Retrieving data from SharePoint lists requires careful use of the SharePoint API, knowledge of the GUIDs related to lists and fields, and a working knowledge of Collaborative Application Markup Language (CAML). The Training Management Web forms, event receivers, and workflow business logic all require access to the Training Management lists. In the original version of the application, the list access logic was scattered throughout the application. To correct this problem, the application now centralizes the list access logic in repositories. Repositories simplify the access to list data and provide a layer of abstraction that makes unit testing with mock objects much easier.

    Mostly SharePoint applications,  the business logic accesses data from data stores such as SharePoint lists, or Web services. Directly accessing the data can result in the following:

    • Duplicated code
    • A higher potential for programming errors
    • Weak typing of the business data
    • Difficulty in centralizing data-related policies such as caching
    • An inability to easily test the business logic in isolation from external dependencies
    Use the Repository pattern to achieve one or more of the following objectives:

    • You want to maximize the amount of code that can be tested with automation and to isolate the data layer to support unit testing.
    • You access the data source from many locations and want to apply centrally managed, consistent access rules and logic.
    • You want to implement and centralize a caching strategy for the data source.
    • You want to improve the code's maintainability and readability by separating business logic from data or service access logic.
    • You want to use business entities that are strongly typed so that you can identify problems at compile time instead of at run time.
    • You want to associate a behavior with the related data. For example, you want to calculate fields or enforce complex relationships or business rules between the data elements within an entity.
    • You want to apply a domain model to simplify complex business logic.

    Interactions of the repository

      Interactions of a SharePoint list repository
     
    Using the Repository pattern in a SharePoint application addresses several concerns.

    SharePoint applications often store business information in SharePoint lists. To retrieve data from SharePoint lists requires careful use of the SharePoint API, knowledge of the GUIDs that are related to the lists and their fields, and a working knowledge of CAML. Repositories centralize this logic.
    The amount of code that is required to query or update a SharePoint list item is enough to warrant its encapsulation into helper methods. When Web Forms, event receivers, and workflow business logic all require access to the same lists, the code that accesses the SharePoint lists can be duplicated throughout the application. This can make the application prone to bugs and difficult to maintain. Repositories eliminate this duplication.
    Without a repository, the application is difficult to unit test because the business logic has direct dependencies on the SharePoint lists. Repositories centralize the access logic and provide a substitution point for the unit tests.
    Components of a SharePoint list repository
     

    Reference 

    Service Locator

     A service locator provides a centralized point for registering and looking up different objects. Service location is a useful way to hide the specific implementation of a service from the consumer of that service. For example, in the Training Management application, a Web Form may need to use a human resources (HR) management service, but it does not require information about how the service is implemented. It simply accesses an instance of that service. Service location is a common feature of dependency injection containers such as the Unity Application Block, the Castle Windsor Container, and the StructureMap dependency injection framework. The Training Management application implements a simple service locator, without the features of a full dependency injection container, such as cascading dependency resolution, lifetime management, and property/constructor injection.

    You have classes with dependencies on services whose concrete types are specified at compile time. In the following example, ClassA has compile time dependencies on ServiceA and ServiceB. The following diagram illustrates this.

    This situation has the following drawbacks:

    To replace or update the dependencies, you must change your classes' source code and recompile the solution.
    • The concrete implementation of the dependencies must be available at compile time.
    • Your classes are difficult to test in isolation because they have a direct reference to their dependencies. This means that these dependencies cannot be replaced with stubs or mock objects.
    • Your classes contain repetitive code for creating, locating, and managing their dependencies.
    • The next section describes how to address these issues.

    Use the Service Locator pattern to achieve any of the following objectives:

    You want to decouple your classes from their dependencies so that these dependencies can be replaced or updated with little or no change to the classes.
    You want to write logic that depends on classes whose concrete implementation is not known at compile time.
    • You want to be able to test your classes in isolation, without the dependencies.
    • You do not want the logic that locates and manages the dependencies to be in your classes.
    • You want to divide your application into loosely coupled modules that can be independently developed, tested, versioned, and deployed.
    How classes use a service locator
      

    http://msdn.microsoft.com/en-us/library/ff648968.aspx

    The Trusted Façade Pattern
     You want to authenticate external users that access a client application. Both the users and the application are outside the corporate firewall. The application is in the perimeter network (also known as DMZ, demilitarized zone, and screened subnet). It uses a Web service that is behind the firewall, in the corporate network. The application and the Web service also use different credential stores and authentication mechanisms. The following diagram shows the network topology.

    Topology of the network
     

    Use the Trusted Façade pattern with a SharePoint application to do the following:

    • Authenticate external users of a SharePoint application that is located in a perimeter network. The SharePoint application uses a credential store that is also in the perimeter network.
    • Authenticate the SharePoint application in a perimeter network to a Web service in the corporate network with credentials that are recognized in the corporate security domain.
    • Ensure the confidentiality and integrity of messages that are exchanged between the SharePoint application and the Web service.
    • Have a Web service in a corporate domain apply authorization rules that are based on the identity of the external user.
    • Avoid creating additional credential stores to store passwords in the SharePoint application.
              Trusted façade security layers
      



    Reference 




    -----------------------------------------------------------------------------------------------------------
    Reference


    Dev Saturday UAE – Pilot

    Monday, September 17, 2012

    Out Frist Great Effort with UAE DEV Community. Thanks to All member of Dev Saturday UAE. to make this event and community. Special thanks for All Student off Khalifa University and IEEE. 

     


     







     
















     
     
    Title:

    ·         Dev Saturday UAE – Pilot

    Attendees:

    ·         60-70 technology specialists and matter experts in different fields (most of which are Microsoft, may include some on Google or any other field of interest)

    Agenda:

    Celebrating our first official Saturday. The main purpose is to explain our group goals & initiative, and setting our future agenda and topics. The rest of the event will be an introduction to each member, a short bio and his ideas regarding the group growth and topics to be discussed in future events.

    ·         [09:30 am – 10:00 am] Registration and coffee

    ·         [10:00 am  – 10:15 am] Welcome and opening speech

    o   Faculty member (Electronic & Computer Engineering)

    o   IEEE Student Chapter’s president

    ·         [10:15 am – 10:30 am] Keynote speech will take place for 15 minutes. Speakers are:

    o   Mr. Omar Rizk (CPO @ SwiftTask)

    o   Mr. Usama Khan
    o   Mr. Khalid Hikmat

    ·          [10:30 am – 12:00 pm] Discussion Panel. Panel speakers are:

    o   Mr. Khaled hekmat

    o   Mr. Usama Khan

    o   Mr. Omar Rizk

    o   Mr. Oubai Abbasi

    o   Mr. Salman Khan

    ·         [12:00 pm – 12:30 pm] Highlighting latest web trends & Cloud computing technologies.

    ·         [12:30 pm – 01:00 pm] Lunch & Networking.

    Location:

    ·         Academic Building Auditorium – 1st floot - Khalifa University, Abu Dhabi.
     
     

    Timing:

    ·         On the 15th of September 2012 - 10:00 – 1:00 AM. Lunch will be included as well as coffee and snacks.

    Host:

    •   Khalifa University’s IEEE Student Chapter, Abu Dhabi Campus.
    • Dev Saturday UAE

    Media Coverage:

    ·         Gulf news (still not confirmed)
    Great Community UserGroup  Startup with Oubai Abbasi  Omar A. Rizk, Khalild,Ali.
     
     
    For Future Events

    http://devsaturdayuae.eventbrite.com/

    FaceBook : Join US
    https://www.facebook.com/groups/254601744660754/

    I love PROPHET Muhammad peace be upon him(SALLLAH HO WALI WASALAM)

    Sunday, September 16, 2012

    Please respect.

    SharePoint 2013 With New for You(Developer)



    My First Presentation for SharePoint Dev

    Visual Studio2012: New SharePoint Development 2013

    Thursday, September 13, 2012





    • Create lists and content types by using designers.
      You can more easily create a list or a content type by using a designer to set up and lay out the contents of the list or content type. For more information, see Creating Site Columns, Content Types, and Lists for SharePoint.
    • Create site columns for SharePoint sites.
      You can more easily create SharePoint site columns, which are also known as "fields," by using an item template. For more information, see Creating Site Columns, Content Types, and Lists for SharePoint.
    • Add Silverlight web parts to your SharePoint projects.
      You can more easily and conveniently create Silverlight web parts by using a project template. For more information, see Walkthrough: Creating a Silverlight Web Part that Displays OData for SharePoint.
    • Publish SharePoint solutions to remote SharePoint sites.
      You can publish SharePoint solutions to remote SharePoint sites, in addition to local SharePoint sites. For more information, see Deploying, Publishing, and Upgrading SharePoint Solution Packages.
    • Increase SharePoint performance by using profiling tools.
      By using tools in Visual Studio, you can identify code and other elements that are slowing down your SharePoint projects and perform other performance profiling. For more information, see Profiling the Performance of SharePoint Applications and Analyzing Application Performance by Using Profiling Tools.
    • Create sandboxed visual web parts..
      You can include visual web parts in sandboxed SharePoint projects, not just farm projects.
    • Create sandboxed solutions more easily.
      When you’re working on a sandboxed solution in Visual Studio, only compatible APIs appear in Intellisense, and a compiler error occurs if you try to use farm-only API calls.
    • Debug JavaScript more easily.
      You can debug JavaScript in SharePoint projects, and IntelliSense is provided when you're coding JavaScript in SharePoint projects. URLs for JavaScript are resolved for visual web parts in sandboxed solutions.
    • Develop SharePoint projects more easily by using streamlined project templates.
      To help streamline SharePoint development, some SharePoint project templates from the previous version of Visual Studio were moved into project item templates. For a full list and descriptions of the project and project-item templates, see SharePoint Project and Project Item Templates.
    • Test your code by using the Microsoft Fakes framework.
      SharePoint projects support Microsoft Fakes, which is an isolation framework in which you can create delegate-based test stubs and shims in .NET Framework applications and test your code by isolating your unit tests from the environment. For more information, see Verifying and Debugging SharePoint Code by Using ALM Features.