I owned the very common Canon EF 50mm f/1.8 a few years back; inexpensive, loud focusing, BAD flare when shot right toward the sun, amply sharp, but with jarring bokeh on many backgrounds. This is the "nifty fifty" that Canon made for quite some time; it was a low-cost, somewhat poor-quality 50mm lens, with performance that was well below even 1970's standards as far as flare resistance for example. This older model had a habit of snapping into two, un-repairable pieces when dropped; as I recall, this Nifty Fifty was the second iteration of the Canon EF 50/1.8. This model had a cheap, 5-bladed iris diaphragm...Wow..a 5-bladed iris? That's a very 1950's-like degree of cheapness.
But...the newer Canon EF 50mm f1.8 STM for $125...now THAT's the 50mm lens I would definitely recommend.
I also owned the Canon EF 50/1.4, which was a good lens, but I suspect that the newer Canon EF 50mm f1.8 STM is actually a better performer in some ways. Regardless of the maximum aperture, I see almost no real difference between an f/1.4 lens and an f/1.8 lens when shot wide-open...it's NOT much of a difference between f/1.4 and f/1.8, so I say, go for the Canon 50/1.8 STM model. Buy it, and use it, and enjoy it!
I would not recommend the Yongnuo 50/1.8, no matter how cheaply priced it is. I cannot recommend the HUGE, heavy 50mm ART type lenses from Sigma for a beginner...just too big, too heavy,too obnoxious a lens size and profile: use one in public, or at an event, and people will look askance at you.