Specialization matters. A generalist who does a little bit of everything often ends up delivering work that's incomplete or subpar on both fronts.
However, it’s all about perspective. For example, someone might spend considerable time mastering frontend development and, after gaining experience, choose to learn backend development. This doesn’t make them any less of a frontend developer but rather enhances their skills as a full-stack developer—proficient in both frontend and backend. It’s about excelling in specific niches, not spreading yourself too thin across five or more fields at once.