Quick story. Before I took this advice, I made the mistake of telling a recruiter my salary, and then the recruiter said, yeah I'm not going to give you a 20K raise. The guys on that team were great and the compensation was actually viable, but it was not a good fit overall.
I think any negotiation where you want to walk away with the best deal you have to be willing to let a job go. It's when you want something so bad that you start to loose perspective and take a really bad deal. I say this from personal experience. When I have wanted something really bad I negotiate poorly, but when I come at it from a take it or leave it position I am almost always more happy with the result. It's really hard advice to follow when you really need/want a job especially if it's a big name like Uber.
This advice is also VERY dependent on you being able to negotiate. If the market is down and you can't find a job, you may end up in the 5th interview you don't get because you refused to disclose and guess what? This tactic isn't working. Adapt to the market, but use any leverage you have to secure the best position you can for yourself at a place you will be happy.
I've gone through 4 employers in 4.5 years and I have loved 2 of the last 4. Those were the ones I took because I had time to decide and really vetted them out. I had the power in the negotiations and I stacked the deck in my favor. They were also the biggest pay bumps I'd received.