should I write more descriptive function names or add comments?
问题 This is a language agnostic question, but I'm wandering what people prefer in terms of readability and maintainability... My hypothetical situation is that I'm writing a function which given a sequence will return a copy with all duplicate element removed and the order reversed. /* *This is an extremely well written function to return a sequence containing *all the unique elements of OriginalSequence with their order reversed */ ReturnSequence SequenceFunction(OriginalSequence) {...} OR