Bit by bit, we will learn
All these online repositories are teaching us security in a way a classroom just couldn't.
There's nothing like real-life situations to raise awareness, and the Internet makes security a 24/7 affair.
I guess in ten years' time, there will be exhaustive classes on security, full of "lessons learned" (or an Internet Security For Dummies* book), that will actually be useful enough to ensure that people who take them will know all of what to avoid.
* : yes, I know, there is one already. What I mean to say is that, in a decade or so, we'll likely have enough experience to ensure that all aspects are covered, including online repositories, stacks and other VMs. We're not done finding out how our data can be hacked, is what I'm saying.