Go rant
retard
re at tard.com.invalid
Mon Dec 21 10:44:43 PST 2009
Mon, 21 Dec 2009 18:54:19 +0100, Daniel de Kok wrote:
> On 2009-12-19 21:04:32 +0100, Andrei Alexandrescu
> <SeeWebsiteForEmail at erdani.org> said:
>> "This code is shown for its elegance rather than its efficiency. Using
>> ++ in this way is not generally considered good programming practice."
>>
>> So if the code is inefficient and in poor programming practice, how in
>> this blessed world could it count as elegant?
>
> Well, it is elegant in that it is very readable, and as such provides
> educational value. There are very many examples in programming text
> books that may not be efficient, but do show the solution to a problem
> elegantly.
I have several imperative language programming books and instead of qsort
they introduce the reader to the wonderful world of bubble sort!
More information about the Digitalmars-d
mailing list