Re:My favorite coding question to give candidates
by optymizer on Tuesday November 14, 2023 @06:18AM
(#38261864)
Because shell command injection and process spawning time are not always acceptable side-effects.
Re:My favorite coding question to give candidates
by michaelteter on Tuesday November 14, 2023 @11:41AM
(#38265695)
And one of the appropriate questions would be, “Is this a one-off or rare request, or does this need to be productionized? And how sensitive is the response time? And if it must be fast and frequent, then why are we not using some form of indexed db”
Re:My favorite coding question to give candidates
by gpderetta on Tuesday November 14, 2023 @07:19AM
(#38262382)
You would definitely pass if I interviewed you, as long as your solution was reasonably efficient.
I would love to interview a candidate that can show they can use command line tools effectively.
Grep, uniq, wc, and a few others can be treated as pipeline data transformers to answer questions like this interview question. As long as you make some smart decisions about the order of operations, you can usually get performance on par with what you might write custom code for.