Skip to content

Instantly share code, notes, and snippets.

@awave1
Last active December 8, 2019 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save awave1/45a50357016c9837b86e02635b99b748 to your computer and use it in GitHub Desktop.
Save awave1/45a50357016c9837b86e02635b99b748 to your computer and use it in GitHub Desktop.

CPSC 501: Final Review

Q1: Refactoring

  • Code smell (from listing, off name)
  • Refactoring (official name, from listing)
  • Make 4 changes
    • has to be 4 separate changes
    • don’t change all at once
  • Same list of smells and refactoring are given

Q2: Reflection (for serialization purposes)

  • Syntactically correct
  • Correct function names and usage is required
  • will be more generalized instead of specific
  • take some general object and serialize via println
  • no xml/jdom, just stdout printing
  • do have to worry about superclasses (hierarchy)
  • no deserialization
  • use correct imports for reflection (fuck you)

Q3: Code Tuning

  • C++ style code
  • logics/loops/general (no java VM)
  • no assembly
  • do multiple steps to the same code
  • xml format is given
  • Slides:
    • code tuning logic
    • code tuning loops
    • code tuning
  • Put code tuning names to the cheat sheet, will need to tell what kind of tuning was done

Rest

  • no git/svn
  • no junit
  • no reflection on arrays
  • no network
  • no proxies/aspectj
  • no dsp
  • no tensor flow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment