GB
What is the primary purpose of coding standards in a multi-developer project and what happens when inconsistently applied?
IN
मल्टी-डेवलपर प्रोजेक्ट में कोडिंग मानकों का प्राथमिक उद्देश्य क्या है और असंगत रूप से लागू होने पर क्या होता है?
A
Reduce compilation time by optimising code structure
कोड संरचना को अनुकूलित करके संकलन समय कम करें
B
Ensure code is readable and maintainable by any team member; inconsistent application creates cognitive overhead, introduces subtle bugs in misunderstood conventions, and makes code review ineffective
सुनिश्चित करें कि कोड किसी भी टीम सदस्य द्वारा पढ़ने योग्य और रखरखाव योग्य है; असंगत अनुप्रयोग संज्ञानात्मक ओवरहेड बनाता है, गलत समझे गए सम्मेलनों में सूक्ष्म बग पेश करता है, और कोड समीक्षा को अप्रभावी बनाता है
C
Only needed for open-source projects where external contributors work on the code
केवल ओपन-सोर्स परियोजनाओं के लिए आवश्यक है जहां बाहरी योगदानकर्ता कोड पर काम करते हैं
D
Automatically enforce themselves through modern IDEs
आधुनिक आईडीई के माध्यम से स्वयं को स्वचालित रूप से लागू करें
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
Coding standards create a shared vocabulary for the codebase. When inconsistently applied, developers must context-switch between styles. More dangerously, inconsistent conventions can obscure bugs that consistent formatting would make obvious.
व्याख्या (हिन्दी)
कोडिंग मानक कोडबेस के लिए एक साझा शब्दावली बनाते हैं। असंगत रूप से लागू होने पर, डेवलपर्स को शैलियों के बीच संदर्भ-स्विच करना होगा। अधिक खतरनाक रूप से, असंगत परंपराएँ उन बगों को अस्पष्ट कर सकती हैं जिन्हें लगातार स्वरूपण स्पष्ट कर देगा।