I found for most CS-ish tasks 8GB is okay. I also bought an early M1 and haven’t had too many problems outside of running VMs, which I expected. I purchased one of the stocked configurations at an Apple store, so there were slim pickings with 16GB of memory that weren’t like double the price of the machine.