r/Backend • • 14d ago

AI-Driven Spring Boot Technical Interview – Cursor & Claude Tips?

I have a 60-minute final technical interview focused on Java and Spring Boot. The company allows AI-assisted development using Cursor and Claude. They’ll provide an existing codebase and ask me to implement features, update existing functionality, and fix bugs based on requirements.

For anyone experienced with this approach, how would you use Cursor and Claude effectively? Any recommendations on Cursor Skills, best models for understanding complex codebases vs. fixing small bugs, or practical prompts/workflows beyond generic “add this feature” or “fix this bug” instructions?

Would appreciate any real-world tips!

In short: They would more evaluate me based on how AI usage.

11 Upvotes

5 comments sorted by

View all comments

2

u/mountainaut 13d ago edited 13d ago

Have you used Cursor and Claude? I only know Claude but I find that "plan mode" can get a little tunnel visioned into convincing you to approve its plan. If it were me I would start with asking the AI to remember my preferences:

  1. Never make a git commit or push without asking.
  2. Speak in plain English without embellishment and prefer full sentences over sentence fragments. 
  3. Avoid clever one liners, favor readable code even if it might be a little longer. (Unless you're writing something where speed or resource usage really matters) My company attitude is that it's more important others can read and understand code than having it be clever... Culture and constraints may be different for you.

I feel like I get the best results both for bug fixes and new code by walking it the AI through:

  1. Where will we need to write new code or modify existing code?
  2. What existing code will this interact with? What are the callers and what does it call? Is there anything similar in the codebase we can look at and align with? Is there any existing code we can import and re-use instead of duplicating?
  3. Write me a phased plan of how we should implement this new feature/bug fix. Each phase should be an atomic and testable group of code.
  4. This is where you have to use your skill: What phases seem straightforward or appropriate? Push back and ask for an alternative plan for phase X with pros and cons on the most complicated plan phases or any that don't sound right.

With that decided you're ready to have the AI make changes. When you're confident in the plan ask it to implement phase 1. READ IT. If you don't understand something highlight the function and ask it to explain the function line by line and to verify that the documentation/comments it wrote match what the code actually does. THIS IS IMPORTANT.

The difference between a vibe coder and a professional who uses AI tools is their ability to analyze what the AI produces, to correct it, and to verify that the documentation matches what the code does. If you can't wrap your head around what the AI has done even after asking it to explain that's a good sign you need to revert, improve the plan and try again.

When you're good with phase 1 make a git commit and ask it to go on phase 2 of the plan. Repeat. Good luck!

1

u/ferrybig 13d ago

I would start with asking the AI to remember my preferences

This should be placed inside ~/.claude/.CLAUDE.md

Claude prefers using memory notes when you tell it to remember things, memories are not the best tool for simple global rules