1.) The people who work for FAANG corporations or high profile startups, a few places in finance. In depth knowledge of computer science required to get these jobs.
2.) People who are writing UIs, data flows, python apis, etc. Run of the mill software development.
The income for these two groups looks like this:
The top 5% (maybe less) in technology are making really good money, 250-1M. This is the group 1, FAANG group.
The second group:
The lower 95% are generally stuck between 75k and 175k. They are seeing increasing competition from Europe, China, and boot camps here in the USA.
So to answer your question, if you take writing software very seriously, and can out compete most engineers, its an amazing career and will only get better. If you are a middling programmer, youre better off doing something else.