Looking forward to upgrading from the 8GB air to a 24GB air now.
I also think there is big argument for devs to be developing webaps on consumer gear. How else you can spot the issues with your apps. And tbh if your macbook air has problems running your webapp... well. Good luck.
Usually have like 20-25 tabs open in safari, a VS Code instance (sometimes two), a Nextjs app + express backend running against a local Postgres. This is always in the yellow memory pressure range for me.
If I close the browser or just stick with a few tabs it’s all good, but when each tab can suck 100s of MB it quickly adds up. It’s a workflow my 2014 MBP with 16GB still handles though so I don’t feel like my expectations are too high.
What actually feasts on memory is the various chat apps and project management and knowledge-base management software, in-browser email clients, github pages, JetBrains IDEs.
You should keep these closed, whenever u can and then 8GB is enough comfortably. You will still receive Slack notifications on your phone, then u can fire up Slack to reply or have a discussion. Same with Notion or Logseq. You don't need to have a gmail tab open all the time either. The built-in Mail.app might just be enough for you too, which might eat slightly less memory. You can use Sublime Text or Emacs for editing, instead of VS Code or WebStorm. Install a browser-tab suspender extension. Download technical docs and read them via Dash (or whatever open-source equivalent it has). Have you looked into how much memory does a github.com page eats?
It's more complicated than that; if you look at the reviews and tests 8GB M1 machines, you'll see there were no issues like the ones you're mentioning.
The pipeline between the unified RAM and the SSD is so fast, it's essentially a L3 cache as apposed to swap as in the way we traditionally think about it.
If you can guarantee you won't need more, sure it's plenty viable. If you can't make that guarantee, you need to remember there is no upgrade path. You will be selling the machine and buying a new one.