The core theory of computing has been with us for decades. Millions of monkeys have been hitting the keys for that time. We are running short of baby monkeys and unless we want the entire troop engaged to keyboard punching, we need to find a better way
Code reuse has long been understood as a good move forward. This has occurred within organizations which is where it ends. Organizations prefer not so share their code.
Online repositories are part of a solution. Another part is FBP (Flow Based Programming/Philosophy). npm.com
By now we should have written most of the code we will ever need. It is not in a form we can easily capitalize on, but buried in the live systems running around the planet.