I was dead set on buying a Glock for my first handgun. I asked my firearms instructor what he thought of Glocks and he said don't buy it just yet. He took me to the range with his S&W M&P 40, and he had to borrow a friends Glock 22 because he refused to buy one.
I was struggling to shoot the Glock accurately. The grip kept slipping with every shot (probably because my hands aren't rectangular), the trigger just felt wrong, and it was a bit snappy. He then handed me his M&P, and I had the biggest **** eating grin on my face because just from holding it, I knew why he wanted me to hold off on buying a Glock. Very comfortable ergonomically, easy to shoot, and I was getting VERY good groups for a beginner.
Glock was the pioneer of polymer frame handguns and they are never going to be forgotten for that. But there are several companies that make superior polymer frame handguns, kind of like the apprentice surpassing the mentor. I strongly suggest you look at, and rent/shoot, some other handguns before you buy a Glock. Try Smith and Wesson, Sig Sauer, and Springfield for starters.
Or you could just buy a 1911 and get it over with.