From: Robert Klemme Date: 2013-06-19T17:45:00+09:00 Subject: Re: getting the most out of Ruby --047d7b5d5b9439be2104df7dd802 Content-Type: text/plain; charset=ISO-8859-1 On Wed, Jun 19, 2013 at 10:42 AM, Robert Klemme wrote: > > > > On Tue, Jun 18, 2013 at 9:59 PM, Brandon Weaver wrote: > >> The biggest jumping point for me is when I stopped trying to program Ruby >> like C# and started programming Ruby like Ruby. >> > :-) > >> Coming from C land you have tendencies towards a lot of imperative >> techniques, and Ruby is not solely imperative. Learning the functional side >> of Ruby is essential to graduate into advanced topics. >> > I'd be careful labeling Ruby as "functional". The only "functional" about > Ruby is that with lambda you can have anonymous functions which you can > pass around. The core feature of funct > Sorry, somehow I hit the wrong button and GMail just sent off the email. What I wanted to say: I'd be careful labeling Ruby as "functional". The only "functional" about Ruby is that with lambda you can have anonymous functions which you can pass around and create higher order functions. The core feature of functional programming for me was always functions without side effects. And that is not part of Ruby. Of course, you _can_ code lambdas without side effects - but the language does not enforce this. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/ --047d7b5d5b9439be2104df7dd802 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable



On Wed, Jun 19, 2013 at 10:42 AM, Robert Klemme &= lt;shortcut= ter@googlemail.com> wrote:



On Tue, Jun 18, 2013 at 9:59 PM, Brandon Weaver <k= eystonelemur@gmail.com> wrote:

The biggest jumping= point for me is when I stopped trying to program Ruby like C# and started = programming Ruby like Ruby.

:-)=A0
=

Coming from C land you have tendencies towards a lot of impe= rative techniques, and Ruby is not solely imperative. Learning the function= al side of Ruby is essential to graduate into advanced topics.

I'd be careful labeling Ruby as "functional". =A0T= he only "functional" about Ruby is that with lambda you can have = anonymous functions which you can pass around. =A0The core feature of funct=
=A0

Sorry, som= ehow I hit the wrong button and GMail just sent off the email. =A0What I wa= nted to say:

I'd be careful labeling Ruby = as "functional". =A0The only "functional" about Ruby is= that with lambda you can have anonymous functions which you can pass aroun= d and create higher order functions. =A0The core feature of functional prog= ramming for me was always functions without side effects. =A0And that is no= t part of Ruby. =A0Of course, you _can_ code lambdas without side effects -= but the language does not enforce this.

Kind regards

robert

--
remember.guy do |as, often| as.you_can - witho= ut end
http://blog.rubybe= stpractices.com/
--047d7b5d5b9439be2104df7dd802--