>>16Apple bans compilers from the app store because they're paranoid about malware and jailbreaking. So you can't code on iPhones or iPads, unless you count web-based garbage that's really fucking slow and pretty much unusable. Sure, some apps teach shitty web dev stuff (mostly basics and frontend rather than ``real'' CS), but it's just not the same. They are not programming-friendly devices.
ChromeOS is just a browser. Sure, you can run Linux via chroot (which I tried, and it sucks ass), but most people don't. As such, Chromebooks are also unable to be development devices. Sure, you can do a bunch of workarounds to run Android apps, but it's glitchy and you're just stuck with the Android ecosystem, which isn't great.
I've tried using IDEs in Android. They're slow, not as well-developed as desktop dev tools, and overall just a shitty experience.
In short, only macOS/Linux/Windows are viable for real programming. But younger people are using iOS, Android, and ChromeOS.
Before my generation, computers came with programming manuals. During my generation, devices were geared towards word processing (people I knew acted like computers were just for typing up papers and that's it), and eventually shifted towards communication and entertainment. Programming was no longer the focus of computing, even in my day. But at least PC building was in its golden years then, and I got interested in hardware, which eventually led to me getting interested in programming.
Now? It's not even possible to program or tinker on mainstream devices. We have closed systems that you can't swap the hardware out, the proprietary software is all locked down, centralized app stores (yes, sideloading exists for Android, but it sucks and most people don't do it anyway), dumbed-down UX that assumes users are mouth-breathing retards, and even on laptops and desktops, issues with UEFIs and SecureBoot that can make installing Linux harder.
Devices these days are less about content creation or learning, and much more about being a mindless consumer. Hit the like button. Take a selfie. Tweet your garbage opinions. Netflix and chill. Yelp. Take a photo of your food and put it on Instagram. Snapchat. Tinder.
Most people don't program anymore. Most people don't know shit about the technology they use and rely on every single day. It's seen as dorky to take an interest in it.
I mean, just check out this shitty Apple ad, for example:
https://www.youtube.com/watch?v=sQB2NjhJHvYWe are approaching levels of anti-intellectualism not seen for quite some time.