I defer. I value remembering syntax of programing language. Not all syntaxes, but your commonly used ones.
I have been remembering Python syntax through Anki. Recently, I needed to write some adhoc scripts for backfill. I felt so productive without looking at any references. It took me 3x less time to complete my task compared to always looking at references.