SlideShare a Scribd company logo
Domain Analysis
                              & Data Modeling
                                   Lecture2



                                                        Course IN4308
       Eelco Visser
                                             Master Computer Science
  http://eelcovisser.org                 Delft University of Technology
Thursday, February 11, 2010
Course Goal




   Learn to design and implement
     domain-specific languages

                         Understand DSL design choices and make
                         reasoned decisions about their application
Thursday, February 11, 2010
Model-Driven Software Development




   Problem
                                      DSL                HLL             Machine
   Domain




                              domain-specific models reduce gap between
                                 problem domain and implementation
Thursday, February 11, 2010
Why domain-specific languages?



                Domain-specific models
                -       increase level of abstraction
                -       are closer to problem domain
                -       are smaller
                -       are easier to write
                -       are easier to maintain



Thursday, February 11, 2010
What is a model?


                A model
                -       is a simplification of a system
                        ★ abstraction, description, specification, information

                -       can answer questions in place of actual system
                        ★ analysis, inference, predictions

                -       is used for a purpose
                        ★ understanding, planing, risk analysis, ...




Thursday, February 11, 2010
How are ‘models’ different from ‘code’


                -       Models are just another form of code
                -       Are models better than code?
                        ★ no, models provide different level of abstraction
                        ★ depends on the purpose
                        ★ how well does DSL fit purpose
                        ★ should be easier to analyze

                -       Continuum of abstractions
                -       Abstraction => giving up control


Thursday, February 11, 2010
“Far better at some key things”




Thursday, February 11, 2010
How do we make DSLs?




Thursday, February 11, 2010
Syntax



                                                                           Checks

                                     described by
                   Model                            DSL                     Editor

                                                          consists of
                              generate                                  Transformation

               Software
                System                                                    Generator

Thursday, February 11, 2010
What makes a DSL?




Thursday, February 11, 2010
What makes a DSL?


                              The Domain
Thursday, February 11, 2010
What is a domain?



Thursday, February 11, 2010
Domain Engineering is the activity of collecting,
                      organizing, and storing past experience in building
                    systems or parts of systems in a particular domain in
                       the form of reusable assets (i.e. reusable work
                    products), as well as providing an adequate means for
                       reusing these assets (i.e., retrieval, qualification,
                    dissemination, adaptation, assembly, and so on) when
                                     building new systems




                                              Source: Czarnecki & Eisenecker, Generative Programming, 2000
Thursday, February 11, 2010
Domain Engineering

     domain                                domain                   system family
    knowledge                              model                     architecture

                                Domain                  Domain                        Domain
                                Analysis                Design                     Implementation


                                                                                                 DSLs
                    requirements                                                                 components
                                                                                                 generators



                           Requirements                 Product                       Integration
                             Analysis                 Configuration                      and Test
    requirements                           features                   configuration                         product



    Application Engineering
                                                          Source: Czarnecki & Eisenecker, Generative Programming, 2000
s Thursday, February 11, 2010
Application Domain = Family of Systems

                Identify
                -       Commonality
                        ★ What is the same in all systems?
                        ★ Can be reused between applications
                        ★ Standard components
                        ★ Generated code

                -       Variability
                        ★ What is different between systems?
                        ★ Needs to be defined for each application
                        ★ Using domain-specific language

Thursday, February 11, 2010
Domain analysis in
                                        application engineering



                                            implement

                              Problem                     Solution
                              Domain           validate
                                                          Domain



Thursday, February 11, 2010
Domain: “A sphere of knowledge, influence, or activity”




                              “The subject to which the user applies a
                              program is the domain of the software”




                                              Eric Evans, Domain-Driven Design, 2004
Thursday, February 11, 2010
System




Thursday, February 11, 2010
Interaction Design




                              Domain-Driven Design




                               Data Model Design

Thursday, February 11, 2010
Interaction Design




Thursday, February 11, 2010
X + Computer = Computer




                Cognitive Friction




                Dancing Bearware

