Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #7225

Re: Learn Ruby The Hard Way Exercise 19

From Robert Klemme <shortcutter@googlemail.com>
Newsgroups comp.lang.ruby
Subject Re: Learn Ruby The Hard Way Exercise 19
Date 2016-04-18 21:25 +0200
Message-ID <dnkqm6F934mU1@mid.individual.net> (permalink)
References <873523bf-6a50-46f0-a3bd-20361b518960@googlegroups.com>

Show all headers | View raw


On 18.04.2016 20:24, Cai Gengyang wrote:

> A little confused, what exactly is the point of the exercise --- Is
> it simply to introduce variables ?
>
> It says in the text that this exercise is to reinforce the point that
> quote : "The variables in your function are not connected to the
> variables in your script." --- what does this sentence mean ?

Apparently it tries to teach you the concept of "scope".  But there is
more text on the page that should help you understand.  It seems to be
called "... the hard way" for a reason... :-)

Cheers

	robert


-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/

Back to comp.lang.ruby | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Learn Ruby The Hard Way Exercise 19 Cai Gengyang <gengyangcai@gmail.com> - 2016-04-18 11:24 -0700
  Re: Learn Ruby The Hard Way Exercise 19 Robert Klemme <shortcutter@googlemail.com> - 2016-04-18 21:25 +0200
    Re: Learn Ruby The Hard Way Exercise 19 Cai Gengyang <gengyangcai@gmail.com> - 2016-04-18 14:25 -0700
      Re: Learn Ruby The Hard Way Exercise 19 Robert Klemme <shortcutter@googlemail.com> - 2016-04-18 23:36 +0200
        Re: Learn Ruby The Hard Way Exercise 19 Cai Gengyang <gengyangcai@gmail.com> - 2016-04-18 15:55 -0700
          Re: Learn Ruby The Hard Way Exercise 19 viper11@gmail.com - 2016-04-22 13:21 -0700

csiph-web