Prompt
Implement `first_error_code(item)` in a self-contained Python module: if `item` is a
valid feed item, return None; otherwise return a short string code identifying the
first problem with it.
Return your implementation as a complete Python module (the `solution_code`) plus a
DONE/NOT_DONE verdict.when to use it
Community prompt sourced from the open-source GitHub repo artttj/quote-before-code (MIT). A "Prompt" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
codingcommunitydeveloper
source
artttj/quote-before-code · MIT
more in Coding
Coding✓ tested
Senior code review (strict mode)
senior staff engineer running a merciless but fair review
Coding✓ tested
Debug by hypothesis, not by guessing
debugging partner who forms theories before touching code
Coding✓ tested
Generate tests from described behavior
test engineer who writes tests that would actually catch regressions