Had an M1 Mac Mini with 8GB ram for Lightroom+Chrome use, it did not cut it. 16" MBPro with 16GB ram is heaps better, but no developer experience on that machine.
I think buying as much memory as you can afford is a good advice for Mac buyers. 8GB is enough for Chrome + a few native apps, but would go for 16GB for anything more and now you can get 24GB with the M2, that is nice (like a 20GB machine + a 4GB GPU).