Upgrade to Pro — share decks privately, control downloads, hide ads and more …

CSE460 Lecture 11

CSE460 Lecture 11

Software Analysis and Design
Object-Oriented Principles II
(202102)

B546a9b97d993392e4b22b74b99b91fe?s=128

Javier Gonzalez
PRO

July 11, 2020
Tweet

Transcript

  1. jgs CSE 460 Software Analysis and Design Lecture 11: Object-Oriented

    Principles II Dr. Javier Gonzalez-Sanchez javiergs@asu.edu javiergs.engineering.asu.edu | javiergs.com PERALTA 230U Office Hours: By appointment
  2. jgs 460 00001011 Announcement § Assignment 04. Game It is

    due today (February 17) 11:59 PM AZ time. Submit here your use case diagram, class diagram, and source code.
  3. jgs Previously

  4. jgs 460 00001011 Key Concepts Encapsulation Abstraction Hierarchical Relationships Polymorphism

    Concurrency Persistency
  5. jgs 460 00001011 Clean Code Principles § Readability Use Meaningful

    Names for Classes, Methods, and Variables Follow coding guidelines: e.g., read the Java Style Reference § KISS (Keep It Simple by K. Johnson) for your reader Small functions that do one thing § DRY (Do not Repeat Yourself): Avoid Code Bloat § Decoupling
  6. jgs Design Common errors

  7. jgs 460 00001011 Case 17 Review UML

  8. jgs 460 00001011 Case 6 Missing elements

  9. jgs 460 00001011 Case 8 !

  10. jgs 460 00001011 Case 23

  11. jgs 460 00001011 Case 16

  12. jgs 460 00001011 Case 20

  13. jgs 460 00001011 Case 21

  14. jgs Source Code Common errors

  15. jgs 460 00001011 KISS Create code Simple and Direct Could

    we make this code short? Is the Runnable needed? Is the Exception needed?
  16. jgs 460 00001011 DRY 1 or 2?

  17. jgs 460 00001011 Bloat

  18. jgs 460 00001011 Readability

  19. jgs 460 00001011 Readability

  20. jgs 460 00001011 Readability

  21. jgs 460 00001011 Readability

  22. jgs 460 00001011 Readability

  23. jgs 460 00001011 Readability Flag?

  24. jgs 460 00001011 Readability

  25. jgs 460 00001011 Readability

  26. jgs 460 00001011 Readability

  27. jgs 460 00001011 Readability

  28. jgs 460 00001011 Readability

  29. jgs 460 00001011 Questions

  30. jgs 460 00001011 Reference Chapter 2, 3

  31. jgs CSE 460 Software Analysis and Design Javier Gonzalez-Sanchez javiergs@asu.edu

    Fall 2020 Disclaimer. These slides can only be used as study material for the class CSE460 at ASU. They cannot be distributed or used for another purpose.