Thursday, February 11, 2010
Analysis




                Software design driven by developers
                -       implementation model is leading
                -       convenient for developer, not for user
                -       developers drive design ‘from the back seat’




Thursday, February 11, 2010
Thursday, February 11, 2010
User Personas




            Goals (not Tasks)



Thursday, February 11, 2010
Polite software is
  ★ interested in me
  ★ forthcoming
  ★ has common sense
  ★ anticipates my needs
  ★ is responsive
  ★ is taciturn about its problems
  ★ is well informed
  ★ is perceptive
  ★ is self-confident
  ★ stays focused
  ★ is fudgable
  ★ is trustworthy

Thursday, February 11, 2010
Interaction Design
               requires
         Big Up Front Design




Thursday, February 11, 2010
How can we integrate interaction design
               in software engineering?




                              Can programmers be interaction designers?
Thursday, February 11, 2010
Some lessons that I have tried to apply

                -       Direct manipulation
                        ★ edit where you view

                -       No confirmations
                        ★ no destructive, catastrophic actions

                -       No inaccessible actions/links
                        ★ apply access control to source of navigation

                -       Limitations for user should be based on policy
                        ★ policy: rules based on domain requirements
                        ★ mechanism: inconvenient to implement


Thursday, February 11, 2010
Student




                                Course
                                             University
              Guests          Management   Administration
                                System




                               Lecturer

Thursday, February 11, 2010
Thursday, February 11, 2010
Thursday, February 11, 2010
Thursday, February 11, 2010
Thursday, February 11, 2010
Thursday, February 11, 2010
Thursday, February 11, 2010
Thursday, February 11, 2010
Thursday, February 11, 2010
Thursday, February 11, 2010
Thursday, February 11, 2010
Thursday, February 11, 2010
Thursday, February 11, 2010
Thursday, February 11, 2010
Thursday, February 11, 2010
Thursday, February 11, 2010
Thursday, February 11, 2010
What goals does/should ‘The Department’ support?




Thursday, February 11, 2010
Thursday, February 11, 2010
“Every software program relates to some
                          activity or interest of its use. That subject
                          area to which the user applies a program
                                 is the domain of the software”




                                            Eric Evans, Domain-Driven Design, 2004
Thursday, February 11, 2010
“A model is a selectively simplified and
                         consiously structured form of knowledge”




                                         Eric Evans, Domain-Driven Design, 2004
Thursday, February 11, 2010
Ubiquitous Language: “a language
                      structured around the domain model and
                     used by all team members to connect all the
                       activities of the team with the software”




                                       Eric Evans, Domain-Driven Design, 2004
Thursday, February 11, 2010
Thursday, February 11, 2010
[Course]-*[Student]
                                        [Course]-*[Lecturer]
                                        [Course]-*[Assistant]
                                        [Course]-*[Lecture]
                                        [Course]-*[Assignment]
                                        [Assignment]-*[Submission]
                                        [Submission]1-1..[Student]
                                        [Lecture]-[Slides]
                                        [Lecture]-[Notes]

  http://yUML.me: a DSL for drawing UML diagrams
Thursday, February 11, 2010
Thursday, February 11, 2010
Collaboration on Assignments


                Scenario 1
                -       Piet starts submission for Design 1
                -       Jan starts submission for Design 1
                -       Piet and Jan want to work together
                        on Design 1
                Scenario 2
                -       Piet, Jan work together on Design 1
                -       They want to split


Thursday, February 11, 2010
Binding Students to Submissions



                -       Creating submissions
                        ★ should be enrolled

                -       Can be partner if
                        ★ no active submission
                        ★ #students < limit

                -       Start submission if
                        ★ not part of active submission




Thursday, February 11, 2010
Submissions & Deadlines



                -       Edit assignment after submission?
                        ★ before deadline
                        ★ after deadline
                        ★ after/during grading

                -       Status of assignment not submitted before
                        deadline?
                -       Submitting partial assignments?



