When I was 19, I was paying around 50 bux a month in a shared accommodations situation. I did bartending/odd jobs about once a week and just bummed around the rest of the time.
When I was 20, I did a part time waiter gig. I ate all my meals for free! Boy, I ate well. I had my own apartment though. It was utterly unnecessary, of course, but I didn't know better.
Honestly, if you look around, these people exist. They are on the fringe but they do just fine. We generally call them 'bums', but you know, that's just envy talking.
Good food is not cheap. In NYC, we pay 8$ for a decent sized watermelon - almost all fruits are expensive, and most vegetables too. Only shitty food like chips, soda, candy, fast food etc are cheap.
Carrots, Celery, Potatoes, Oats (Oatmeal), Breakfast Cereal, Cereal Cereal, Onions, Kidney Beans, Green Beans, Milk make a good baseline for a cheap and nutritious meals year round.
You grab Broccoli in the Winter, Pineapples and Lettuce in the Spring, Cherries and Watermelons in the Summer, and Apples in the fall. Farms literally can't make Watermelons in the fall or winter, so you're importing those Watermelons from the southern hemisphere. Of course it's expensive.
But in the summer, Watermelons are made locally and are probably $2 or $3 a pop.
------------------------------
If you don't know what's in season, here's a little trick. Look at the coupons at your local grocery store. Everything that is on sale is what is in-season.
A sampling of my store is $5 for 5lbs of tangerines and $0.88/lb for Gala Apples. Clearly, these are the fruits in season and what I'll be eating.
Eventually, as winter sets in... the prices of oranges and apples will increase while Broccoli and Winter Squash will become cheap.
In fact, the primary difference is that $8 per fast food meal in NYC. The Milk, Eggs, Bread, Apples, and Potatoes are hit and miss (some cheaper where I live, some cheaper in NYC)
At least according to this: www.expatistan.com/
1 serving contains 31 daily percent vitamin A and 37 daily percent vitamin C, as well as a good amount of iron, vitamin B-6 and magnesium.
So yeah, the vast, vast majority of U.S. programmers are ultimately doing it out of reasons other than survival, whether they realize it or not.
But nothing prevents you from working 50 hrs/week for one decade and then retire early, move to Vietnam, and live from your savings.
The point stands, if you're an American programmer and think you have to work full-time to literally just survive you're wrong.
But that's not a small if.