Memory capability and behavior is variable. I can remember and keep in mind vast swaths of code, but I am capable of forgetting someone’s name in seconds.
I have to meet with new groups of people on a regular basis and am likewise horrible with names. My notes in meetings consist of first names written down as a map of where people were sitting. If I miss a name, I leave an empty spot. It has helped me with remembering names. I often never refer to it again.
I literally have to keep a text file on my phone with peoples names. I have exceptional visual and spacial memory, but names just slip through like sand through a sieve.
With the text file, I just have to recall on roughly which line the name was and I am able to recall it. I have no idea why or how this works, but it does. I did try to keep a "Mental" list, but that just does not work, I need to type it in or write it on a piece of paper for it work.