Seal the patch so it stops flashing
Joint compound and plaster are porous. Painted wall is not. When paint goes over a bare patch, the compound pulls the binder out of the paint and the spot dries flatter than the wall around it. Painters call this flashing, and it is most obvious in eggshell and satin finishes.
The fix is primer. A coat of drywall primer, or a primer-sealer, evens out how the patch absorbs paint so the finish coat dries the same everywhere. Paint labeled as having primer in it does not reliably do this over bare compound. A separate primer coat is cheap insurance.
Match the sheen, not just the color
Two paints of the same color but different sheen look like different colors in side light. If you are touching up, check the original can or the store record for the sheen as well as the color name.
Even with the same can, touch-up paint often shows. Paint on the wall has aged, faded slightly and been cleaned. Fresh paint from the can is a little brighter and a little shinier. That is why the honest advice is to paint the whole wall, corner to corner, after a repair. On a ceiling, paint the whole ceiling.
Copy the texture before priming
A smooth patch on a textured wall reads as a flat window in the surface, whatever the paint. Orange peel and knockdown can be sprayed or rolled on the patch and adjusted until the pattern looks right. Popcorn ceilings can be patched with spray-on popcorn, though older popcorn may contain asbestos, so a lab test comes before any scraping.
Plaster walls are trickier. In the original houses of Hershey, plastered when the town first went up from 1903 to 1905, the surface is hand-troweled and has soft waves in it. A dead-flat patch looks wrong on those walls. The finish coat on the patch is troweled to follow the wall's own gentle unevenness.
Feather wider than the damage
A patch shows when its edge shows. Sunlight grazing the surface from the side catches any ridge or step, even a tiny one. The way to hide an edge is to make it so wide and so gradual that there is nothing for the light to catch.
For a hole about as wide as a palm, the final coat of compound can end up a foot or more across. Each coat goes on wider than the last, thin at the edges, and is sanded lightly before the next. It looks like more work than the hole deserves. It is what makes the hole disappear.
Check it with a flashlight
Before priming, lay a flashlight against the wall so its beam skims across the patch. Every ridge, pinhole and sanding scratch throws a shadow. Mark them, touch them up, and check again. This takes two minutes and catches the flaws that would otherwise appear the first sunny afternoon.
Settle the painting question early
Painting the patched wall yourself is a reasonable way to save money, and the steps above are all you need: prime the patch, then paint the whole wall in the right sheen. If you would rather the pro handle paint, have the leftover can or the color code ready when you book, and say so up front so it is part of the quote.
If the damage under the paint is the real problem, the pages on repairing cracked plaster walls and patching holes and resetting pops cover the repair itself.