I don't know what Xcode is so yeah, I haven't been found wanting with my 8GB M2. Videos, downloading, web browsing, writing, chat applications, some photo editing, games (what I can actually play on a Mac, anyway), all good here.
16GB+ is obviously going to be necessary though, and not exactly that expensive to put into their base models so it should be put in soon.