ELI5: Explain Like I'm 5

Uniform access principle

Okay kiddo, so you know how sometimes when you want to play with your toys, they're all put away in a big toy box? And maybe you have to ask a grown-up to help you get the toy you want? Well, the uniform access principle is like making all your toys available to you in the same way, so you don't have to ask for help every time.

For example, imagine you have a big bag of marbles, and you want to know how many there are. Instead of having to dump them all out and count them one by one, you could just look at the label on the bag that tells you how many marbles are inside.

The uniform access principle says that you should be able to get information or perform actions on an object in the same way, no matter how that object is stored or accessed. So if you have a toy car, you should be able to make it go the same way whether you're playing with it on the floor or driving it on a video game.

This helps make things easier for you and other people who might use the same things you do, because you don't have to remember different ways to do things depending on what you're using. It's like having a set of instructions that work for everything, instead of having to learn new instructions every time.