I think for me it was after doing some teaching. In order to teach something, I needed to make sure I knew why I was writing code in the way I was writing it; and several times, as I went over what I was about to explain in my head, I realised I didn't fully grasp why things were the way they were, and so I did some research into it so that I could explain why I was writing the code that way.
After a while of doing that, I realised that I was filling in a lot of gaps in my knowledge, I now knew not only how to do something by why I was doing it that way and not one of three other ways. I felt that did a lot to banish impostor syndrome because at least for the stuff I was doing, I now knew I had a solid understanding of it and wasn't just doing it because I saw someone else do it in a tutorial once.
Other than that, it was just time. As I progressed with my career, and could count more successes as part of it, I think slowly that built up some self-confidence that I lacked.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I think for me it was after doing some teaching. In order to teach something, I needed to make sure I knew why I was writing code in the way I was writing it; and several times, as I went over what I was about to explain in my head, I realised I didn't fully grasp why things were the way they were, and so I did some research into it so that I could explain why I was writing the code that way.
After a while of doing that, I realised that I was filling in a lot of gaps in my knowledge, I now knew not only how to do something by why I was doing it that way and not one of three other ways. I felt that did a lot to banish impostor syndrome because at least for the stuff I was doing, I now knew I had a solid understanding of it and wasn't just doing it because I saw someone else do it in a tutorial once.
Other than that, it was just time. As I progressed with my career, and could count more successes as part of it, I think slowly that built up some self-confidence that I lacked.