From: Lyndon Samson Date: 2005-04-05T15:43:00+09:00 Subject: Re: doubly linked list in Ruby? On Apr 5, 2005 8:15 AM, Douglas Livingstone wrote: > On Apr 4, 2005 11:03 PM, Ryan Davis wrote: > > > > I disagree. It doesn't add any confidence to my driving to know how > > every little component inside the car works. > > It does add confidence to know about Array.new, and it does add > confidence if you know your car stears with the front wheels or the > back wheels. I agree that you don't need to know how "every little > component works", that would be taking it too far. But even then, I > see no problem with someone asking about the details. > Indeed, Ignorance about implementations leads to code like the following pixels = [] width=100 height=100 height.times { |y| pixels[y]=[] width.times {|x| pixels[y][x] = Pixel.new(100) } } Ie 100000 objects being created just because its good OO practice. > Douglas > > -- Into RFID? www.rfidnewsupdate.com Simple, fast, news.