मुख्य सामग्री पर जाएँ
kitlocal.dev

Refactor for readability without changing behavior

Proposes small, behavior-preserving refactorings for a function and lists the tests that must still pass.

यह संसाधन केवल अंग्रेज़ी में उपलब्ध है।

प्रॉम्प्ट ऐसा टेक्स्ट हैं जिसे आप अपने असिस्टेंट में कॉपी करते हैं। KitLocal उन्हें नहीं चलाता।

वेरिएबल भरें

आप जो लिखते हैं वह इसी ब्राउज़र में रहता है। इसे URL में नहीं जोड़ा जाता, सहेजा नहीं जाता और कहीं भेजा नहीं जाता।

पूर्वावलोकन

अभी भी चाहिए: Code to refactor, Language

Refactor this {{language}} code for readability WITHOUT changing behavior.
Give a list of small steps, each independently reviewable, with the resulting code for the
final step only. Call out any step that could change behavior (ordering, errors, side effects)
and the test that would reveal it. If the existing tests are missing or weak, say which
characterization tests to write first.

Code:
{{code}}

Existing tests:

उद्देश्य

Improve structure while keeping behavior identical and verifiable.

कब इस्तेमाल करें

  • A function is hard to read and you want safe, reviewable steps.

क्या तैयार रखें

  • The code and the tests that cover it, if any.

अपेक्षित आउटपुट

Steps with risk notes, then the final code.

इस कैटलॉग के बारे में

साथ में शामिल स्नैपशॉट · 15 नव॰ 2026, 6:05 am पर प्रकाशित · कैटलॉग रिविज़न 5bc079fe355af2214bc0

ऐप के साथ आया स्नैपशॉट दिखाया जा रहा है (कोई कंटेंट स्रोत कॉन्फ़िगर नहीं है)। स्रोत पर नया कंटेंट हो सकता है।