Yeah thats the thing. There's so much more to cs than learning rails or whatever.
Learning the fundamentals of cs theory, machine learning so forth, make you a better developer indirectly. Yet a lot of this stuff is not covered in detail on web, sure there plenty of web tutorials, but a lot are superficial, following a "how to" format for HTML Php etc. Only now with edx and coursea are decent courses coming out.
Accountability is what school offers you. You are forced to work the homework problems and then you really learn. You can do this on your own but without the social motivation it is much less likely. Udacity, etc. are solving this problem for online education now in CS.
It is a well-known fact that becoming a "high-level" web programmer doesn't require brains or a degree. Now this post makes it clear that, even such people who miserably fail to get a degree can write PHP programs and Javascript.