O'Reilly logo

Design Patterns in Ruby by Russ Olsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 10. Getting in Front of Your Object with a Proxy

Software engineering is full of ironies. I can work day and night for months on the new BankAccount object, a technical masterpiece that allows clients to manage all their banking needs. Then I can labor for even more months to keep all but a very few (authorized) clients from getting anywhere near it.

But then my boss tells me that the authorized clients don’t even want my BankAccount object. Well, at least they don’t want it on their computers—it would be great if they could somehow use the BankAccount class while it is running on the server, but no way will the users install that thing on their computers.

Finally, as the all-but-impossible, we got to have this code right now deadline ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required