As theclack said, Apple laptops did have a troubled period. That is no longer the case. Windows PCs can’t touch the performance or battery life of any of Apple’s laptops, and they won’t have the longevity either. Just don’t expect to do any serious gaming on it.
Apple is expensive but you can bank on it lasting and being useful for a long time (same goes for iPhones). I’d recommend maxing out the RAM on the MacBook Air configuration, and adding at least 1TB of storage.
As an aside, my personal laptop is one of the “bad” Apple laptops (2016 MacBook Pro) and I’ve never had any issues with it. It’s six years old and still trucking. Could use a battery replacement though.