हमारी कंपनी में हम अत्यधिक एक्सएमएल टिप्पणियां लिखते हैं। एक ठेठ विधि इस तरह से प्रलेखित है है करने के लिए किया जा:सी # एक्सएमएल टिप्पणियां: एक्सएमएल टिप्पणियों में कितने <see ... /> संदर्भ उपयोगी हैं?
/// <summary>
/// Determines whether this <see cref="IScheduler"/> contains a specific <see cref="ISchedule"/>.
/// </summary>
/// <param name="schedule">The <see cref="ISchedule"/> to locate in this <see cref="IScheduler"/>.</param>
/// <returns>
/// Returns <see langword="true"/> if <paramref name="schedule"/> is found in this <see cref="IScheduler"/>; otherwise, <see langword="false"/>.
/// </returns>
bool Contains(ISchedule schedule);
/// <summary>
/// Removes and <see cref="IDisposable.Dispose"/>s the first occurrence of a specific <see cref="ISchedule"/>
/// from this <see cref="IScheduler"/>.
/// </summary>
/// <param name="schedule">The <see cref="ISchedule"/> to remove from this <see cref="IScheduler"/>.</param>
/// <exception cref="System.ArgumentNullException">Is thrown when the parameter schedule is null.</exception>
/// <exception cref="System.ArgumentException">Is thrown when the <see cref="ISchedule"/> is not found in this <see cref="IScheduler"/> or was of the wrong type.</exception>
void Remove(ISchedule schedule);
आप लगभग हर संज्ञा है जो एक <see cref>
टैग का उपयोग कर संदर्भित किया जा सकता देख सकते हैं।
मुझे यह बहुत अधिक लगता है। हमारी अधिकांश कोड फ़ाइलों को ऐसी टिप्पणियों के साथ उड़ाया जाता है। टिप्पणियां अनुभाग लगभग अपठनीय बनाता है।
आपको क्या लगता है? क्या आपको इस तरह के दस्तावेज कोड में पसंद है या नहीं?
सामान्य रूप से मुझे लगता है कि इस तरह के प्रश्न के लिए कोई काला/सफेद जवाब नहीं है, इसलिए मैंने इसे विकी बना दिया।
संपादित करें:
मेरा प्रश्न यह नहीं था कि देखें-रेफ-टैग स्वयं डिफ़ॉल्ट रूप से उपयोगी होते हैं। यह स्पष्ट है कि .chm फ़ाइल (या किसी अन्य प्रकार के जेनरेट किए गए डॉकू) में जेनरेट किए गए लिंक बहुत उपयोगी हैं। मेरा सवाल यह था कि टिप्पणियों में हर "लिंक करने योग्य" संज्ञा की हर घटना को टैग करना वाकई उपयोगी होता है।
हम हर रात डॉकू उत्पन्न करने के लिए सैंडकासल का उपयोग करते हैं। दुर्भाग्यवश यह अन्य डेवलपर्स द्वारा बहुत ही कम इस्तेमाल किया जाता है, लेकिन यह एक और मुद्दा है।
रीशेर्पर की "त्वरित दस्तावेज़ीकरण" सुविधा (Ctrl-Q oin मेरी कुंजी मैपिंग) का उपयोग करते समय यह भी बहुत उपयोगी है। – adrianbanks