Most of my friends I've given this advice to are not engineers and aren't in a highly competitive position where they can easily "just change jobs". For engineers, changing jobs often works to increase your salary, but there's something to being said for staying at one company long enough to build something great. There's more to life than just money.