Interviewers can now use Code Review questions in Interviews to assess candidates on their coding skills. In Code Review questions, Interviewers can share code written by someone else and ask the candidates to provide suggestions and comments to improve the code.
In the Code Review questions:
- Candidates and Interviewers will both be able to add comments to specific lines of the code
- Comments can be written with Markdown support for rich text (bold, italics, code snippet, and so on.)
- "Grading Rubrics" can be added to help the Interviewers to view information regarding the code. They can refer to this information to assess the candidate
For information about how to create a Dode Review question, see Creating a Code Review Question.
Code Review Question User Interface
The user interface of a Code Review question is intuitive, allowing you to add comments to the code, add Grading Rubrics, compare the code, and so on.
This gif file helps you to understand a Code Review question.
Using Code Review Questions in Interviews
You can use the existing Code Review questions in the HackerRank Library or the My Company library. You can also import these questions while conducting the Interview.
Importing a Code Review Question in Interviews
- Once you have created an Interview, you can use a Code Review question from the Question Library on the landing page.
- Select the Code Review option from the Type drop-down.
- Select an appropriate question by clicking Use.
- The Code Review question is imported into the Interview.
- Once you use the Code Review question, you will be able to see the code.
- The question is launched in the default Split view. You can change the view from Split to Unified View from the drop-down.
- The Unified view facilitates users to view the code in the same view. In Split view, you will be able to see the comparison (diff) of the files.
An interviewer can add instructional, informative, or general comments to the code. These comments are used to prompt the candidates for improvement in code or anything to assess the candidate on.
To add comments:
- Hover over any line and click on the + icon.
- A comment section is available, allowing you to input your comments. Utilize the menu options to format and align your comments as needed. You can also see a preview of the comment by clicking Preview.
- After you add the comment, click Add.
- The comment gets added.
- If you want to start another thread for the same line of code, click Start another thread. Another thread gets started.
- Similarly you can add comments for the other lines of code.
- Grading Rubrics are added to provide context to an Interviewer. These rubrics are added during the creation of the Code Review Question. Grading rubrics are visible only to the Interviewers and not to the Candidates.
- You can hide your comments by enabling the Hide Comments toggle. This will minimize all the comment threads made in the session.
- The code line shows a small arrow, when the comments are hidden. Clicking this will open the thread of comments made over that line.
When a candidate is given a Code Review question, the view is similar to the Interviewer experience, except that the Grading Rubric is not visible. Candidates can add comments, start threads and change the view from Split to Unified as well.
Viewing Candidates Reports
After the interview ends, Interviewers will be taken to the interview report page.
- Click Continue to report.
- On the report page, you can review all the content from the interview, along with comments and the grading rubric.