From: Jens Wille Date: 2008-01-26T18:59:05+09:00 Subject: Re: Making Change (#154) James Gray [2008-01-26 04:59]: > On Jan 25, 2008, at 5:44 PM, Jens Wille wrote: >> James Gray [2008-01-25 23:57]: >>> I guess I should have said: is it that hard to call sort { >>> |a,b| b <=> a }? >> am i missing something? what's wrong with sort.reverse? apart >> from the fact that it's a whole lot faster ;-) > > Because my first computer science teacher drilled into my head > that you sort it correctly in the first place, instead of using > two operations to get what you wanted. well, i guess i have to be glad to be unprejudiced in this regard, since i don't have any formal CS education ;-) > I guess he hadn't run into Ruby yet. ;) that's so true! ruby's expressiveness is just amazing. with the added benefit that the most simple way to do something is almost always the most efficient one (both in terms of coding speed as well as execution speed) -- at least from a layman's perspective... cheers jens -- Jens Wille, Dipl.-Bibl. (FH) prometheus - Das verteilte digitale Bildarchiv f�r Forschung & Lehre Kunsthistorisches Institut der Universit�t zu K�ln Albertus-Magnus-Platz, D-50923 K�ln Tel.: +49 (0)221 470-6668, E-Mail: jens.wille@uni-koeln.de http://www.prometheus-bildarchiv.de/