He said something like “from my point of view, this code is perfectly written”, and it actually didn’t sound arrogant, partly because it was true.
I still have to think with my fingertips (i.e. write code before I know the solution), but his is the kind of approach I strive for.
Also, there are some limits to what one can entirely store and efficiently think about in their mind.
Of course, it doesn't mean that one should always start writing code straight away without actually thinking first, or without using pen and paper to lay down some facts and think about edge cases if necessary, for example.
So for me it is better building multiple small things and then wiring them together. Only after this im capable of doing any realistic implementation planning