I used to think that fizzbuzz
was a stupid way to test if someone is a developer.
Now I think that it's a good litmus test.
However, I think I've found a better one...
const model = %yourSequelizeModel% | |
for (let assoc of Object.keys(model.associations)) { | |
for (let accessor of Object.keys(model.associations[assoc].accessors)) { | |
console.log(model.name + '.' + model.associations[assoc].accessors[accessor]+'()'); | |
} | |
} |
Can you convert a Value Object (i.e. JSON) to YAML?
My expectation is that a mid-senior level developer should be able to accomplish this task in under 4 hours:
I could see it reasonable even if a developer takes 2 days to solve this for the first time - possibly because they needed to take a break but didn't, such as feeling pressure and getting brain freeze, taking an initial wrong approach, over-thinking the problem, and then just keeping beating the dead horse, etc - especially if they've never had to work independently before.