lecture 37: proxy pattern
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 PresentationTRANSCRIPT
![Page 1: Lecture 37: Proxy Pattern](https://reader036.vdocument.in/reader036/viewer/2022062323/56815ec4550346895dcd4d40/html5/thumbnails/1.jpg)
LECTURE 37:PROXY PATTERN
Computer Science 313 – Advanced Economic Topics
![Page 2: Lecture 37: Proxy Pattern](https://reader036.vdocument.in/reader036/viewer/2022062323/56815ec4550346895dcd4d40/html5/thumbnails/2.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022062323/56815ec4550346895dcd4d40/html5/thumbnails/3.jpg)
Silver Standard Is Best
While now illegal, how much was this worth?
![Page 4: Lecture 37: Proxy Pattern](https://reader036.vdocument.in/reader036/viewer/2022062323/56815ec4550346895dcd4d40/html5/thumbnails/4.jpg)
Silver Standard Is Best
While now illegal, how much was this worth? WHY?
![Page 5: Lecture 37: Proxy Pattern](https://reader036.vdocument.in/reader036/viewer/2022062323/56815ec4550346895dcd4d40/html5/thumbnails/5.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022062323/56815ec4550346895dcd4d40/html5/thumbnails/6.jpg)
Other Currency Standard
What was value of these denominations? Federal reserve note from early 30s
![Page 7: Lecture 37: Proxy Pattern](https://reader036.vdocument.in/reader036/viewer/2022062323/56815ec4550346895dcd4d40/html5/thumbnails/7.jpg)
How Much Is This Worth?
![Page 8: Lecture 37: Proxy Pattern](https://reader036.vdocument.in/reader036/viewer/2022062323/56815ec4550346895dcd4d40/html5/thumbnails/8.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022062323/56815ec4550346895dcd4d40/html5/thumbnails/9.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022062323/56815ec4550346895dcd4d40/html5/thumbnails/10.jpg)
Why Not?
![Page 11: Lecture 37: Proxy Pattern](https://reader036.vdocument.in/reader036/viewer/2022062323/56815ec4550346895dcd4d40/html5/thumbnails/11.jpg)
Why Not?
![Page 12: Lecture 37: Proxy Pattern](https://reader036.vdocument.in/reader036/viewer/2022062323/56815ec4550346895dcd4d40/html5/thumbnails/12.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022062323/56815ec4550346895dcd4d40/html5/thumbnails/13.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022062323/56815ec4550346895dcd4d40/html5/thumbnails/14.jpg)
Remote Proxy Example
YouYourBank
Clearing-house
OtherBank
![Page 15: Lecture 37: Proxy Pattern](https://reader036.vdocument.in/reader036/viewer/2022062323/56815ec4550346895dcd4d40/html5/thumbnails/15.jpg)
Remote Proxy Example
YouYourBank
Clearing-house
OtherBank
![Page 16: Lecture 37: Proxy Pattern](https://reader036.vdocument.in/reader036/viewer/2022062323/56815ec4550346895dcd4d40/html5/thumbnails/16.jpg)
Remote Proxy Picture
![Page 17: Lecture 37: Proxy Pattern](https://reader036.vdocument.in/reader036/viewer/2022062323/56815ec4550346895dcd4d40/html5/thumbnails/17.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022062323/56815ec4550346895dcd4d40/html5/thumbnails/18.jpg)
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