The two best links, on the functions of school you'd guess from looking at how it works rather than how it's talked about, and on the real lessons school teaches, are directly below.
http://www.overcomingbias.com/2010/08/functions-of-school.ht...
READ THIS IF NOTHING ELSE http://www.cantrip.org/gatto.html
School is not about learning what they purport to teach, it is certainly not optimised for learning.
http://www.overcomingbias.com/2011/07/sleepy-kids-learn-less...
http://www.overcomingbias.com/2011/06/only-do-math-homework....
School is great at socialising people to accept ranking, judgement and being told what to do.
http://www.overcomingbias.com/2011/08/teachers-as-dictators....
There are no large school systems, anywhere, that are not lineal descendants, ideologically or organisationally of ones designed for turning out soldiers.
http://www.overcomingbias.com/2012/05/schools-are-for-war.ht...