I don't spend all my time looking up stuff on google, I've learned the examples you've given and I don't write crappy code.
In my experience, I write better code than most CS majors I've worked with. It may be that in very few and far between instances, a CS major will have some knowledge that would have helped me, but it is definitely not a daily, weekly or even monthly occurrence.