Apple's desktop options are actually quite strong right now.
If you just want a really powerful desktop computer for dev work - get a souped up Mac Mini
If you want it with a nice screen - get an iMac Pro
If you're a video professional - get a Mac Pro
The Macbook Pro keyboard situation is a garbage fire, though I will say that I'm quite happy with my 2016 keyboard after it got replaced for free through the program.
Mac Mini is not a really powerful desktop. It's has mediocre CPU with terrible cooling (not allowing it to reach even full potential), built-in GPU and non-standard soldered SSD.
I want 16 core CPU (probably Threadripper, as Intel is unable to produce anything competitive recently) with Nvidia 2080 Ti or better GPU, and 32GB ECC memory for $2k.
If you just want a really powerful desktop computer for dev work - get a souped up Mac Mini If you want it with a nice screen - get an iMac Pro If you're a video professional - get a Mac Pro
The Macbook Pro keyboard situation is a garbage fire, though I will say that I'm quite happy with my 2016 keyboard after it got replaced for free through the program.