पाठ 16 / 25

Refactoring safely

Refactoring safely को स्पष्ट evidence के साथ लागू करें।

Refactoring safely को समझें

Refactoring safely में पहले उसकी समस्या समझें। Implementation चुनने से पहले input, constraint और दिखने वाला outcome पहचानें।

Workflow देखें

Refactoring safely में समझें, काम करें, verify करें और सुधारें।

Refactoring safely का workflow।
चित्र 4.1 — दोहराया जा सकने वाला workflow।

उपयोगी तुलना

Refactoring safely route plan जैसा है: हर step को destination से जोड़ता है।

अपनी reasoning जाँचें।

त्वरित जाँच: Refactoring safely के लिए सही पहला step क्या है?

  • Goal और constraint तय करें।
  • Unverified example copy करें।
  • Measurement छोड़ दें।
Answer

Goal और constraint तय करें। — स्पष्ट goal और constraint निर्णय को review योग्य बनाते हैं।