Re:The best engineering interview question I've ever gotten
by db48x on Monday April 18, 2022 @05:55PM
(#31077114)
I confess to being a little confused by that. How can you “add a command to memcached” without altering memcached’s source code?
Re:The best engineering interview question I've ever gotten
by akhmatova on Monday April 18, 2022 @11:48PM
(#31079596)
I know nothing about memcached. But in general, out in programmingland:
"Adding a command to do X" does not imply (in general) "altering the source".
That is, there are plenty of cases where one does not need to hack the source to effectively "add a command" to the running system.
Re:The best engineering interview question I've ever gotten
by db48x on Tuesday April 19, 2022 @08:37PM
(#31091330)
Ok, I guess you’re thinking of your shell where you can “add a command” by dropping a shell script anywhere on the disk? Or your text editor, where you can add commands by editing some config file? I guess that’s fair. Note however that each of these programs has bent over backwards to enable easy extensibility. The average program does not. This is more like adding a command to sed or grep, which have no extensibility (aside from editing their source code).
From the problem statement as such, you can't tell.