Odpověď na názor

Odpovídáte na názor k článku AI asistenti pro vývoj software: postupy vhodné pro programátory. Názory mohou přidávat pouze registrovaní uživatelé. Nově přidané názory se na webu objeví až po schválení redakcí.

  • 13. 11. 2025 11:11

    Jan Hrach
    Stříbrný podporovatel

    > Nenašel jsem cestu, jak by model uměl generovat spolehlivé diffy - správná čísla řádků prostě nedává ani GPT5

    Pokud vím, tak se nikde nepoužívají čísla řádků, ale unikátní kontext. Viz třeba odkazovaný FileEditTool z Claude Code:

    The tool will replace ONE occurrence of old_string with new_string in the specified file.

    CRITICAL REQUIREMENTS FOR USING THIS TOOL:

    1. UNIQUENESS: The old_string MUST uniquely identify the specific instance you want to change. This means
    Include AT LEAST 3-5 lines of context BEFORE the change point
    Include AT LEAST 3-5 lines of context AFTER the change point
    Include all whitespace, indentation, and surrounding code exactly as it appears in the file
    2. SINGLE INSTANCE: This tool can only change ONE instance at a time. If you need to change multiple instances
    Make separate calls to this tool for each instance
    Each call must uniquely identify its specific instance using extensive context
    3. VERIFICATION: Before using this tool
    Check how many instances of the target text exist in the file
    If multiple instances exist, gather enough context to uniquely identify each one
    Plan separate tool calls for each instance
    WARNING: If you do not follow these requirements
    The tool will fail if old_string matches multiple locations
    The tool will fail if old_string doesn't match exactly (including whitespace)
    You may change the wrong instance if you don't include enough context