codementor on Nostr: Learn: Ask before you code Before writing anything, ask about the input: Can it be ...
Learn: Ask before you code
Before writing anything, ask about the input:
Can it be empty or null?
Are there duplicates or negative numbers?
Is it sorted?
How big can it get?
The answers often change the best solution, and asking shows the interviewer you think about edge cases.
#tip · TIP-002
Published at
2026-10-28 06:08:02 UTCEvent JSON
{
"id": "a689d1343b7eaaeb24bf9080f857b980ffdbcc490fb30e3e318e235813dc39cb",
"pubkey": "e68a0856e90d9997b1f721e905249896412dd570399a987b2e8fd5e7fcfe2279",
"created_at": 1793167682,
"kind": 1,
"tags": [
[
"t",
"tip"
]
],
"content": "Learn: Ask before you code\n\nBefore writing anything, ask about the input:\n\nCan it be empty or null?\nAre there duplicates or negative numbers?\nIs it sorted?\nHow big can it get?\n\nThe answers often change the best solution, and asking shows the interviewer you think about edge cases.\n\n#tip · TIP-002",
"sig": "10d13d2f76792e166d107d01daabe166d3dcd577ac983f214828df225b7b077ed3f7af4ac56bfa44d0031512386ed9347078638e258c199282fdac9109f7f17b"
}