For gamers and for those wanted to keep up the productivity, then Windows will suit you best.
There are several brands which you can go portable and Microsoft itself makes their Laptops.
For being more affordable and can vast compatibility between different devices windows is best suited for them.
MacBook are at on another level when it comes to productivity.
Performance is unmatched even on the go it lasts longer than most Windows Laptop.
Apps are more optimized and Apple devices have their connectivity between them is unmatched.
UA-255333921-1 2905427995 ca-pub-1522954323198066
For programmers both OS are best and have their pros but for more battery life then go for Apple.