Is inventing things all day and understanding rapidly changing complex systems easier than family law?
Outside a few thousand high paying jobs concentrated in a few regions, if you objectively look at most software developers worldwide, they're barely middle class.
Median full-time income is a good starting point for defining the middle class, at least in developed countries. People earning around the median tend to be pretty good examples of what middle-class life looks like. Most software developers earn above the median, but not so much above that their lives would be qualitatively different.
In the US, the median is currently somewhere between $55k and $60k.
In more recent times, such as the 18th-19th century, the middle class expanded dramatically to include typical professionals, such as doctors and lawyers -- people who may rub shoulders with the elites, but whose wealth was still tied to their jobs. If their business failed, they would often no longer be middle class, whereas the upper class could likely fall back on connections and maintain good social standing. The median worker was decidedly lower class.
This structure broke down somewhat in the US and, to a lesser extent, in western Europe in the post-war era, due to an abundance of demand for labour, which allowed lower class workers to enjoy traditionally middle-class luxuries, which included widespread homeownership, often multiple cars per family, etc. But don't make the mistake of thinking a well-paid factory worker was middle class -- they were working class.
Most software engineers worldwide are working class. In certain pockets -- the Bay Area, Seattle, etc. -- or certain industries -- such as finance -- they are closer to middle class by earnings, but still working class by vocation, as they (we) work for a living and do not own our own businesses (as many doctors and lawyers do).
The line between the working class and the middle class is difficult to define. You could describe the middle class in terms of having the extra income for some luxuries, owning your home, having higher education, having the social capital from growing up in a family with educated parents, having a white-collar job, and so on. Those with most of these attributes are middle class, while those who lack most of them are working class.
What you call the structure breaking down somewhat I call a massive expansion of education and wealth that defined the 20th century, particularly in Western Europe. Communism was defeated by turning half of the working class into middle class and improving the quality of life for the rest as well. As people now had a vested interest in the system, they no longer wanted to overthrow it.