Functions · interview question
When is function extraction being used in the wrong way?
Multiple choiceMediumchapter-2-curatedpremiumfunctionsfunction-extraction
Answer and explanation
Correct answer
D. When it adds cleverness or indirection without making the rule clearer, safer, or easier to test.
Why
A feature is justified by clarity and leverage, not by novelty. Focus on why the correct option matches the concept and why the distractors are weaker in this scenario.
Test yourself on Functions
A free test with instant, explained results. No account needed.
More Functions questions
- What does a strong engineer do when reasoning through return values code?
- Which judgment is strongest when choosing a data shape for return values?
- When is return values being used in the wrong way?
- What does a strong engineer do when reasoning through function extraction code?
- A teammate submits shaky function extraction code. Which review comment is the strongest?
- What is the healthiest performance judgment around function extraction?