MacOS is crazy efficient and can overcommit quite a lot.
I used an M1 Pro for a couple years to work. 8GB of ram but routinely using 12GB including swap.
Now, I couldn’t keep slack and outlook open so there were limitations but I was able to work. People are underestimating the usefulness of 8GB of RAM.
I guess it is also worth saying that I do my work by connecting to a remote server where I do the actual development and everything else. The Mac itself being a web browser and ssh machine
Not being able to keep Slack and Outlook open at the same time seems like a pretty significant productivity hindrance to me. 8GB RAM is truly pathetic in 2022.