It a matter of collective synergy of brains and thinking by the vastly experience engineers that results to the wonder u see.
Books are hard particalarly technical and programming books thats why u cant get the knowledge from book. #imho
Learn the fundamentals, then work on hard problems. Hang out with as many really smart people - also working on hard problems - as you can. Read obsessively. Experiment and don't be afraid to fail from time to time.