On 10:29 Sun 29 Jul , Phlip wrote: > forgottenwizard wrote: > > > What kind of diffrences are there, effectivly, between case and a series > > of if statements, like in this: > > Google for "premature optimization is the root of all evil". > > Ruby is not the most performant language on the block, and both those > statements will resolve to a chain of conditionals. You need to devote your > time to making clear readable code that's easy to upgrade. When the time > comes to speed it up, if you have unit tests, you can change it easily, > while profiling to see what's actually slow. Trying to guess what will be > slow will only make you waste time writing complex code. > > The most important resource to optimize is programmer time. > > -- > Phlip > http://www.oreilly.com/catalog/9780596510657/ > ^ assert_xpath > http://tinyurl.com/23tlu5 <-- assert_raise_message > Okay, to sum up what you said, not a damn thing? Thats all the answer I needed, not an explination why I shouldn't bother to care how to do things properly, or why I would not want to try and learn a little more on the internals of a language.