lecture16_test_review_and_builder_new.pdf - CSC3380 Object Oriented Design Lecture 17 Builder Talkin’ ‘bout the Test Work on your project • Demos

lecture16_test_review_and_builder_new.pdf - CSC3380 Object...

This preview shows page 1 - 9 out of 29 pages.

CSC3380 Object Oriented Design Lecture 17: Builder
Image of page 1
Talkin’ ‘bout the Test
Image of page 2
Work on your project! Demos in early April. New deadline for Core Features (Milestone 2). This happens every single semester: There will be a horrible last-minute integration bug that forces you to disable key functionality right before the demonstration. You will spend several minutes of the demo explaining how it’s broken but it totally worked yesterday, etc. This doesn’t happen if you plan your time well. Remember the cool cam.
Image of page 3
Questions?
Image of page 4
Good exercise for refactoring Celeste player movement code: yer.cs 5000 line class file. Shows signs of being divided into states, strategies, and observers. Look at other open source systems.
Image of page 5
This class: Builder
Image of page 6
Builder A creational pattern. Provides a convenient way to construct objects from configurations. Provides parameter specific error checking in a convenient format.
Image of page 7
A motivating problem Suppose we have an HTML generator. We want to represent a tag as follows: The tag name [required] The class [optional] The id [optional] The style [optional] Example: <div class = “text-region” id = “title- region” style = “color: red;”>…
Image of page 8
Image of page 9

You've reached the end of your free preview.

Want to read all 29 pages?

  • Spring '09
  • Suptik

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors