I have M2 Pro 16GB from a client. It's comfortable for typical dev work - tons of tabs open, Docker, VS Code etc. Though the swap is about 20GB now and sometimes it lags. Still it beats any Intel or AMD laptop I ever had in terms of performance. This machine is on a whole another level.
My own machines are M1 Max 32GB and they fare slightly better.