Thursday, February 11, 2010
Domain Model = Concepts + Interaction




                                       System




                  Domain analysis is more than drawing a class diagram

Thursday, February 11, 2010
A domain-specific language
                               for domain-driven design




Thursday, February 11, 2010
entities with properties
Thursday, February 11, 2010
Thursday, February 11, 2010
Thursday, February 11, 2010
Thursday, February 11, 2010
Thursday, February 11, 2010
Thursday, February 11, 2010
Thursday, February 11, 2010
‘Physical’ Data Models



Thursday, February 11, 2010
From conceptual to physical data model

                In memory
                -       objects
                -       hash maps
                Persistent data
                -       Records in RDBS
                -       XML
                -       JSON
                -       Text (csv)


Thursday, February 11, 2010
Schedule

                Lab this week:
                        ★ WebDSL tutorial => submit page index
                        ★ Make design proposal for a web application
                        ★ Entity declarations for your web application

                Read/think:
                        ★ Read: interaction design, domain-driven design
                        ★ Case 1: analysing issues in digital library domain

                Next week
                        ★ Web Abstractions


Thursday, February 11, 2010

More Related Content

What's hot (20)

PDF
Protection against Lost or Stolen Data with Novell ZENworks Endpoint Security...
Novell
 
PDF
Avoiding Common Novell ZENworks Configuration Management Implementation Pitfalls
Novell
 
PDF
Novell ZENworks Advanced Application Management
Novell
 
ODP
Introducing Novell Conferencing
Novell
 
PDF
Introducing Novell Privileged User Manager and Securing Novell Open Enterpris...
Novell
 
PDF
How to Maintain Software Appliances
Novell
 
PDF
4 - Architetture Software - Architecture Portfolio
Majong DevJfu
 
PDF
What’s New ?Linux on System z
IBM India Smarter Computing
 
PDF
A Complete, Low-cost Virtual Infrastructure for Small and Medium Businesses
Novell
 
PDF
8 - Architetture Software - Architecture centric processes
Majong DevJfu
 
PPT
02archintro
624820
 
PPTX
SET NSF Final Presentation
Stanford University
 
PPTX
Discovering Computers: Chapter 13
Anna Stirling
 
PDF
Software Engineering of Component-Based Systems-of-Systems: A Reference Frame...
lseinturier
 
PDF
V Labs Product Presentation
Wil Huijben
 
PDF
3 f6 9_distributed_systems
op205
 
PPS
Ajs 1 b
Niit Care
 
PDF
Streamline client deployments with customised installation packages
Christian Petters
 
PDF
Impact Analysis - ImpactScale: Quantifying Change Impact to Predict Faults in...
ICSM 2011
 
PPS
Ajs 3 a
Niit Care
 
Protection against Lost or Stolen Data with Novell ZENworks Endpoint Security...
Novell
 
Avoiding Common Novell ZENworks Configuration Management Implementation Pitfalls
Novell
 
Novell ZENworks Advanced Application Management
Novell
 
Introducing Novell Conferencing
Novell
 
Introducing Novell Privileged User Manager and Securing Novell Open Enterpris...
Novell
 
How to Maintain Software Appliances
Novell
 
4 - Architetture Software - Architecture Portfolio
Majong DevJfu
 
What’s New ?Linux on System z
IBM India Smarter Computing
 
A Complete, Low-cost Virtual Infrastructure for Small and Medium Businesses
Novell
 
8 - Architetture Software - Architecture centric processes
Majong DevJfu
 
02archintro
624820
 
SET NSF Final Presentation
Stanford University
 
Discovering Computers: Chapter 13
Anna Stirling
 
Software Engineering of Component-Based Systems-of-Systems: A Reference Frame...
lseinturier
 
V Labs Product Presentation
Wil Huijben
 
3 f6 9_distributed_systems
op205
 
Ajs 1 b
Niit Care
 
Streamline client deployments with customised installation packages
Christian Petters
 
Impact Analysis - ImpactScale: Quantifying Change Impact to Predict Faults in...
ICSM 2011
 
