I don't disagree with the advice of contributing to open source, but I hope they realize that they are essentially telling readers that contributing unknown amounts of hard, free labor is the best path to getting a job in this subfield of tech.
(Meanwhile, the kid who went to Stanford will just apply and probably get an offer if their DS&A chops are fresh enough.)
(Also, I'm guessing your contributions don't count at some places if your PR/MRs don't get merged, which is the other gnarly thing about open source that complicates this advice. Big open-source projects tend to have big politics behind them, even if they are all entirely online, like working groups, the release process, general disagreements (which will happen; every contributor is smart, and smart people love friendly debate!), etc.)