From: robin wood Date: 2013-06-19T08:08:38+09:00 Subject: Re: getting the most out of Ruby Stu wrote in post #1112800: > Robin, If you look at ruby from a polyglot programmer view of the major > paradigms consider this. Ruby is essentially three major paradigms > modeled > after three major programming languages, actually more but lets keep it > simple. > > Ruby's object oriented is modeled after smalltalk; Though it's marketed > as > python > Ruby's functional style is modeled after scheme lisp; Ruby programmers > know > the value of everything, but the cost of nothing =) > Ruby's system programming is modeled after the procedural shell; > Basically > the c programming language, awk, bourne shell, UNIX regular expressions > Et > al. ; This is marketed as Perl( though the %{ literals } came from perl) I really like Ruby's OO model and it is something that frustrates me whenever I have to switch to Python as it doesn't feel quite as nice. I did some smalltalk at uni so I think that may be why I'm drawn to it. I do a lot of shell work so the regex stuff comes naturally luckily but it did take a lot of effort to learn in the first place. It is the functional style stuff that I'm still getting my head around, I never really got lisp when they tried to teach it at uni. > Though refactoring (i.e. less tokens == faster execution) is good to > grok > and testing aids the practice and is definitely part of the software > development process it may be also useful to understand Ruby also from > it's > ancestors which further reseach can be seen from languages and utilities > dating back to early days of computer science in the 1950's I'm looking at the refactoring work to try to learn the more "Ruby" ways to do things rather than initially trying to write faster or tighter code. > Good luck and enjoy hacking ruby Thanks -- Posted via http://www.ruby-forum.com/.