visual studio 2010 - blogs.infosupport.com · visual studio 2010 architecture tools marcel de vries...

17
Visual Studio 2010 Architecture tools Marcel de Vries Technology Manager [email protected]

Upload: others

Post on 07-Aug-2020

8 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Visual Studio 2010 - blogs.infosupport.com · Visual Studio 2010 Architecture tools Marcel de Vries Technology Manager marcelv@infosupport.com. Agenda •Visual Studio 2010 Architecture

Visual Studio 2010

Architecture tools

Marcel de VriesTechnology Manager

[email protected]

Page 2: Visual Studio 2010 - blogs.infosupport.com · Visual Studio 2010 Architecture tools Marcel de Vries Technology Manager marcelv@infosupport.com. Agenda •Visual Studio 2010 Architecture

Agenda

• Visual Studio 2010 Architecture tools

– What is coming

– Problem space

– Code Exploration

– Design up front

– Summary

Page 3: Visual Studio 2010 - blogs.infosupport.com · Visual Studio 2010 Architecture tools Marcel de Vries Technology Manager marcelv@infosupport.com. Agenda •Visual Studio 2010 Architecture

Test and Lab Manager

Test Case Management

Fast Fwdfor Manual Testing

Manual Testing

Lab Mgmt Config.

Checkpoint Environment

Environment from TemplateVirtual Env. Setup/Tear Down

Reporting

Team Portal

Test Case ManagementBranch Visualization

Version Control

Build Automation

Gated Check-in

Agile Planning Tools

Team Explorer

Team Agents

Page 4: Visual Studio 2010 - blogs.infosupport.com · Visual Studio 2010 Architecture tools Marcel de Vries Technology Manager marcelv@infosupport.com. Agenda •Visual Studio 2010 Architecture

Test and Lab Manager

Manual Testing

Layer Diagram

UML Modeling

Load Testing Web Testing

Test Case ManagementIntelliTrace™

Architecture Explorer Fast Fwdfor Manual Testing

Logical Class Designer

Cloud Development

Office Development

Windows Development

New WPF Editor Customizable IDE

Multi-core DevelopmentSilverlight Tools

Web Development

SharePoint Development

Generate from Usage

Static Code Analysis

Database Deployment

Code Metrics

Database Unit Testing Test Data Generation

Test Impact AnalysisUI Test Automation

Code Coverage

Performance Profiling

Database Change Mgmt

Page 5: Visual Studio 2010 - blogs.infosupport.com · Visual Studio 2010 Architecture tools Marcel de Vries Technology Manager marcelv@infosupport.com. Agenda •Visual Studio 2010 Architecture

Why software models are challenging

• Creating models & diagrams costs significant effort

• They should be used with common sense

• UML as a standard in the market– Only few models are used

– Usage varies by person• E.g. Use case modeling can be done in many different ways

– You need to add your company standard to the way models and diagrams are created

• Models are often stale– What you design today will be implemented

differently

Page 6: Visual Studio 2010 - blogs.infosupport.com · Visual Studio 2010 Architecture tools Marcel de Vries Technology Manager marcelv@infosupport.com. Agenda •Visual Studio 2010 Architecture

When do you create a model?• Depends on many different factors

– Available tools– E.g. Number of team members

• It is about communication, so:– Create only models that serve a purpose

• If your customer don’t (want to) understand Use Cases then use a different technique!

– Create only models of those things that differ from the normal case• Create a diagram only once to explain a pattern• Don’t model until you drop• If generation is the goal, think real hard how to make it work

• Create models on demand– Model first– Code First

Page 7: Visual Studio 2010 - blogs.infosupport.com · Visual Studio 2010 Architecture tools Marcel de Vries Technology Manager marcelv@infosupport.com. Agenda •Visual Studio 2010 Architecture

Visual Studio 2010 Architect edition

• New project type: Modeling Project

• Support for UML 2.x Diagrams– Use case

