lecture 1 introductiontddd89/lectures/slides/2016/tddd89_01... · part i 4. course format •...

64
TDDD89 Lecture 1

Upload: others

Post on 14-Oct-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

TDDD89Lecture 1

Page 2: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Part I• Course format • Activities • Examination

2

Page 3: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Part II• Starting your thesis project: – What is a good thesis project? – How do you start?

3

Page 4: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Part I

4

Page 5: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Course format• Select a thesis topic • 3x2h lectures • 6x2h seminars – 4x2 students – theme-specific groups – Ola Leifler, Aseel Berglund & Jonas Wallgren

5

Page 6: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Interlude

6

Page 7: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Climate Change

7

Page 8: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

8

Page 9: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

9

Page 10: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

10

Page 11: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

11

Page 12: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

12

Page 13: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Selecting a thesis topic• Option 1: You have a thesis proposal that you will work with in your

Master’s thesis projects: great! • Option 2: You find a thesis proposal from the list of proposals on

the IDA web

13

Page 14: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Lectures1.What is a great thesis? 2.Learning and writing about a new subject area 3.Method

14

Page 15: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

15Seminar Read Write

1 Introduction Thesis plan

2 Introduction

3 Theory

4 Theory

5 Results, Discussion, Conclusion

6 Method

Page 16: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Seminar groups

16

Ola Aseel Jonas

A1A1A1A4A1A1A1B4

A1A1A1C4

B4”Usabilityevaluation”

C3”MachineLearning”

Page 17: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Gitlab - demo

17

Page 18: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Seminar 1,3,5

18

1 2 3

Page 19: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Seminar 2,4,6

19

1 2 3

Page 20: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

LISAM

20

Page 21: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Examination• UPG1: First three chapter of your thesis report at the end of the

course • UPG2: Preparation and participation in seminars during the course

21

SE1 SE2 SE3 SE4 SE5 SE6

UPG1

UPG2

Page 22: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Seminars

22

Page 23: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Final submissions

23

SE6

Review,rewrite

EndofHT2 EndofexamperiodforHT2

Page 24: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Part 2

24

Page 25: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

What is a great thesis?• A working, interesting application with proven and general value – A well-described application – of general interest – and with a clear description of ”proven” and ”value”

25

Thesis=projectresults+writtenpresentation

Page 26: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

What is a great thesis?• An evaluation with general and interesting results – that others can use – that others will believe

26

Thesis=projectresults+writtenpresentation

Page 27: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

What is a great thesis?• An authoritative report – with a good focus (questions!) – and results that answer the questions – through a transparent, thorough description of the process

27

Thesis=projectresults+writtenpresentation

Page 28: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Starting your thesis work

28

”Evaluatealgorithmstobeusedforimageclustering”

”Findactivitiesinsetsofimages”

”Determinewhetherclusteringalgorithmscanbeusedtodetectactivitiesinsetsofimages”

Why?

How?

Page 29: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Relevance/Rigor 29

Relevance

Rigor

Aproperlyevaluatedsolutiontoanirrelevantproblem

Arandomsolutiontoarelevantproblem

Solvearealproblem

Verifyyoursolution

Aproperlyevaluatedsolutiontoarelevantproblem

Page 30: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Thesis outline

30

WhyshouldevenIreadthisreport?

Whathaveyoustudiedhere?

ShouldItrustyou?

Whatisbuilt?

Whathaveyoufound?

Howcanweexplaintheresults?

HowcanIusetheseresultsinmywork?

Whatdoesthisrelateto?

Page 31: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Thesis outline

31

Abstract

ResearchQuestions

Method

Implementation

Results

Discussion

Conclusion

Theory,Background

Page 32: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Thesis plan32

Subject Software Eng.

Machine Learning

Games ...

Type

Evaluation X

Design X X

Improvement

Page 33: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Time Plan

33

?Design

?Evaluation

T T+5months

Page 34: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Diary

34

Page 35: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

A Great Thesis

35

Page 36: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

I - The Problem

36

Page 37: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

2 - the theory 37

Page 38: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

An application of theory

38

Page 39: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Strong persuasion skills (aka a Method) 39

Page 40: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

40

Page 41: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

41

Page 42: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

The language 42

Page 43: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Structure and format 43

Page 44: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

A great thesis:

44

