I have a Thinkpad T560 with only 8GB. I develop using docker and I use kate with python3-pylsp for completion. And of course the occasional zoom/teams.
Instead of slack I normally use localslackirc, so that alone probably saves a ton of battery rather than using the electron one.
When I compile a lot I still manage to get half a day on battery. If I want to save power I just ssh to a server and do everything there :)
edit: that model has also hotswap battery so if you really really need more battery life you can buy a spare.