From: Marc Heiler Date: 2008-02-20T08:59:08+09:00 Subject: Re: Is there any object-oriented File class in ruby ? > In addition, there are many bad programmers that badly implement > ruby--check out just about any thread on this forum. [...] > As far as I can tell, not many people know how to write clear > efficient ruby code. There are also a few trolls that delight in every chance to bash on ruby and other ruby-ist's they can get ... right 7stud? But I agree on the obfuscated part, for the following reason - I think a beautiful language like ruby, and anyone writing in it, should not try to strive to write ugly code. We already have a language that does this part, and as far as I can tell it always tried to be a practical language without caring much about elegance. As to the specific question of tom_33 about File class not being "object oriented", I assume this in part lies with the separation of tasks, i.e. if you look at FileUtils and its abilities, and class Dir. I sometimes confuse whether to use File.exist? or File.exists? or Dir.exists? or Dir.exist? anyway. (But you can use your own class and make it "object oriented" super easily. This is one of ruby's great points.) Personally, I do not know why there is this separation (with FileUtils), but I am quite sure that there was a reason for it. -- Posted via http://www.ruby-forum.com/.