jgs 460 00001010 Polymorphism § The condition of denoting different forms. § A single name may denote objects of many different classes that are related by some common superclass. § When to use it?
jgs 460 00001010 Persistency § Property by which an object continues to exist even after its creator ceases to exist § Object serialization: convert it to a byte stream so way that the byte stream can be reverted into a copy of the object. § Save data OOAD, Booch Textbook
jgs 460 00001010 Global Ideas § Create code Elegant and Efficient –Bjarne Stroustrup § Create code Simple and Direct –Grady Booch § Create code looks like written by someone who cares – Michael Feathers
jgs 460 00001010 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
jgs 460 00001010 How many LOC per method? § around 20 is perfect, § up to 50 is still fine, § up to 100 is critical, § above 150 is bad, and § more than 250 is !
jgs CSE 460 Software Analysis and Design Javier Gonzalez-Sanchez [email protected] 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.