Yes, in comparison to the alternatives for somebody like the average programmer
Trigger Warning: Micro Essay coming up and one that may irk you. I understand that and accept my view is not the conventional one.
My view:
I have a negative view of the industry, but I think I can justify it. Don't read on unless you want to hear about the industry's failure modes. There are many positive things about our industry and people, but here I'm not going to focus on those.
With respect to the cost of living salaries are dismal. People who come to HN are likely to be in the top 1-10% of wages/capital in our sector because they are usually already upper middle class (did your parents buy a computer for you in the 80s-90s...?) so their experiences are likely not representative. Some subgroups like programmers in finance may make wildly more money than others although often at the cost of working twice as hard in hours than the average human being with the attendant burnout risk. Then there is a large subgroup of programmers making In Silicon Valley the salaries are partially high (relative to other cities) because the rents and taxes are also high. That is not a gain in of itself. Peter Thiel and Larry Page have made this point several times, although it usually falls on deaf ears because of Silicon Valley's glamour factor (reminiscent of actors in Los Angeles). The important thing is the take home pay. I do not think wages are especially high considering the rarity of the skills involved, even in Silicon Valley. I believe a good wage there should be about 150k. Crudely if your skill is actually rare then you should be able to command at least twice as much as the average industrial wage after taxes/rents and cost of living is subtracted. It is not this high, and that is partially because a wage cartel existed and likely still exists in Silicon Valley between all the major firms. This should not be controversial, it's publicly available information.
A good plumber, electrician or even a humble window cleaner with his own van can bring down just as much or more money than the majority of white collar jobs that most students enter from university today. That is a fact, obfuscated because those fields often contain foreign/welfare class labour who receive low wages i.e. the actual spread of wages is bifurcated, something which has been explained at length by Tyler Cowen of Marginal Revolution. There's a big pool of part-time poorly paid people (have no leverage because they can't afford insurance, tools, knowing the right people) and then a portion of the 'blue collar class' that are more like competent micro sized capitalists easily making > 70k even if it doesn't appear on the books. This is true across a wide spectrum of blue collar work, especially in the building trades.
Simple example: a typical cleaner makes just over 9 euros per hour, but I make 20-25 with flexible hours and will be making 35+ once my operation is set up correctly, making it easy to transition into being a business owner.
I can make > 40k per year with blue collar work with a cost of living that is about 10k per year, net gain of 30k. Most programmers I know who graduated since the Credit Crunch in England are not able to say the same thing.
Of course on HN one can wave a dozen programmers making 1 million dollars per year in my face, but the median and average are two very different things. I very much doubt the average programmer in San Francisco or London can afford to buy a house within five years of working and saving up - and that is something my grandparents or even parents could have easily done on blue collar wages in the past.
NDAs (underrated way of lowering wages!), Moravec's Paradox, location rents/taxes, Wage Cartels and Winner Take All Affects explain why 'going into STEM' and succeeding might be the worst decision you ever made as a 'smart person' unless you're getting stocks/options. I think most young people, most university students are getting mugged and most of them won't work that out for years.
The real TLDR here is "Don't compete with people like you", it might look and feel right but it is a bad notion, a Thielian observation and a right one.
I have not given up on computer science by the way, far from it. I think there's a bunch of not obvious ways blue collar insights into work can join with computation to provide value. I'm constantly reading relevant books and one day hope to open my own business that makes use of computers, that's why I'm here (and geek fellowship!).