– Sequence

– Component

– Activity

– Class

• Other new type of diagrams– Layered Diagram

– DGML Diagrams in many different forms

Page 8: Visual Studio 2010 - blogs.infosupport.com · Visual Studio 2010 Architecture tools Marcel de Vries Technology Manager marcelv@infosupport.com. Agenda •Visual Studio 2010 Architecture

Models first approach

• Scenario: You start a new project and start defining the solution you’re going to build– Requirements Analysts use Activity and Use case

diagrams to outline functionality– Architects build logical diagrams to outline the

required architecture to meet customer demand stated in the requirements

– Testers use the diagrams to do it’s test analysis based on the requirements specified

– Developers can use the diagrams to materialize the projects

• Models are used to communicate throughout the team what we are going to build

Page 9: Visual Studio 2010 - blogs.infosupport.com · Visual Studio 2010 Architecture tools Marcel de Vries Technology Manager marcelv@infosupport.com. Agenda •Visual Studio 2010 Architecture

Demo

Using Modeling projects in VS2010

Page 10: Visual Studio 2010 - blogs.infosupport.com · Visual Studio 2010 Architecture tools Marcel de Vries Technology Manager marcelv@infosupport.com. Agenda •Visual Studio 2010 Architecture

Code First approach

• Scenario: maintenance on existing projects, extending an existing codebase

• Developer can generate diagrams to gain insights on code dependencies

• Architect can find architecture patters

• Create your UML diagrams on demand!

• Based on visualizations– New type of diagram: DGML

– Directed Graph Markup Language

Page 11: Visual Studio 2010 - blogs.infosupport.com · Visual Studio 2010 Architecture tools Marcel de Vries Technology Manager marcelv@infosupport.com. Agenda •Visual Studio 2010 Architecture

DGML

• Directed Graph Markup Language

• Nodes

• Containers

• Links

• Styles

Page 12: Visual Studio 2010 - blogs.infosupport.com · Visual Studio 2010 Architecture tools Marcel de Vries Technology Manager marcelv@infosupport.com. Agenda •Visual Studio 2010 Architecture

Architecture Explorer

• Understanding a system can prevent the butterfly effect.

• Architecture Explorer helps discover and understand how a system works.

• Visualize existing code assets and how they connect.

Page 13: Visual Studio 2010 - blogs.infosupport.com · Visual Studio 2010 Architecture tools Marcel de Vries Technology Manager marcelv@infosupport.com. Agenda •Visual Studio 2010 Architecture

Demo

Architecture ExplorerBuilding and annotating DGML DiagramsGenerating Sequence Diagrams

Page 14: Visual Studio 2010 - blogs.infosupport.com · Visual Studio 2010 Architecture tools Marcel de Vries Technology Manager marcelv@infosupport.com. Agenda •Visual Studio 2010 Architecture

Models that work with code

Page 15: Visual Studio 2010 - blogs.infosupport.com · Visual Studio 2010 Architecture tools Marcel de Vries Technology Manager marcelv@infosupport.com. Agenda •Visual Studio 2010 Architecture

Layer Diagram

• Architectural validation ensures code matches intended design.

• Layer diagram details the intended design.

• Classes and namespaces are mapped to layers in the diagram.

Page 16: Visual Studio 2010 - blogs.infosupport.com · Visual Studio 2010 Architecture tools Marcel de Vries Technology Manager marcelv@infosupport.com. Agenda •Visual Studio 2010 Architecture

Demo

Layered diagram and validation

Page 17: Visual Studio 2010 - blogs.infosupport.com · Visual Studio 2010 Architecture tools Marcel de Vries Technology Manager marcelv@infosupport.com. Agenda •Visual Studio 2010 Architecture

Summary

• Use models and Diagrams to communicate in your team

• VS2010 now supports both approaches to modeling

– Models First

– Code First

• New innovations in models that work with code

– Layered diagram to validate your designs