For reasons that should be obvious, I've created a separate StackExchange account to ask this question.
I do not have my resume up online anywhere. No where on line do I make any mention of looking for another job, or being unhappy with my current job. I don't have anyone out there sending my resume to companies. I am not signed up with any sort of career hunting service. Nor have I ever been.
I am a fairly active user on StackOverflow and CodeReview. My StackExchange profile has my email address listed in it. My StackExchange profile also states that I am currently employed, as a developer, in my development area of choice.
With that said, I was recently emailed by a company (this was a company emailing me directly, not a recruiting agency of any sort). After a couple of emails back and forth, and a phone conversation, the company is interested in hiring me. Essentially, it sounds like their developers have regularly stumbled across my posts and recommended to whoever is in charge of hiring that I'd be a good addition to their company.
I have not received an offer from this company, but one will be coming (I don't intend to do anything until I actually have an actual offer in hand).
With that said, I do like my current job, and I'm not necessarily excited to leave it. But for the right price, if my current company can not match the new company's offer, I would be okay with changing jobs. It would require relocating and a bunch of headaches regarding that, so it'd certainly have to be the right price, and I've already told the new company would that price would be.
My current company is completely unaware that I've been contacted. At this point, I feel there's no point in letting my current company know anything until I have an actual offer (or have turned down an offer from the other company).
What is important to me is that I am 100% honest with my current company. I have a good relationship with everyone at my current company, and I don't want to leave on bad terms. But at the same time, what's most important is that I'm doing what is best for me. I don't owe either company anything as far as I'm concerned (except to do what is asked of me in order to make them feel good about writing my paycheck).
What are some things I can do to make sure that I'm making the absolute best of this situation and to make sure I'm not making a decision I'll regret later?