warning n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
WARNING PowerPoint Presentation
Download Presentation
WARNING

Loading in 2 Seconds...

play fullscreen
1 / 27

WARNING - PowerPoint PPT Presentation


  • 166 Views
  • Uploaded on

WARNING. These slides are not optimized for printing or exam preparation. These are for lecture delivery only. These slides are made for PowerPoint 2010. They may not show up well on other PowerPoint versions . You can download PowerPoint 2010 viewer from here .

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'WARNING' - dagan


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
warning
WARNING
  • These slides are not optimized for printing or exam preparation. These are for lecture delivery only.
  • These slides are made for PowerPoint 2010. They may not show up well on other PowerPoint versions. You can download PowerPoint 2010 viewer from here.
  • These slides contain a lot of animations. For optimal results, watch in slideshow mode.
which is the better minesweeper design
Which is the better Minesweeper design?

(a)

(b)

Logic

Minefield

Storage

Logic

Minefield

Storage

:Logic

m:Minefield

:Storage

:Logic

m:Minefield

:Storage

mark

mark

mark

mark

update(m)

update(m)

get info

get info

design {a|b}

e.g. design b

77577

slide6

To Tighten or Loosen:

What Makes a Good Component.

CS2103/T, Lecture 7, Part 1, [Oct 4, 2013]

slide7

To Tighten or Loosen:

What Makes a Good Component.

slide8

To Tighten or Loosen:

  • What Makes a Good Component.
  • Coupling
  • Cohesion
slide12

Dependency ==

Component A

Component B

If I change B , will it require a change in A ?

NO WAY

It might

  • Coupling
slide13

Component A

Component B

If I change B , will it require a change in A ?

  • Coupling
slide14

Component A

Component B

If I change B , will it require a change in A ?

  • Coupling
slide15

Component A

Component B

  • Coupling
slide16

Component A

Component B

If I change B, will it require a change in A?Yes, It might

  • Reduce coupling
slide17

Good Component design

  • Reduce coupling

cohesion

does one thing and does it all
Does one thing and does it all

Component C

Component A

Component B

cohesion

does one thing and does it all1
Does one thing and does it all

Window 1

Component A

Window 2

Window 3

cohesion

does one thing and does it all2
Does one thing and does it all

Component C

Component A

Component B

cohesion

does one thing and does it all3
Does one thing and does it all

Component C

Component A

Component B

  • Increase cohesion

cohesion

slide23

Good Component design

  • Increase cohesion
  • Reduce coupling
slide24

Increase cohesion

  • Reduce coupling
slide26

(a)

(b)

Logic

Minefield

Storage

Logic

Minefield

Storage

2 nd attempt which is the better design
(2nd attempt) Which is the better design?

(a)

(b)

Logic

Minefield

Storage

Logic

Minefield

Storage

design2{a|b}

e.g. design2 b

77577