Most advice aimed at absolute beginners is bad, because the questions are bad. E.g. "what's the best programming language?"
You and I may know that the question is a bad one, but beginners don't know that. And when they ask, they aren't told to rephrase the question as "What would I like to build?" Someone will just say "well I know Javascript and...." and it goes from there.
That was not good advice. CS50 is an excellent, introductory, survey CS course but it's still a CS course.