I’ve given and taken a few “code challenges” over the years, and on the most recent one, found myself resentful towards the practice. Here’s my thinking:
First, the time commitment is usually on the order of 3-6 hours. What can be built in this time? Ideally the exercise covers a decent surface area; for instance a full stack role should be tested on backend and frontend development.