Mislav wrote: > In the following paragraphs I'm going to debunk these.... Applause! Whistles! Good rebuttal. > 4) Enumerable - Iterating over Hashes, Ranges and Arrays in Prototype > is awesome! It reduces lengthy code full of endless loops and closures > you can easily get lost in otherwise. It comes at a price, though - > speed. Yes, using "each()" and friends (they all use "each" internally) > can considerably slow your loop. There is a benchmark [4] by Marius > Feraru; run it, observe the results.e. Just to add. The Enumerable methods really underscores one of Prototype's philosophies:
*Generally favor brevity, ease of creation, and ease of maintenance over speed.* I believe this is a very important part of forward-thinking web philosophy and I am excited to be able to contribute. --Ken --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
