Good advice.
I’m a banjo player. Starting with tab ( and playing for myself ) quickly got me to a certain level and then ingrained some bad habits. Playing by ear is much better.
One way that seems to work really well:
1. Listen to the song, tap the rhythm to learn it.
2. Figure the chord progression.
3. Using standard rolls ( sequence of notes, one measure ) find how to fit in melody notes