The commute into Manhattan is about an hour, while not ideal its not that bad considering you're sitting on a train for that time, and its more of a self-inflicted wound given if NYC got its act together we could have much better public transportation. On top of that if you can afford it you can move closer by for a faster commute, and most people on hacker news are probably at least decently paid tech professionals.
Personally I have about a 20 minute commute and can easily afford the place I'm staying at. Generally if you're not dating/married you live with roommates, and if you are married then you have two incomes. I know other tech professionals in NYC that can afford their own place as well.