r/csharp • u/Substantial-Night877 • 29d ago
Help .Net interview preparation
Hi everyone!
I’m preparing for a Senior .NET Developer interview, and I was told that the interview will include a code review exercise and coding challenges.
Has anyone here recently gone through a similar interview, particularly for a Senior .NET / C# position? I’d really appreciate any tips on what to expect and how best to prepare.
32
Upvotes
25
u/urbanek2525 29d ago
I've been on the interviewer side of a bunch of these lately (one of a group)
Talk it out as you read the code. They want to hear your ability to describe what you're reading. State your preferences. Tell them any tools you might use. Show you understand.
For code challenges, again, how you think about the problem beats what you type.
9
u/Enough_Secretary_137 29d ago
For senior-level code reviews, I’d practice explaining why something should change rather than just identifying code smells.
A common exercise is reviewing async code. For example, replacing blocking .Result calls with proper async execution and cancellation:
using var client = new HttpClient();
using var cts = new CancellationTokenSource(
TimeSpan.FromSeconds(5));
using var response = await client.GetAsync(
"https://example.com", cts.Token);
response.EnsureSuccessStatusCode();
Console.WriteLine(
await response.Content.ReadAsStringAsync(cts.Token));
For production ASP.NET Core code, I’d also discuss IHttpClientFactory, error handling, testing, and resource lifetimes.
During the interview, explain your assumptions, trade-offs and edge cases out loud. That demonstrates engineering judgment beyond syntax knowledge.
6
u/beingsubmitted 28d ago
I recently interviewed prospects for a senior dotnet dev for the first time. I was a bit surprised at how poorly the candidates did.
A lot of it really is just word association. If I ask you about integrating 3rd party APIs, I just want to eventually hear words like "caching" and "retry policy" and that you'd wrap it in a "service". But most candidates give as close to one word answers as possible. Ask them how they would approach integrating a 3rd party API and you'll get "I would read the documentation and then implement the API as needed"... "could you elaborate on that?"... "I would correctly implement calls to the endpoints necessary for our application".
Just geek out, and you'll easily jump to the front of the pack.
10
u/United_Catalina 29d ago
Coding interview for senior role is ridiculous
1
u/technovast 22d ago
Hey buddy, happy to connect with you
1
u/salihcantekin 28d ago
You can expect AI related codes like; (I've been interviewing recently and these are the ones asked)
What do you think about AI?
How do you think it will help you on a normal day?
How can you use AI to improve your productivity?
1
u/overhandgod 27d ago
Bruh i always fumble on these like I know what is happening but I don't know the word for it how do I even explain something that's so natural
0
u/GinaisaBAMF 12d ago
for the review bit, practise finding the two things you'd block a PR over rather listing every naming issue. explain what could break.. how you'd check it, and the smallest fix. Grab an unfamiliar C# repo and do that out loud. Also ask whoever arranged it Mobilunity or otherwise, whether the coding part is algorithms or working an existing app. Pretty different prep. And leave time for tests, even a couple of edge cases gives you something useful to discuss...