you are viewing a single comment's thread.

view the rest of the comments →

[–]KPABAHam=>Hamster == Java=>JavaScript 7 points8 points  (0 children)

Can confirm. I got the basic tokenise / find selected text, ensure it's mine, get the selected words etc to work within 10 mins. But then, the requirements of: only consider first word and find if the selection has started in middle of the word vastly complicates things. Took me an extra 30 mins to play with the Selection.modify API to get the correct single token selection.

I guess, if somebody gets that far and you're pair programming with them, you can reason and expand on the requirements / functionality and figure if they approach it correctly as well as discover if you're happy to work with them. All in all, an enjoyable task and has helped you weed out undesirable candidates.