You take your walks. You dont hunt em. You dont celebrate em.
That sounds a bit more nuanced. But it is much more complex than that. The very first objective is to know the strike zone and recognize the pitches. The second is, when you are ahead on the count, NEVEN swing at a pitch you can't hit.
Other stuff like the score, your level of power, etc., all count. But what I'd put 3rd is to simply swing as hard as you can at pitches in the zone. If you swing at nothing but strikes (theoretically) it's fairly difficult to strike out. Guys like Soto, Judge, Schwarber, etc.., prove this all the time. They'll swing from the heels all the time, but seldom swing at bad pitches.