It's interesting to see all the different views about this. I have always operated on the belief that a woman who is a stranger will know you find them appealing just by the mere fact you are trying to engage them in a friendly conversation of any kind. From there, it generally takes only a few seconds to determine if she has any interest in you. As a result, I think it's at best unhelpful, and at worst asking for a problem to approach a strange woman with a compliment. She won't become interested because of the compliment. She will be put off by the compliment if she has no interest. There's plenty of time for compliments if she shows any interest in you. Like so many new experiences, its best to wade in rather than jump into the pool with a cannonball!
Agree with your sentiment. It is tricky. But, you must be honest with your compliment as a false one is obvious and have no expectations beyond the compliment.
If she is a stranger just stay safe and say hello and take it from there depending on her reaction and if it is positive then complement their dress, hair, etc something they have done that way you compliment their taste. That changes if they show interest in you but even then start slowly with something that compliments their taste.
Once compliment is done take the lead and change topic so she is not wondering WTF to say in response as making her feel awkward is the opposite of what you are trying to do
Jumping right in with a strong compliment works some times but has pitfalls as the article suggests. She may not want the attention and you have put her in an awkward situation.
But if the encounter is fleeting and you are strongly interested it and are willing to risk it then you have two choices go for it or stay home but be prepared for rejection
Practice by opening doors etc with no expectations and do not reserve your gentleman gesture to attractive women as your goal is to learn how to approach with a natural effortless smoothness not an awkward " I wanna pick you up but I do not know how to" creepy approach
I find coffee shops are cool. If she seems friendly then offer to buy coffee, again with no expectations
I have been startled discovering that some women are actually interested in me when at first glance I thought no way would she be interested in me - this is not a brag as I fail more often than not but if you never swing you will never hit the ball - so stop talking yourself out of the approach even if she seems unobtainable with first glance
Remember that if she is interested she is not going to approach that is your job so no use waiting for her to approach but do look for non-verbal clues
One more important note, women are much more sensitive to non-verbal signals than guys so learn to read them and how to give them. Develop your sixth sense. As Sonia states " Keep calm and read the signs"