Book one in The Tripods Trilogy, it is written by John Christopher. It is the source of the following quotes:
"...he that proclaims many friends declares that he has none."
"...nothing mattered, nothing was of value, without a mind that challenged and inquired."