-
Install visual studio code and visual studio live share. https://visualstudio.microsoft.com/pl/services/live-share/
-
Make a folder for storing your interviewees work.
-
Copy the following script into a recruit.sh file in that folder, remember to
chmod +x
it:
cd candidates
mkdir "$1"
cp ../templates/*.$2 "$1"
cd "$1"
code .
-
Make a
templates
directory and acandidates
directory in the same folder. -
In the templates directory, create a set of starter templates for each of the supported programming languages. For instance, I have a
templates/recruitmentTask.py
file with the following content:
# (here goes my task description)
array = [];
def someFunction(array):
pass
print(someFunction(array))
-
To start an interview, first run
./recruit.py "Firstname Lastname" py
. The last argument is the filename extension. -
VScode should open, after it opens click on the Live Share button in the bottom bar to copy a link to clipboard.
- Send that link to an interviewee, they can click anonymous signin.
- Remember to give them write permissions in the little popup that should show up in your vscode instance.
- You're ready to start! Candidate should be able to write code, but only you control the built in terminal (but the candidate sees it's contents)
Everything you write gets stored in the
candidates/Firstname Lastname
folder.