I have an m1 mac mini and I'm interested in upgrading to the m4. That 8gb of ram and better CPU would be so nice. I like the apple eco system, I can even use my phone as a webcam / microphone for zoom meetings. Macs have a lot of useful tools and a unix shell.

If all I'm doing is programming (mainly native app development in swift/kotlin), is there even a better computer I can get? I can get an m4 mac mini for $509 refurbished. For how fast it is--that's one hell of a deal!