At least when I see candidates worried about how short stints will look on their resume, this much context suffices to be said.
Where it gets weird is when you see people on r/cscareerquestions or whatever advocating for a series of short tenure stints as a "hack" to get into high pay positions quickly. The problem is that anyone that has success with this strategy is a living example of survivorship bias, and the seemingly "easy-ness" of the strategy gets a lot of mind space among young highly impressionable audiences, when in reality, if you want to be career-growth focused, you typically do need at least some long tenure stints to gain experience w/ longer term responsibilities and relationships. I.e. you don't see director-level people advocating for quick job hopping for a reason.