Earlier quoted context omitted.
But how is it that there is always another company willing to pay more? Do companies hire devs with X years of experience without planning to pay more for X+1 years of experience?
They will pay you the range you ask for. If Joe is offered a job at 50k but he does not know the position range is 50 - 70k, he might accept it. Joe now has a job making 50k a year with the potential to earn 3% raises annually. Bob might be offered the same position, but right from the beginning he has indicated he expects to earn 67k or more, they will offer him 67k. The company will hire you for as little as they c…
For example over a few years and 3 jobs, I found that $120k was about the max for senior devs in my city and tech stack. When interviewing I would lead with "is 120k in the range for this position?". And getting that could sometimes be a stretch. When I found a company offering 10-15% above that, I took it. I knew they were desperate, and the work would probably suck (and I was right) but no overtime and lot's of vacation make up for it (for now).