applicatieplatform congres 12 & 13 maart. modeling that works with code preview vsts architect...

18
Applicatieplatform congres 12 & 13 maart

Upload: jett-acy

Post on 29-Mar-2015

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Applicatieplatform congres 12 & 13 maart. Modeling that works with code Preview VSTS Architect edition 2010 Marcel de Vries IT- Architect Info Support

Applicatieplatform congres12 & 13 maart

Page 2: Applicatieplatform congres 12 & 13 maart. Modeling that works with code Preview VSTS Architect edition 2010 Marcel de Vries IT- Architect Info Support

Modeling that works with code

Preview VSTS Architect edition 2010

Marcel de VriesIT- Architect Info SupportMicrosoft Team System MVP

[email protected] Support

Page 3: Applicatieplatform congres 12 & 13 maart. Modeling that works with code Preview VSTS Architect edition 2010 Marcel de Vries IT- Architect Info Support

Agenda

• Why we use models• Models first approach• Code first approach• Conclusion

Page 4: Applicatieplatform congres 12 & 13 maart. Modeling that works with code Preview VSTS Architect edition 2010 Marcel de Vries IT- Architect Info Support

Why we use models& diagrams

Communication

Page 5: Applicatieplatform congres 12 & 13 maart. Modeling that works with code Preview VSTS Architect edition 2010 Marcel de Vries IT- Architect Info Support

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: Applicatieplatform congres 12 & 13 maart. Modeling that works with code Preview VSTS Architect edition 2010 Marcel de Vries IT- Architect Info Support

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: Applicatieplatform congres 12 & 13 maart. Modeling that works with code Preview VSTS Architect edition 2010 Marcel de Vries IT- Architect Info Support

Visual Studio 2010 Architect edition

• New project type: Modeling Project• Support for UML 1.2 Diagrams• Use case• Sequence• Component• Activity• Class

• Other new type of diagrams• Layered Diagram• DGML Diagrams in many different forms

Page 8: Applicatieplatform congres 12 & 13 maart. Modeling that works with code Preview VSTS Architect edition 2010 Marcel de Vries IT- Architect Info Support

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: Applicatieplatform congres 12 & 13 maart. Modeling that works with code Preview VSTS Architect edition 2010 Marcel de Vries IT- Architect Info Support

Demo

• Using Modeling projects in VS2010

Page 10: Applicatieplatform congres 12 & 13 maart. Modeling that works with code Preview VSTS Architect edition 2010 Marcel de Vries IT- Architect Info Support

Describe your requirements and design your application using UML 2 designers• Use Case• Activity• Component• Class• Sequence

Page 11: Applicatieplatform congres 12 & 13 maart. Modeling that works with code Preview VSTS Architect edition 2010 Marcel de Vries IT- Architect Info Support

Link any model element to TFS work items allowing ongoing tracking throughout the development process

Page 12: Applicatieplatform congres 12 & 13 maart. Modeling that works with code Preview VSTS Architect edition 2010 Marcel de Vries IT- Architect Info Support

Code First aproach

• Scenario: maintenance on existing projects, extending an existing codebase• Developer can generate diagrams to gain insights on code dependencies• Architect can find architecture patters• Based on visualizations• New type of diagram: DGML• Directed Graph

Markup Language

• Create your UML diagrams on demand!

Page 13: Applicatieplatform congres 12 & 13 maart. Modeling that works with code Preview VSTS Architect edition 2010 Marcel de Vries IT- Architect Info Support

Demo Code First

• Using Architecture explorer VS2010

Page 14: Applicatieplatform congres 12 & 13 maart. Modeling that works with code Preview VSTS Architect edition 2010 Marcel de Vries IT- Architect Info Support

Models that work with code

Page 15: Applicatieplatform congres 12 & 13 maart. Modeling that works with code Preview VSTS Architect edition 2010 Marcel de Vries IT- Architect Info Support

Introducing the Layered Diagram

Validate your code against your Architecture using the Layer diagram

Page 16: Applicatieplatform congres 12 & 13 maart. Modeling that works with code Preview VSTS Architect edition 2010 Marcel de Vries IT- Architect Info Support

Demo Layered diagram and validation

• Using Layered diagram in VS2010

Page 17: Applicatieplatform congres 12 & 13 maart. Modeling that works with code Preview VSTS Architect edition 2010 Marcel de Vries IT- Architect Info Support

Conclusion

• 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

Page 18: Applicatieplatform congres 12 & 13 maart. Modeling that works with code Preview VSTS Architect edition 2010 Marcel de Vries IT- Architect Info Support

Bedankt voor uw aandacht

LINQ Poster af te halen op de stand