It was a loony week in Silicon Valley. Four major technology companies announced expensive and risky programs to become less like themselves and more like their competitors.