Ah, the circle of developer life. Junior devs step on rakes by not documenting code, then get smacked in the face when they forget how their own sorcery works a week later.
Meanwhile, seniors are out here doing sick skateboard tricks with proper documentation, clean code, and READMEs... but still wiping out spectacularly when that one function they wrote 6 months ago might as well be ancient Sumerian.
The real truth? Nobody remembers how anything works. The difference is seniors have learned to leave themselves breadcrumbs for when future-them inevitably becomes an amnesiac.