It seems like language is more important to interviewing than I originally thought. I usually interview in python since it's easy to code interview questions with. However, it seems like engineers will actually consider the language people interview in when evaluating a candidate. I know scala really well. Should I interview in scala even if it might be harder to code interview questions in, particularly if the role involves spark development?
What are the downsides?
Lol don’t interview in scala, your interviewer will hate you if they don’t do scala.
Isn't it typically the case that you tell the recruiter which language you prefer and they find engineers who know the language? I feel if I was interviewing someone and they coded in scala I might be more inclined than if they coded in Java, all things being equal.
Is that the case at amazon? No, recruiters desperately get any live body available on their loops
Why don't you ask your interviewer which language they prefer you code in?
The problem with interviewing in Scala is that for most interviewers, the mental model of what they’re looking for is nifty for loop > improved for loop > brute force for loop. They haven’t considered a functional solution and so if you code one they’ll mostly just reject you or ask you to change all of your maps etc. to for loops. (I’m not saying functional programming is some genius thing they don’t understand, just that they aren’t looking for inventiveness, they’re looking for the answer they found online for the question). This has held true even when I’ve interviewed for explicitly Scala positions. Unless you’re whiteboarding code for a Spark job, I’d stay away from scala.
If the job requires Spark experience, then you should program in Scala. But for general coding challenge? Nah. People probably dont know Scala anyway, it has a rather steep learning curve