Ajs 3 a
Niit Care
 

Similar to Domain Analysis & Data Modeling (20)

PDF
Generative Software Development. Overview and Examples
Eelco Visser
 
PDF
Introducing MDSD
Pedro J. Molina
 
PDF
Sioux Hot-or-Not: Domain Driven Design (Edwin Van Dillen)
siouxhotornot
 
PDF
Automated Java Code Generation (ICDIM 2006)
IT Industry
 
PDF
Oopsla 2008 Panel Ds Ls The Good The Bad And The Ugly
OOPSLA2008
 
PDF
Initial Results Building a Normalized Software Database Using SRDRs
gallomike
 
PPTX
How to Implement Domain Driven Design in Real Life SDLC
Abdul Karim
 
KEY
On the Relationship Between Change Coupling and Software Defects
Marco D'Ambros
 
PPSX
Software engineering
h2eEdgar
 
PDF
ABSE and AtomWeaver : A Quantum Leap in Software Development
Rui Curado
 
PDF
Code Craftsmanship Checklist
Ryan Polk
 
PDF
What is Software Engineering?
QAI
 
PPTX
Software project management
Narendra Mishra
 
PPTX
Basics of se
Revi Shahini
 
PPT
OO Development 2 - Software Development Methodologies
Randy Connolly
 
PPT
Introduction and life cycle models
themobiforest
 
PDF
MDE first glance
Juan M. Vara
 
PDF
Iswim for testing
ClarkTony
 
PDF
TYPO3 5.0 The Business Case
Robert Lemke
 
PDF
CG2010 Introducing MDSD
Pedro J. Molina
 
Generative Software Development. Overview and Examples
Eelco Visser
 
Introducing MDSD
Pedro J. Molina
 
Sioux Hot-or-Not: Domain Driven Design (Edwin Van Dillen)
siouxhotornot
 
Automated Java Code Generation (ICDIM 2006)
IT Industry
 
Oopsla 2008 Panel Ds Ls The Good The Bad And The Ugly
OOPSLA2008
 
Initial Results Building a Normalized Software Database Using SRDRs
gallomike
 
How to Implement Domain Driven Design in Real Life SDLC
Abdul Karim
 
On the Relationship Between Change Coupling and Software Defects
Marco D'Ambros
 
Software engineering
h2eEdgar
 
ABSE and AtomWeaver : A Quantum Leap in Software Development
Rui Curado
 
Code Craftsmanship Checklist
Ryan Polk
 
What is Software Engineering?
QAI
 
Software project management
Narendra Mishra
 
Basics of se
Revi Shahini
 
OO Development 2 - Software Development Methodologies
Randy Connolly
 
Introduction and life cycle models
themobiforest
 
MDE first glance
Juan M. Vara
 
Iswim for testing
ClarkTony
 
TYPO3 5.0 The Business Case
Robert Lemke
 
CG2010 Introducing MDSD
Pedro J. Molina
 
Ad

More from Eelco Visser (20)

PDF
CS4200 2019 | Lecture 5 | Transformation by Term Rewriting
Eelco Visser
 
PDF
CS4200 2019 | Lecture 4 | Syntactic Services
Eelco Visser
 
PDF
CS4200 2019 | Lecture 3 | Parsing
Eelco Visser
 
PDF
CS4200 2019 | Lecture 2 | syntax-definition
Eelco Visser
 
PDF
CS4200 2019 Lecture 1: Introduction
Eelco Visser
 
PDF
A Direct Semantics of Declarative Disambiguation Rules
Eelco Visser
 
PDF
Declarative Type System Specification with Statix
Eelco Visser
 
PDF
Compiler Construction | Lecture 17 | Beyond Compiler Construction
Eelco Visser
 
PDF
Domain Specific Languages for Parallel Graph AnalytiX (PGX)
Eelco Visser
 
PDF
Compiler Construction | Lecture 15 | Memory Management
Eelco Visser
 