Aworkingsolution

Establishedeffects

Greatpresentation

Aninterestingproblem

Areliablemethod

Aconvincingtheory

Page 45: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

But I will become a Master of Engineering, right?

45

Page 46: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Engineering vs research

46

Engineering Research

Rationale Solve a problem Gain understanding

Activities Design,implement, verify

interviews, experiments, proofs, ...

Goal Satisfied customers New/shared understanding

Page 47: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Are they really that different?

47

Page 48: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

48

Inordertosolveaproblem,youneedtogainunderstandingoftheproblem

Inordertoverifyyourimplementation,youmayneedtodoexperiments,interviewsorproofs

Inordertohavesatisfiedcustomers,youneedtoachieveasharedunderstandingthattheproblemhasbeensolvedappropriately

Page 49: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Thesis types

49

Page 50: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Thesis types• Evaluations of new techniques or methods to improve existing

products or processes • Design of an application • Incremental improvements of existing techniques of methods

50

Page 51: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Evaluation

51

Generalproblem:Doesthecodequalitydeteriorateovertime?Howdoweknow?

Approach1:RelateGitcommitstocodemetricssuchascyclomaticcomplexityanddrawagraph

Page 52: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Why is this not a good idea?• We have not defined what we mean by ”code quality”, and hence,

we have no way of knowing what to measure, or whether it relates to our desired quality.

• There is no clear sense of how to assess what we have done.

52

Page 53: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Approach 2

53

Generalproblem:Doesthecodequalitydeteriorateovertime?Howdoweknow?

Approach2:Basedoninterviews,wedefinecodequalityasdetectedfaults.Determinewhetherdetectedfaultscorrelatewithcyclomaticcomplexity.

Page 54: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Why is this a better approach?• We now have a definition of code quality • The result can be assessed

54

Page 55: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Design

55

Generalproblem:CreateanewFooapplicationatourcompany

Approach1:ReadaboutthelatesttechniquesthatcanbeusedonWikipediaandonprojectsites,implementthesystemandaskthecompanysupervisorifhe/sheishappy

Page 56: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Why is this not a good approach?• We don’t know why the company wants the Foo application, how to

evaluate it, or how long time it would take to implement it in full. – IF the requirements are not clear from the start, and the

estimated time to implement the working, full solution is > 6 weeks, do not aim for a full solution

56

Page 57: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Approach 2• Conduct a set of semi-structured interviews to understand the

problem domain and the goal, • a literature survey to understand solutions to similar problems, • and a few structured iterations of development and documented

customer feedback, to produce a set of requirements based on the initial prototypes.

57

Iftheprojectedtimetoimplementafullsolutionis>6weeks

Page 58: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Approach 3

• Determine functional and non-functional requirements, • a literature survey to understand solutions to similar problems and

how to assess them, • develop the application iteratively, and evaluate the resulting

application based on the non-functional requirements

58

Iftheprojectedtimetoimplementafullsolutionis<=6weeks

Page 59: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Incremental improvement

59

Generalproblem:WewouldliketoperformtestingofTelecomequipmentwithlesshardwareresources

Approach1:Implementabookingsystemthatautomaticallyreleasesresourcesuponexpiredtimeslots.

Page 60: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Why is this not a good approach?• We do not know how and why people use hardware resources, so

we do not know how to optimize something. • Is this a technical, an organizational problem or a cultural issue? • How do we even measure utilization?

60

Page 61: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Approach 2• Conduct an interview series to establish how different people

perceive the problem • Conduct an observational study to determine how people actually

use resources • Find a suitable model for resource utilization in the literature and

apply it • Measure utilization and relate to the results of the interviews

61

Page 62: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

What’s next?

62

Page 63: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Write a draft of your thesis plan by next Monday. Focus on the main topic, relate to previous courses, both the WHAT and the HOW.

Page 64: Lecture 1 IntroductionTDDD89/lectures/slides/2016/TDDD89_01... · Part I 4. Course format • Select a thesis topic • 3x2h lectures ... Strong persuasion skills (aka a Method) 39

Summary• Write a draft thesis & plan, prepare for and participate in seminars • A great thesis is a marriage between solid engineering skills,

genuine scientific approach to validate your work, and a crystal clear presentation.

• There are three main types of industry theses: evaluations, prototypes and improvements.

64