Presentation is loading. Please wait.

Presentation is loading. Please wait.

WARNING These slides are not optimized for printing or exam preparation. These are for lecture delivery only. These slides are made for PowerPoint 2010.

Similar presentations


Presentation on theme: "WARNING These slides are not optimized for printing or exam preparation. These are for lecture delivery only. These slides are made for PowerPoint 2010."— Presentation transcript:

1

2 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.here These slides contain a lot of animations. For optimal results, watch in slideshow mode.

3 77577 OR tinyurl.com/answerpost Comment on either logging, assertions, exceptions, defensiveness, coupling, or cohesion of this method. /* Sets user as ‘active’ on the server, * throws an exception if the * user does not exist on the server */ void activateUserOnServer(String userName) throws CannotActivateException{ log("trying to activate"); assert(isUsernameAcceptable(userName)); boolean isActivated = ServerConnection.activate(userName); if(!isActivated) { throw new CannotActivateException(userName + " not activated"); } Account account = AccountManager.getAccount(userName); account.toggleActivatedStatus(); //mark as activated } comment {answer} e.g. comment blah blah 1234567812345678

4

5 V0.1 How?

6 V0.1 How?

7 V0.1 How?

8

9

10

11

12

13

14

15

16

17

18

19

20

21 [Extra] what you think you can do What you think you can do What you can do

22 http://www.vikingcodeschool.com/posts/why-learning-to-code-is-so-damn-hard

23 V0.1

24 V0.5

25

26 V0.1 V0.2 V0.3 V0.4

27 Image credit: http://uxmag.com/articles/the-dirtiest-word-in-ux-complexity

28

29

30

31

32

33

34

35

36 Advanced user Novice user

37

38

39

40

41

42

43

44

45 Which website do you prefer? website {a|b|c} e.g. website b website {a|b|c} e.g. website b a)Old one is preferable b)Neutral c)New one is preferable 77577 OR tinyurl.com/answerpost

46 Theme for this week: Work like an experienced software engineer

47 Explain this design in less than 10 words {abstract} Command execute() {abstract} undo() {abstract} Edit execute() undo() execute() undo() Delete execute() undo() execute() undo() Add execute() undo() execute() undo() History add(Command) * Command cmd = createCommand(commandString); cmd.execute(); history.add(cmd); … cmd.undo();

48 A B C D B C A Component A design * Component C design * D C D C B C A Component A design *

49 Explain this design in less than 10 words explain {answer} e.g. explain blah blah explain {answer} e.g. explain blah blah {abstract} Command execute() {abstract} undo() {abstract} Edit execute() undo() execute() undo() Delete execute() undo() execute() undo() Add execute() undo() execute() undo() History add(Command) * Command cmd = createCommand(commandString); cmd.execute(); history.add(cmd); … cmd.undo(); 77577 OR tinyurl.com/answerpost

50


Download ppt "WARNING These slides are not optimized for printing or exam preparation. These are for lecture delivery only. These slides are made for PowerPoint 2010."

Similar presentations


Ads by Google