I switched from a MacBook to ThinkPad T480 with Archlinux and it's the best decision I've ever done in my software development career. I don't understand the obsession for macs as a developer machine when every year macOS just keeps getting heavier and slower with unnecessary translucency and animations and less reliable hardware. My colleague had to send his mac in twice already for keyboard and speaker repair on a fairly new mac. Not to mention some ThinkPads are a fraction of the cost and upgradable.
You can send ThinkPads in for repair too if you have the warranty. MacOS may be the most cohesive unix OS but it's functionality and capabilities are restricted and limited unlike any other linux desktop environment.