Knowledge-sharing platform Stack Overflow has hired Lily Toy as its first chief legal officer.