I did this for about 7 years (although with a Hackintosh, not a Mac). These days I have my Hackintosh, a gaming PC and a console, but that's obviously only a thing that you can do with a good amount of disposable income.
You can get a decent laptop and a PS5 for the price of a mid-range gaming PC. Now you can do all the same things except you can watch a blu-ray while you type up that report and you don't need to exit out of your game to compile that code.