Exactly how I aced high school. And got into MIT.
Much less useful to me in college. Even less useful now. I must have 100 programming books in Google drive.
The only way to learn something (and certainly programming) at a high level is to force yourself to write down a well- defined, closed-end problem, and then sit down and solve the motherf_____r. You learn what you need to learn, build, and invent along the way, and that survives longer than the original problem.