CSC 313 – Advanced Programming Topics. Lindsay Lohan Economy  Studies investigated economy of celebrities  Direct earnings from movies, music, TV, ads.

Slides:



Advertisements
Similar presentations
Networking Through Social Media. Module #1: Basis of Networking.
Advertisements

Your Child As A Reader.
HOW TO WRITE A PRESS RELEASE PRESENTER: SALLY DUSTING-LAIRD.
Georgia Institute of Technology Workshop for CS-AP Teachers Chapter 3 Advanced Object-Oriented Concepts.
Inheritance Inheritance Reserved word protected Reserved word super
Event Driven Programming and GUIs Part 3 CS221 – 4/15/09.
Observer Pattern Fall 2005 OOPD John Anthony. What is a Pattern? “Each pattern describes a problem which occurs over and over again in our environment,
Interactive Student Journals to Promote Critical Thinking and Stimulate Learning Chris R. Calkins, Ph.D. University of Nebraska Department of Animal Science.
Far East Book 1, Lesson 7 Discussion topics. G 1  The title is “ Adding Some Color to Your Life. ” What would you expect to read in the text? (prediction.
1 Observer Design Pattern By Eric Perret Pages in Applying UML and Patterns.
The Portfolio Teaching Lecture Series 3 Job Application
How To Take Notes in Your Book
0 1 Presented by MANSOUREH SERATI Faculty Member of Islamic World Science Citation Center (ISC) shiraz, Iran.
The Fullerton College Library. Welcome to Library Research.
Use Case modelling 1. Objectives  Document user requirements with a model  Describe the purpose of an actor and a use case  Construct a use case model.
Understanding Text Features
CSC 313 – Advanced Programming Topics. Observer Pattern Intent  Efficiently perform 1-to-many communication  Easy to respond dynamically when event(s)
© 2005 course technology1 1 University Of Palestine UML for The IT Business Analyst A practical guide to Object Oriented Requirement Gathering Hoard Podeswa.
Albert Einstein Two things are infinite: the universe & human stupidity; and I'm not sure about the universe.
CSC 313 – Advanced Programming Topics. Design Pattern Intent  Each design pattern is a tool  Like all tools, have reason for being.
CS 210 Introduction to Design Patterns September 7 th, 2006.
Keep you active while reading and listening! The active mind learns…..and the mind that learns, thrives! Notes…….
Journalism Defined By Abi Rosales and Katie Young.
MCOM 3.  Magazines today  Cover a wide range of topics  Appeal to Niche markets  Cater to segmented or specific audience  What are some magazines.
Using the Scientific Method
Visiting Angels Presenter: Social Angel Facebook.com/VisitingAngelsCorporate Social Care.
Inheritance Building one object from another. Background Object-oriented programming is normally described has offering three capabilities Encapsulation:
CS 350 – Software Design The Observer Pattern – Chapter 18 Let’s expand the case study to include new features: Sending a welcome letter to new customers.
CSC 313 – Advanced Programming Topics. Open-Closed Principle Classes should be open for extension, but closed to modification  So, what does this mean?
Computer Science 313 – Advanced Programming Topics.
How to Annotate a Text. Good Reading Background  Most reading is skimmed.  When you need to learn, reading requires close attention.  Good reading.
Oct R McFadyen1 Facade P Problem: There are a set of classes, a subsystem, that you need to interact with for some purpose, but you don’t.
By: Beverly Flaxington American Management Association.
Annotating Texts A close reading strategy Adaptation by Sharon Fulmer, Tiffany Holmes, & Laura Hayes The Academy of Irving, Texas, 2008.
Annotating Texts How To Take Notes in Your Book Revised from the adaptation by Sharon Fulmer, Tiffany Holmes, & Laura Hayes The Academy of Irving, Texas,
How To Take Notes in Your Book
Personal Development for Students 1. Introduction  Personal development is a very broad topic and can encompass anything that involves your growth as.
CSC 313 – Advanced Programming Topics. Observer Pattern in Java  Java ♥ Observer Pattern & uses everywhere  Find pattern in JButton & ActionListener.
CSC 313 – Advanced Programming Topics. What Is the Factory Method?  Creation details hidden by AbstractCreator  Does effective job of limiting concrete.
NONFICTION TEXT FEATURES 1. Nonfiction Text Textbooks Textbooks Biographies and Autobiographies Biographies and Autobiographies Encyclopedias Encyclopedias.
STUDY SKILLS 101 More tips you can use!. Get organized Use a Day Planner Helps you see the big picture Reduces procrastination Get Binders/Folders Helps.
M1G Introduction to Programming 2 3. Creating Classes: Room and Item.
1 Inheritance Reserved word protected Reserved word super Overriding methods Class Hierarchies Reading for this lecture: L&L 9.1 – 9.4.
SEG 4110 – Advanced Software Design and Reengineering Topic T Introduction to Refactoring.
The Observer Pattern.
What is nonfiction literature?  Nonfiction literature is not fiction.  Nonfiction literature is true. It is about real people, places, things, and events.
How to create a high traffic website. Ok, so your site is now live and you still haven't seen any traffic whatsoever to your website. Although getting.
Why We Did The Add… There are many reasons that we did a magazine add for this assignment. By doing a contest in a magazine you are attaching and putting.
Read All About It! Newspaper Unit. o Finished & Turned in Storm Runners Packets o AR Reading Time.
The Observer Design Pattern Author :Erich Gamma, et al. Source :Elements of Reusable Object-Oriented Software Speaker : Chiao-Ping Chang Advisor : Ku-Yaw.
February 23, 2009Observer Pattern, OOA&D, Rubal Gupta, CSPP, Winter ‘09 Observer Pattern Defines a “one-to-many” dependency between objects so that when.
Reading Strategies Developing a Plan to Implement Reading Skills.
How To Take Notes in Your Book
Observer Pattern Context:
Chapter 12: Collaboration Diagram - PART2
How To Take Notes in Your Book
How To Take Notes in Your Book
Online marketing is undoubtedly a great way to grow your business and generate more profits. The latest statistics confirm that a huge number of people.
OO Design - Observer Pattern
INFO/CSE 100, Spring 2006 Fluency in Information Technology
How To Take Notes in Your Book
How To Take Notes in Your Book
How To Take Effective Notes
How To Take Notes in Your Book
How To Take Effective Notes
Bell Work: Answer the following in 3 sentences each.
Encyclopedia Skills Encyclopedia : a work that contains information on all branches of knowledge or treats comprehensively a particular branch of knowledge.
How to Annotate a Text.
Text Features.
Presentation transcript:

CSC 313 – Advanced Programming Topics

Lindsay Lohan Economy  Studies investigated economy of celebrities  Direct earnings from movies, music, TV, ads  Profits earned by her label, handlers, etc.  Photographers’ income for pictures on TMZ  When placed on cover, increase in magazine sales  $150+ million/year industry for top celebrity

Something about Lindsay  Is it her singing?

Something about Lindsay  Is it her singing?  Acting key to her success?

Something about Lindsay  Is it her singing?  Acting key to her success?  Her keen fashion sense?

Something about Lindsay  Is it her singing?  Acting key to her success?  Her keen fashion sense?  Long, slow, very public total breakdown?

Something about Lindsay

How Lindsay Does It  Millions interested in seeing this unfold  Each and every mistake,  Every outburst that she makes,  And, of course, what or whom she is dating  Could follow her to be around for each event  But may have job, school, or restraining orders  Lindsay uses Observer Pattern for attention & $$$

Observer Pattern  Observers subject  Observers want update when subject changes  Must manage this 1:many relationship  Efficiently communicate all of these updates ConcreteSubject stateChanged() : boolean setChanged() : void

Foundation of an Industry  Lindsay notifies paparazzi before going out  With notice, photographers go to her destination  Take incriminating pictures of her doing her thing  With pictures takes, paparazzi notify press  Some published in magazines & used on Dr. Phil  Others will get posted to blogs  “Private use” of individuals for some pictures  Entire crisis then unfolds for enquiring minds

Textbook Observer Pattern  Readers sent People when it is printed  Readers  Readers are observers People magazine  Subject is People magazine (in this case)  Whenever subject updated, observers notified  Magazines notified of pics paparazzi took People  In this relationship, People is an observer each photographer  Subject is each photographer

Textbook Observer Pattern  Paparazzi alerted by Lindsay before leaving  Lindsay  Lindsay is ultimate subject (& pattern master) Paparazzi  Observers in this relationship are Paparazzi

True Genius  Very efficient way for Lindsay to get money  Also has benefit of limiting people following her  Readers notified of each and every change readers  In this adventure, readers observers only  Lindsay  Lindsay only a subject in this implementation  Magazines photographers  Magazines & photographers play both roles  Observer Pattern mastered for this to work

True Genius

Observer Is Hollywood  Hollywood Principle: Don’t Call Us, We’ll Call You  If observers were to ask constantly “Are we there yet? Are we there yet?”  Really slow when many observers exist  Principle says to have subject send alerts  Articles only after craziness on Lindsay’s part  When no DUIs, covers with Kate Gosselin instead

Co-Dependent Relationships  UML class diagrams with cycles are problem  Two classes inseparable no matter what  Classes completely dependent on each other  Almost impossible to add or extend the design  Since both classes needed, reusing one impossible

Replace Cycles With Observer  Cycle still in UML class diagram…

Replace Cycles With Observer  Cycle still in UML class diagram…  … but now classes depend only on interfaces  Classes can be replaced at any time  Only requires that new class implement interface  Far easier to add or modify classes now

For Next Lecture  Read pages 56 – 69 in book  Great… so how do we code the observer pattern?  Haven’t I seen this pattern before?  How is it actually written in the real world?  Is it really this simple and powerful?