My preference in hiring is people that are drawn to computing naturally, they will be there for the long haul.
I think a lot of people are drawn into the industry these days from various online communities because you can enforce your particular viewpoint of social order in a small niche and basically be mini-tyrants. This is very western-world specific, but looking at the "communities" around Ruby, Node, Rust, Nix, etc, it looks fairly clear.
I put communities in quotes because I'm referring to those communities within the community that tend to label themselves as the whole community, write petitions to remove undesirables, etc.
The ability to create a space entirely of likeminded individuals that purges undesirables is highly attractive to certain kinds of people. Saw this happening on forums and bbs first decades ago and now it's the governance body of everything.
It's happened in tabletop gaming too -- one local game group I was a part of got co-opted by a guy just through starting a discord and hosting events. Suddenly a very apolitical community started being dominated by tankie politics and banning of members for wrongthink. We were just trying to game with some minis up till then. I got fed up and quit once the guy running the discord started ranting about how everyone in America should be forcibly relocated to cities and reeducated in more progressive values. I'm just trying to point plastic lasers at people and roll dice, my guy.
For some. I certainly started that way. But many of my friends at Uni started from a different point. I heard many describing how they choose computer engineering because it is perceived as a good career or because they heard it pays a lot. I'm not sure if those people have the same "Programming is fun, that is why you started doing it." to fall back to.