PDF
Compiler Construction | Lecture 14 | Interpreters
Eelco Visser
 
PDF
Compiler Construction | Lecture 13 | Code Generation
Eelco Visser
 
PDF
Compiler Construction | Lecture 12 | Virtual Machines
Eelco Visser
 
PDF
Compiler Construction | Lecture 11 | Monotone Frameworks
Eelco Visser
 
PDF
Compiler Construction | Lecture 10 | Data-Flow Analysis
Eelco Visser
 
PDF
Compiler Construction | Lecture 9 | Constraint Resolution
Eelco Visser
 
PDF
Compiler Construction | Lecture 8 | Type Constraints
Eelco Visser
 
PDF
Compiler Construction | Lecture 7 | Type Checking
Eelco Visser
 
PDF
Compiler Construction | Lecture 6 | Introduction to Static Analysis
Eelco Visser
 
PDF
Compiler Construction | Lecture 5 | Transformation by Term Rewriting
Eelco Visser
 
CS4200 2019 | Lecture 5 | Transformation by Term Rewriting
Eelco Visser
 
CS4200 2019 | Lecture 4 | Syntactic Services
Eelco Visser
 
CS4200 2019 | Lecture 3 | Parsing
Eelco Visser
 
CS4200 2019 | Lecture 2 | syntax-definition
Eelco Visser
 
CS4200 2019 Lecture 1: Introduction
Eelco Visser
 
A Direct Semantics of Declarative Disambiguation Rules
Eelco Visser
 
Declarative Type System Specification with Statix
Eelco Visser
 
Compiler Construction | Lecture 17 | Beyond Compiler Construction
Eelco Visser
 
Domain Specific Languages for Parallel Graph AnalytiX (PGX)
Eelco Visser
 
Compiler Construction | Lecture 15 | Memory Management
Eelco Visser
 
Compiler Construction | Lecture 14 | Interpreters
Eelco Visser
 
Compiler Construction | Lecture 13 | Code Generation
Eelco Visser
 
Compiler Construction | Lecture 12 | Virtual Machines
Eelco Visser
 
Compiler Construction | Lecture 11 | Monotone Frameworks
Eelco Visser
 
Compiler Construction | Lecture 10 | Data-Flow Analysis
Eelco Visser
 
Compiler Construction | Lecture 9 | Constraint Resolution
Eelco Visser
 
Compiler Construction | Lecture 8 | Type Constraints
Eelco Visser
 
Compiler Construction | Lecture 7 | Type Checking
Eelco Visser
 
Compiler Construction | Lecture 6 | Introduction to Static Analysis
Eelco Visser
 
Compiler Construction | Lecture 5 | Transformation by Term Rewriting
Eelco Visser
 
Ad

Recently uploaded (20)

PPT
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
PPSX
HEALTH ASSESSMENT (Community Health Nursing) - GNM 1st Year
Priyanshu Anand
 
PPTX
STAFF DEVELOPMENT AND WELFARE: MANAGEMENT
PRADEEP ABOTHU
 
PDF
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
PDF
The Different Types of Non-Experimental Research
Thelma Villaflores
 
PPT
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 
PPTX
MENINGITIS: NURSING MANAGEMENT, BACTERIAL MENINGITIS, VIRAL MENINGITIS.pptx
PRADEEP ABOTHU
 
PDF
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
PDF
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
PDF
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
PPTX
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
PPTX
SPINA BIFIDA: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
PDF
SSHS-2025-PKLP_Quarter-1-Dr.-Kerby-Alvarez.pdf
AishahSangcopan1
 
PPTX
HYDROCEPHALUS: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
PDF
People & Earth's Ecosystem -Lesson 2: People & Population
marvinnbustamante1
 
PPTX
Soil and agriculture microbiology .pptx
Keerthana Ramesh
 
PPTX
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
PDF
The-Ever-Evolving-World-of-Science (1).pdf/7TH CLASS CURIOSITY /1ST CHAPTER/B...
Sandeep Swamy
 
