I've been C/C++ programming for over 30 years on Macs and Intel machines (MS based). For me, on average, development time on a Mac is about one quarter to one half of the time with MS compilers. Error recovery and debugging are definitely better on a Mac, although MS VS is improving.
I'm currently using MS Visual Studio (many USD) only because there's a very small audience for Mac stuff. BTW, Apple's IDE is free with the OS. So, if you're into programming, the difference in cost between a Mac machine and a MS-based machine is pretty much offset by the cost of software. (Yes, MS software is that expensive - stateside, anyway)
Harware upgrading a Mac is definitely a problem, though.