While I think Glocks are perfectly fine, the ergonomics for me are just awful. I have yet to find a Glock that didn't feel as if I were holding one of those square bars of bath soap. Just clunky and uncomfortable. I do like the Springfield XD series much better. I like them enough that I own three. The XD9 is the most accurate 9mm that I've had the opportunity to fire. From a rest at 27 yards, I can get five rounds of 115gr Blazer FMJ into less than 2 inches. For cheap ammo, that's pretty impressive. The XD40 and the XD9 subcompact are equally nice. Your friend made a good choice. For some additional comments, check out Chuck Taylor's website for his views on the XD series.
FWIW,
emc