For 4 years straight on my MacBook Pro Retina 2012, I am still very pleased with the power that it can provide. Before that I used other Macbooks for couple of years.
Last month I had to start to work on Ubuntu machine.
You don’t have to ask me twice, which I prefer more.
I really enjoy Mac both thanks to the software (and Apples supervision over developers to keep software clean) and hardware they put together. In combination, on El Capitan my battery didn't last too long, but on Sierra — I can do programming for 4 hours easy.