301
GB
What is 'test-first programming' in XP and how does it differ from the broader TDD practice?
IN
एक्सपी में 'टेस्ट-फर्स्ट प्रोग्रामिंग' क्या है और यह व्यापक टीडीडी अभ्यास से कैसे भिन्न है?
A
Test-first programming writes tests after code in XP; TDD writes tests before code
टेस्ट-फर्स्ट प्रोग्रामिंग XP में कोड के बाद टेस्ट लिखती है; टीडीडी कोड से पहले परीक्षण लिखता है
B
Test-first programming in XP applies at unit level within the context of frequent release, refactoring, and customer collaboration; TDD is a more general design technique applicable across any development context regardless of other XP practices
एक्सपी में टेस्ट-फर्स्ट प्रोग्रामिंग लगातार रिलीज, रीफैक्टरिंग और ग्राहक सहयोग के संदर्भ में यूनिट स्तर पर लागू होती है; टीडीडी एक अधिक सामान्य डिजाइन तकनीक है जो अन्य एक्सपी प्रथाओं की परवाह किए बिना किसी भी विकास संदर्भ में लागू होती है
C
Both terms are exactly synonymous with no distinction in practice or scope
दोनों शब्द बिल्कुल पर्यायवाची हैं और व्यवहार या दायरे में कोई अंतर नहीं है
D
Test-first programming only applies to acceptance tests; TDD only to unit tests
टेस्ट-फर्स्ट प्रोग्रामिंग केवल स्वीकृति परीक्षणों पर लागू होती है; केवल इकाई परीक्षणों के लिए टीडीडी
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
While functionally similar, test-first in XP is embedded within XP's ecosystem: it works in conjunction with pair programming (both developers see the test fail together), continuous integration (tests run every few hours), and on-site customer (acceptance tests defined with customer). TDD as popularised by Kent Beck and later Robert Martin is a general practice independent of any particular methodology's social practices.
व्याख्या (हिन्दी)
कार्यात्मक रूप से समान होते हुए भी, एक्सपी में टेस्ट-फर्स्ट एक्सपी के पारिस्थितिकी तंत्र के भीतर एम्बेडेड है: यह जोड़ी प्रोग्रामिंग (दोनों डेवलपर्स एक साथ परीक्षण विफल देखते हैं), निरंतर एकीकरण (हर कुछ घंटों में परीक्षण चलाते हैं), और ऑन-साइट ग्राहक (ग्राहक के साथ परिभाषित स्वीकृति परीक्षण) के साथ मिलकर काम करता है। केंट बेक और बाद में रॉबर्ट मार्टिन द्वारा लोकप्रिय टीडीडी किसी विशेष पद्धति की सामाजिक प्रथाओं से स्वतंत्र एक सामान्य अभ्यास है।