Should I memorize syntax or just look things up as I go?
I am learning JavaScript and I keep forgetting how to write array methods like map and filter. Every time I need them, I open MDN or my old notes. I feel like I should have these things memorized by now. But then I watch experienced developers on YouTube and they also look up basic syntax all the time. Is memorization actually important for a beginner, or is knowing how to find the answer good enough? I don't want to waste time drilling flashcards if that is not how real programming works. On the other hand, I worry that looking up every little thing makes me slower and means I am not really learning. How much of the core language should I be able to write without references? Also curious if this varies by language. Like should I memorize Python basics but look up framework stuff? Would love to hear how working programmers handle this balance. #programming #dev #technology source