Your career needs a vision
In his book, The Art of Science and Engineering, Richard Hamming says the key to a great career is vision.
He likens your career to a random walk. A meandering path through the unknown where each step goes in a random direction.

No matter how fast you walk, how often you change jobs, you'll never make it farther than the square root of the number of steps – Math.sqrt(n).
You can grind out more steps but it's gonna be one hell of a grind. You'll burn out before you get anywhere.
Now look what happens when you add vision.

Each step is random, but they're 10% biased towards a vision. You travel a distance proportional to n and go far!
You can try it yourself here:
What's going on here
You can think of your career as a multi-variate optimization problem. You're looking for the best balance among the criteria you care about.
For most people that's a balance between income, freedom, impact, and the rest of your life. The problem has no exact solution.
Computer science solves this class of problem with a hill climbing algorithm. Neural networks use it to converge on a solution, for example.

- start at random spot
- pick direction
- take step
- are you closer to the goal?
- goto 2
You can't choose your starting spot. That happened before you were born. The rest is in your control.
How many steps do you take? How big are they? That decides how fast you go and how many at-bats you get. The more attempts, the better.
Do you pick directions randomly? Follow every opportunity, chase every lead, do whatever anyone asks?
That's a random walk. No matter how big your steps or how fast, you won't get far.
But if you add a pinch of vision, a small bias towards your goal, you'll have a great career. My simulation has just a 10% chance of making the right decision and look what happens.

What's your vision? Who do you want to be?
Cheers,
~Swizec
PS: the random walk visualizations were coded live on stream, if you're curious how they work, you can also see the source code on CodeSandbox