8GB is definitely not enough for coding, gaming, or most creative work but it’s fine for basic office/school work or entertainment. Heck my M1 Macbook Air is even good with basic Photoshop/Illustrator work and light AV editing. I certainly prefer my PC laptop with 32GB and a dedicated GPU but its power adapter weighs more than a Macbook Air.