lecture 37: proxy pattern

18
LECTURE 37: PROXY PATTERN Computer Science 313 – Advanced Economic Topics

Upload: irma

Post on 15-Feb-2016

33 views

Category:

Documents


0 download

DESCRIPTION

Computer Science 313 – Advanced Economic Topics. Lecture 37: Proxy Pattern. Is This a Check or Money?. Currency issued by Bank of the United States Once we figure that out: how much was it worth?. Silver Standard Is Best. While now illegal, how much was this worth?. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Lecture  37: Proxy Pattern

LECTURE 37:PROXY PATTERN

Computer Science 313 – Advanced Economic Topics

Page 2: Lecture  37: Proxy Pattern

Is This a Check or Money?

Currency issued by Bank of the United States Once we figure that out: how much was

it worth?

Page 3: Lecture  37: Proxy Pattern

Silver Standard Is Best

While now illegal, how much was this worth?

Page 4: Lecture  37: Proxy Pattern

Silver Standard Is Best

While now illegal, how much was this worth? WHY?

Page 5: Lecture  37: Proxy Pattern

Other Currency Standard

What was value of these denominations? Notes on gold standard used by banks in

late 30s

Page 6: Lecture  37: Proxy Pattern

Other Currency Standard

What was value of these denominations? Federal reserve note from early 30s

Page 7: Lecture  37: Proxy Pattern

How Much Is This Worth?

Page 8: Lecture  37: Proxy Pattern

How Much Is This Worth?

When ordering online, pay $0.0259 per check Under $0.01 of pen ink used on the

check At cheapest, check worth little over 3.5

cents $0.15/check for really fancy ones I

found Would need to supply your name &

address Bank name & account number needed

for this too

Page 9: Lecture  37: Proxy Pattern

Generous Offer

Following offer open to all students in class:

I will trade $0.16 for your next signed paycheck

My offer is VERY serious with contract ready Probably not high quality, expensive

type of check Without additional value, you will end up

richer

Page 10: Lecture  37: Proxy Pattern

Why Not?

Page 11: Lecture  37: Proxy Pattern

Why Not?

Page 12: Lecture  37: Proxy Pattern

Patterns In Real-Life

Usually worth more than their components They are both implementations of proxy

pattern Checks are remote proxies, but in the

real-world See working of virtual proxy with old U.S.

currency Consider definition of the word

"Proxy"Ally or friend whom you give power

to work as if they were you;Agent;

Substitute

Page 13: Lecture  37: Proxy Pattern

Remote Proxy in Action

Signed check is deposited into your account Client sees bank give them cash, but more

needed To get cash, bank must follow several

steps Image of useless paper made at local bank

branch Bank then has image sent to local

clearinghouse Request routed to source bank for approval Other bank has check amount deducted

from account Approval sent to clearinghouse as electronic

transfer Clearinghouse has result sent back to your

bank

Page 14: Lecture  37: Proxy Pattern

Remote Proxy Example

YouYourBank

Clearing-house

OtherBank

Page 15: Lecture  37: Proxy Pattern

Remote Proxy Example

YouYourBank

Clearing-house

OtherBank

Page 16: Lecture  37: Proxy Pattern

Remote Proxy Picture

Page 17: Lecture  37: Proxy Pattern

Virtual Proxy

Silver & gold standard currency virtual proxies Bills still (nearly) worthless paper & ink

creation Fed reserve banks kept vaults of gold and

silver Trade for bill for gold/silver at any of these

banks This is simpler proxy, no 3rd party needed!You Ban

kVault

Page 18: Lecture  37: Proxy Pattern

For Next Class

Lab updated soon with Final info Will run office hours during time scheduled for

exam Last design pattern reading continues for

Monday