There was definitely a widely held belief in the late 90s, early 00s that programming was commoditized to the point that it would be fully offshored to the lowest cost of labor. This happened in some areas and failed. It still happens now and then. But I remember hearing some of that based on OO and libraries making it so unskilled people could just put together legos.
It's a bit too generalizing that it failed and happens "now and then", offshoring is a multi-billion industry employing millions of people.
And the "unskilled people putting together legos" is also very much a thing in the form of low/no-code platforms, from my own circles there's Mendix and Tibco, arguably SAP, and probably a heap more. Arguably (my favorite word atm) it's also still true in most software development because outside of coding business logic, most heavy lifting is done by the language's SDK and 3rd party libraries.
I remember that. I studied CS in that period and some professors were convinced that software development was going to become an unskilled job, analogous to bricklaying, and that our goal as future CS graduates should be to become managers, just like someone that studies a university degree about making buildings is intended to become an architect and not a bricklayer.
I never believed it, though (if I had, I would probably have switched degrees, as I hate management). And while the belief was common, my impression is that it was only so among people who didn't code much. The details on how it would happen were always highly handwavy and people defending that view had a tendency to ignore any software beyond standard CRUD apps.
In contrast, if I had to choose a degree right now, I'd probably avoid CS (or at most study it out of passion, like one could study English philology or something, but without much hope of it being a safe choice for my career). I think the prospects for programmers in the LLM era look much scarier, and the threats look much more real, than they ever did in that period.