I have been playing the piano for 2 years and I have a dream to be able to play pop and some EDM music through my ears without sheets. What I used to do was practicing scales with their cadences and then practicing a few songs from sheets.
Not long ago I started to try and figure out songs by ear without sheets. When trying to figure out a song by ear, I can find the melody and the chords through trial and error but I don't have such a good memory and it is hard for me to memorize it and play long sections. At the moment what I do is play a few seconds of the song on youtube and then figuring it out on my piano and writing it down. Is that "cheating"? Or will this method help me in the long run to be able to play by ear?