I am in the same boat as you. I have an M1 Air with 8GB of RAM. I am eyeing the M2 Mac Air or the Pro. But, as I assess my situation, I use the M1 Air for light coding tasks: to learn stuff outside of my working hours, and not to run something like LLMs with it. So, even with 8GB of RAM, I rarely feel I need to upgrade to 16GB. Though, I would probably upgrade to M2 with 16GB if the price is not that steep. For now, I am happy with the M1 Air and I still think it is easily the best laptop I have ever had in my life.