I'll be honest, if I haven't used a particular language in a while I'll often forget the sybtax for doing really basic stuff. I can describe exactly what I want to do, but I forget exactly how. Only takes me a few seconds of Googling to remind myself generally.
Ive had to Google how to format a range based for loop(for each) in various languages tons of time.
That’s fair enough, but if you’re having an interview in a particular language, it’s probably worth writing a couple of simple programs in that language the night before.
Alternatively, you can always ask the interviewer. I never mind answering syntax questions if it’s clear the interviewee knows what they are trying to do.
6
u/raltyinferno Nov 30 '19
I'll be honest, if I haven't used a particular language in a while I'll often forget the sybtax for doing really basic stuff. I can describe exactly what I want to do, but I forget exactly how. Only takes me a few seconds of Googling to remind myself generally.
Ive had to Google how to format a range based for loop(for each) in various languages tons of time.