PDF
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
PDF
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
HEALTH ASSESSMENT (Community Health Nursing) - GNM 1st Year
Priyanshu Anand
 
STAFF DEVELOPMENT AND WELFARE: MANAGEMENT
PRADEEP ABOTHU
 
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
The Different Types of Non-Experimental Research
Thelma Villaflores
 
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 
MENINGITIS: NURSING MANAGEMENT, BACTERIAL MENINGITIS, VIRAL MENINGITIS.pptx
PRADEEP ABOTHU
 
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
SPINA BIFIDA: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
SSHS-2025-PKLP_Quarter-1-Dr.-Kerby-Alvarez.pdf
AishahSangcopan1
 
HYDROCEPHALUS: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
People & Earth's Ecosystem -Lesson 2: People & Population
marvinnbustamante1
 
Soil and agriculture microbiology .pptx
Keerthana Ramesh
 
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
The-Ever-Evolving-World-of-Science (1).pdf/7TH CLASS CURIOSITY /1ST CHAPTER/B...
Sandeep Swamy
 
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 

Domain Analysis & Data Modeling

  • 1. Domain Analysis & Data Modeling Lecture2 Course IN4308 Eelco Visser Master Computer Science http://eelcovisser.org Delft University of Technology Thursday, February 11, 2010
  • 2. Course Goal Learn to design and implement domain-specific languages Understand DSL design choices and make reasoned decisions about their application Thursday, February 11, 2010
  • 3. Model-Driven Software Development Problem DSL HLL Machine Domain domain-specific models reduce gap between problem domain and implementation Thursday, February 11, 2010
  • 4. Why domain-specific languages? Domain-specific models - increase level of abstraction - are closer to problem domain - are smaller - are easier to write - are easier to maintain Thursday, February 11, 2010
  • 5. What is a model? A model - is a simplification of a system ★ abstraction, description, specification, information - can answer questions in place of actual system ★ analysis, inference, predictions - is used for a purpose ★ understanding, planing, risk analysis, ... Thursday, February 11, 2010
  • 6. How are ‘models’ different from ‘code’ - Models are just another form of code - Are models better than code? ★ no, models provide different level of abstraction ★ depends on the purpose ★ how well does DSL fit purpose ★ should be easier to analyze - Continuum of abstractions - Abstraction => giving up control Thursday, February 11, 2010
  • 7. “Far better at some key things” Thursday, February 11, 2010
  • 8. How do we make DSLs? Thursday, February 11, 2010
  • 9. Syntax Checks described by Model DSL Editor consists of generate Transformation Software System Generator Thursday, February 11, 2010
  • 10. What makes a DSL? Thursday, February 11, 2010
  • 11. What makes a DSL? The Domain Thursday, February 11, 2010
  • 12. What is a domain? Thursday, February 11, 2010
  • 13. Domain Engineering is the activity of collecting, organizing, and storing past experience in building systems or parts of systems in a particular domain in the form of reusable assets (i.e. reusable work products), as well as providing an adequate means for reusing these assets (i.e., retrieval, qualification, dissemination, adaptation, assembly, and so on) when building new systems Source: Czarnecki & Eisenecker, Generative Programming, 2000 Thursday, February 11, 2010
  • 14. Domain Engineering domain domain system family knowledge model architecture Domain Domain Domain Analysis Design Implementation DSLs requirements components generators Requirements Product Integration Analysis Configuration and Test requirements features configuration product Application Engineering Source: Czarnecki & Eisenecker, Generative Programming, 2000 s Thursday, February 11, 2010
  • 15. Application Domain = Family of Systems Identify - Commonality ★ What is the same in all systems? ★ Can be reused between applications ★ Standard components ★ Generated code - Variability ★ What is different between systems? ★ Needs to be defined for each application ★ Using domain-specific language Thursday, February 11, 2010
  • 16. Domain analysis in application engineering implement Problem Solution Domain validate Domain Thursday, February 11, 2010
  • 17. Domain: “A sphere of knowledge, influence, or activity” “The subject to which the user applies a program is the domain of the software” Eric Evans, Domain-Driven Design, 2004 Thursday, February 11, 2010
  • 19. Interaction Design Domain-Driven Design Data Model Design Thursday, February 11, 2010
  • 21. X + Computer = Computer Cognitive Friction Dancing Bearware Thursday, February 11, 2010
  • 22. Analysis Software design driven by developers - implementation model is leading - convenient for developer, not for user - developers drive design ‘from the back seat’ Thursday, February 11, 2010
  • 24. User Personas Goals (not Tasks) Thursday, February 11, 2010
  • 25. Polite software is ★ interested in me ★ forthcoming ★ has common sense ★ anticipates my needs ★ is responsive ★ is taciturn about its problems ★ is well informed ★ is perceptive ★ is self-confident ★ stays focused ★ is fudgable ★ is trustworthy Thursday, February 11, 2010
  • 26. Interaction Design requires Big Up Front Design Thursday, February 11, 2010
  • 27. How can we integrate interaction design in software engineering? Can programmers be interaction designers? Thursday, February 11, 2010
  • 28. Some lessons that I have tried to apply - Direct manipulation ★ edit where you view - No confirmations ★ no destructive, catastrophic actions - No inaccessible actions/links ★ apply access control to source of navigation - Limitations for user should be based on policy ★ policy: rules based on domain requirements ★ mechanism: inconvenient to implement Thursday, February 11, 2010
  • 29. Student Course University Guests Management Administration System Lecturer Thursday, February 11, 2010
  • 46. What goals does/should ‘The Department’ support? Thursday, February 11, 2010
  • 48. “Every software program relates to some activity or interest of its use. That subject area to which the user applies a program is the domain of the software” Eric Evans, Domain-Driven Design, 2004 Thursday, February 11, 2010
  • 49. “A model is a selectively simplified and consiously structured form of knowledge” Eric Evans, Domain-Driven Design, 2004 Thursday, February 11, 2010
  • 50. Ubiquitous Language: “a language structured around the domain model and used by all team members to connect all the activities of the team with the software” Eric Evans, Domain-Driven Design, 2004 Thursday, February 11, 2010
  • 52. [Course]-*[Student] [Course]-*[Lecturer] [Course]-*[Assistant] [Course]-*[Lecture] [Course]-*[Assignment] [Assignment]-*[Submission] [Submission]1-1..[Student] [Lecture]-[Slides] [Lecture]-[Notes] http://yUML.me: a DSL for drawing UML diagrams Thursday, February 11, 2010
  • 54. Collaboration on Assignments Scenario 1 - Piet starts submission for Design 1 - Jan starts submission for Design 1 - Piet and Jan want to work together on Design 1 Scenario 2 - Piet, Jan work together on Design 1 - They want to split Thursday, February 11, 2010
  • 55. Binding Students to Submissions - Creating submissions ★ should be enrolled - Can be partner if ★ no active submission ★ #students < limit - Start submission if ★ not part of active submission Thursday, February 11, 2010
  • 56. Submissions & Deadlines - Edit assignment after submission? ★ before deadline ★ after deadline ★ after/during grading - Status of assignment not submitted before deadline? - Submitting partial assignments? Thursday, February 11, 2010
  • 57. Domain Model = Concepts + Interaction System Domain analysis is more than drawing a class diagram Thursday, February 11, 2010
  • 58. A domain-specific language for domain-driven design Thursday, February 11, 2010
  • 67. From conceptual to physical data model In memory - objects - hash maps Persistent data - Records in RDBS - XML - JSON - Text (csv) Thursday, February 11, 2010
  • 68. Schedule Lab this week: ★ WebDSL tutorial => submit page index ★ Make design proposal for a web application ★ Entity declarations for your web application Read/think: ★ Read: interaction design, domain-driven design ★ Case 1: analysing issues in digital library domain Next week ★ Web Abstractions Thursday, February 11, 2010