I've noticed a pattern of some young engineers getting discouraged because they're not receiving much recognition for their work.
This happens disproportionately amongst people who don't fit the standard stereotype, namely female engineers and some minorities. The young engineer does a bunch of work, and hardly anyone notices. They start to experience self-doubt.
What exacerbates the situation is that they look around and see a senior engineer receiving accolades continually. They see Bob winning another award, or getting another five patents, or overhear people praise how amazing Bob is. The young engineer decides that he's not in the same league as Bob. Sometimes they wonder if they should switch to a different type of job.
A good manager can ameliorate this by giving instant feedback, but not everyone has that luxury.
The thing they don't know is: there's a lag between when you do the work and when you receive the recognition for it. The lag is typically a year or more. When you're doing the work, and even right after you finish, the reception is usually silence. You have to take a leap of faith that one day, your work will be warmly received. Experienced engineers get into a rolling-recognition situation where at any moment, they're reaping appreciation for work they did a year or two ago.
The journey always looks grim in the moment. When Frodo and Sam took the Ring to be destroyed in Mordor, it was tedious drudgery, they were hungry and cold, and they kept fighting with each other. Afterwards, they were praised as gods, and epic songs were written in their honor to be passed down throughout the ages. But at the time, it didn't look so rosy!
Same for working in software. I will leave it to the reader to make analogies for what Mordor symbolizes for you.