Even lots of programmers here on HN eagerly brag up "good buys" they made on their houses, characterized as "good" because the house "went up in value".
[1] http://www.nytimes.com/interactive/business/buy-rent-calcula...
As for the "wisdom of embedding wealth into dirt": Long term, if property values drop, so what. You lose a little bit on your purchase vs. renting in that case, but you get massively cheaper housing from then on if you opt to switch back to renting and/or the value for money will be massively better if you decide to trade up to a bigger house. But if property values rises dramatically, owning a property is a very effective hedge against seeing your living costs skyrocket. See it as insurance.
In that respect people do make good buys when the house goes up value: It means they largely locked in their housing costs at a lower rate and their insurance is paying off.
No, the rent vs buy question is a lot more complicated than that. Renting can be and often is financially better even over the long term when house values are appreciating at historic rates, or even faster. As just a couple more factors to consider, property tax and maintenance costs go up as property appreciates and along with inflation, respectively. Remember that renters don't make any downpayment, and that that money and early term savings over mortgage can be invested in assets that tend to grow at rates much faster than house values.
And the rent vs. buy issue that's hard to resolve is for comparable homes being rented or owned. The fact of the matter is that many people buy more home than they need, when they could have happily been renting a smaller home, and trade up only when necessary, skewing answer more toward side of rental being more cost-effective. (You could do this with a house, too, but people tend to buy more house than the need at the time, perhaps partly b/c of practical difficulties of selling a house and the large commissions that get paid to brokers.)
I don't know much about the market conditions outside of SoCal, but here the housing seems to have recovered to 2005-2006 levels. It doesn't look like it has much fuel to go up for a long time, but those who bought 2009-2012 are definitely comfortably in the black. Some could be up as much as 50-60% from especially distressed properties. Doesn't sound bad to me...
Factor in ridiculously cheap borrowing costs (even a couple months ago, there were 30 yr. mortgages for around 4%), and you have pretty decent investment opportunities.
In an unbalanced market, one can always find ways to realize short-term gain. Trick is to not get suckered in and overplay the hand.
See purchasing as a hedge. "Worst case" your property becomes worthless, and you're left with nothing when the mortgage is paid down and may have paid more per month on average until them (but if so, while you may have lost vs. renting, properties are now ludicrously cheap, so who cares?). Meanwhile, if prices skyrocket, your equity likely rises at roughly the same rate.
In the long run even those you know who are now seriously underwater are likely to do just fine as long as they can afford to sit tight. Of course people can "play the market" and do a good job timing when it's better to rent and buy again later, but as with anything it's very easy to mistime.
It's extremely hard to come out badly if you are prepared to hold a property long term, though, as long as you don't overstretch, and can afford to sit tight for a few years if you go under water early on.
Even if you end up paying more per month for a mortgage initially (I never did), chances are you'll be able to remortgage and bring the rates down to below rental costs within a couple of years once you've built up a bit of equity, and from then on save money every month on top of repaying the capital on the mortgage and be left living "rent free" apart from maintenance costs and insurance at the end of it.
I'll never go back to renting - if I'd bought as soon as I could, I'd had roughly about 200k pounds more equity today, and would have had roughly the same monthly costs for most of that time. As it is, I'm now paying half as much on a mortgage as I would to rent the same size property, and my debt is dropping in absolute terms, and my interest rate is below inflation, so in real terms I'm getting fantastic value.
You seem to equate some appreciation in house value with "not coming out badly". Well, if that's all you want, then fine. You can consider things as not having come out badly.
However, if your definition of "not coming out badly" is actually more like, "having done better financially than renting" then it's a much more complicated question. Renting can leave you with better financial outcome even in cases where a hypothetical purchased house appreciates greatly. Not always, of course, but appreciation in value of the house is just one among many factors in the rent vs. own equation.
This is a major sticking point for many people, particularly once you factor in opportunity costs.
I'm glad that I did, as I completely dodged the disaster that was the housing bubble as a result -- my rent always looked like a killer deal compared to nutso house prices. On the other hand, I know those who "had to have a house" who are now seriously underwater on their mortgages. But good thing they weren't "wasting capital on rent!"