You don't ever need to slam on your brakes or speed up for yellow lights, that's the entire point of the yellow light existing instead of just going straight to red.
Again back to control of your vehicle. I would expect a first time driver to make your complaint. A driver for multiple years should be able to adapt their speed for their surroundings