Why Bother Using Objects?

Imagine you are a god of your own universe. You have spent a few eons arranging every quark, every atom, every molecule, all the way up to planets and galaxies, just the way you want it. Now the whole thing spins up, and you’re responsible for every single subatomic particle in the whole universe, all at once. Even as a godlike being, trying to keep the universe going by dealing with every electron or every quark or even every molecule is just too much work (not to mention incredibly boring).

So instead, you deal with problems on the scale in which they occur. If it’s a problem with a planet in the wrong spot, you move the planet. If you need to fiddle with a galaxy, you fiddle with the galaxy—not with every planet, ...

Get Learn to Program with Minecraft Plugins, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.