Espresso rewards a small number of techniques done consistently, not a large number of tricks. The core set is dose, distribution, tamp, grind, yield, and temperature, and each one has a narrow range where it helps and a wide range where it hurts. Master them in that order and the shot becomes predictable.

Dose: fix the amount first
Every other variable is easier to judge when the dose stops moving. Pick a weight that suits your basket, weigh the beans before grinding, and keep that number for a week. Changing dose mid-session is like adjusting two dials at once: you cannot tell which one fixed the shot.
Dose also changes the depth of the coffee bed. More coffee means more resistance, so a dose increase makes the shot slower even if nothing else changes. If you deliberately change dose, expect to adjust the grind to compensate.
Distribution: remove the corners
Water is lazy. It finds the path of least resistance through the puck, and a clump in one corner creates a channel that over-extracts that spot while the rest of the bed stays under-extracted. The result is a shot that tastes both sour and bitter, which is confusing enough that many people replace their machine instead of their technique.
Break up clumps with a stir or a distribution tool, then settle the bed with a gentle tap. Do not press down hard during distribution; you are rearranging, not compacting. A level surface is the goal, and your eye is usually good enough to see whether one side sits higher.
Tamp: straight and calm
A tamp does two jobs: it compresses the bed into a uniform puck, and it seals the edges against the basket wall. It does not need body weight. Firm, even pressure with a tamper that fits the basket is enough. A tilted tamp is worse than a light one, because one side of the puck ends up thin and the water rushes through it.
Practice standing square to the counter and looking at the tamper’s rim rather than your hand. Small habits like that keep the puck level when you are in a hurry.
Grind: the fine adjustment
Grind is the variable you will touch most often, because it is the most sensitive. Adjust in the smallest increment your grinder allows, pull a shot, taste, and repeat. Judge by taste first and by time second: a shot that runs long but tastes sweet is better than a shot that hits a textbook time and tastes hollow.
Keep notes. A line per shot — dose, grind setting, time, yield, and one word for taste — turns guesswork into a record you can actually learn from.
Yield and temperature
Yield changes strength and balance. Stopping earlier gives a shorter, more concentrated, more acidic shot; stopping later gives more liquid, more bitterness, and a thinner body. Aim for a ratio in the range of one part coffee to two parts liquid for a classic double, then move within that range to suit the bean.
Temperature is the subtlest control. Lighter roasts usually want more heat to extract their sweetness, darker roasts less to avoid ash and dryness. Change it in small steps, and give the machine time to stabilize before you judge the result.
None of these techniques is difficult on its own. The skill is holding all six steady while you change exactly one, which is why patient, boring practice beats a drawer full of gadgets.