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.
এই ক্যাটালগ সম্পর্কে
অন্তর্ভুক্ত স্ন্যাপশট · ১৫ নভে, ২০২৬, ৬:০৫ AM সময়ে প্রকাশিত · ক্যাটালগ রিভিশন 5bc079fe355af2214bc0
অ্যাপের সঙ্গে আসা স্ন্যাপশট দেখানো হচ্ছে (কোনো কনটেন্ট উৎস কনফিগার করা নেই)। উৎসে নতুন কনটেন্ট থাকতে পারে।