Doper parents - do you yell or snap?

I’ve snapped at my kids a few times (they are 6 and 8 now) and I always immediately regret it. It gets their attention, but it makes them scared and sad, and I always end up going to them an apologizing soon afterward.