Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: proxy_user
Someone once explained RAM to me thusly;

Take a desk you want to work on and clear what you need to do that work
If you learn you need more space after doing what you've done so far, you take that phase of the projecrt off the desk (clearing the space again), go to the shelf you need to get the materiels you need to perform phase two and sit down to work on a clear desk.

THAT works for me (if it's correct)

Can you simplify what you just said for us non techies ?

7 posted on 01/29/2013 7:23:56 AM PST by knarf (I say things that are true ... I have no proof ... but they're true)
[ Post Reply | Private Reply | To 4 | View Replies ]


To: knarf

Basically, reflection allows self-modifying code.

All these security exploits have used reflection in sneaky ways to get access to classes and data they’re not supposed to have access to.


8 posted on 01/29/2013 7:30:49 AM PST by proxy_user
[ Post Reply | Private Reply | To 7 | View Replies ]

To: knarf; proxy_user; ShadowAce

Perhaps an analogy will help.

***
Scenario: Pointy-Headed Boss (PHB) says to Dilbert: “I need an employee to do ImpossibleTask. And no, you may not hire a new employee from outside.” Dilbert frantically searches the list of employees that he manages for one with the capability of handling ImpossibleTask, and tells that employee to perform ImpossibleTask on PHB’s behalf.
***

Dilbert is the “reflection class” for PHB in this scenario. He can “see into” the capabilities of the employees that he manages and “reflect” those capabilities back to PHB.

PHB doesn’t (have to) know (or care) which employee actually performs ImpossibleTask, as long as Dilbert finds one that does.

In sum, a “reflection” class has the capability of inspecting the attributes (data) and behaviors (actions) of another class and providing that information to another class that requests it.


13 posted on 01/29/2013 7:50:36 AM PST by ShorelineMike (Constituo, ergo sum.)
[ Post Reply | Private Reply | To 7 | View Replies ]

To: knarf
Put a bit more simply, RAM is your desk. You can have all kinds of stuff laid out on it for working on. The larger your desk (more RAM) the more you can work on easily and quickly. Your filing cabinet is where you permanently store the files and the work you've done--this is your hard drive. It takes you time to move from your desk to your filing cabinet, find the file, then put it on your desk for working.

RAM is more-or-less right there, whereas hard drive data has to be found and transferred into RAM for work to be done.

26 posted on 01/29/2013 9:09:39 AM PST by Future Snake Eater (CrossFit.com)
[ Post Reply | Private Reply | To 7 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson