• how many diffrent between ruby 1.8 vs 2.3?

    From pug breaker@21:1/5 to All on Thu Jul 20 18:51:22 2017
    [use google translator]



    Yesterday I got a book called "Learning ruby - O'reilly" which was published in 2008.

    Now I see that people use Ruby version 2.3 or higher

    This book is based on Ruby 1.8.

    Is there any problem in studying with this book?

    I think

    If it were quite different, it would be a problem.

    If not, I will have to study a little more chapters.

    I want to study with that book as much as possible.

    I'd appreciate it if you could give me some more chapters to add in 1.8.

    I would also like to let you know some of the information about the update history between Ruby versions.

    (It's not obligatory, I can find it somehow :))

    Thank you.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Jes=C3=BAs_Burgos?=@21:1/5 to All on Fri Jul 21 01:26:00 2017
    I recommend you to find a newer book. Ruby had important changes from version 1.8 to 1.9, including new syntax.

    A couple of things I can think of:

    * This is valid syntax in 1.9 but not in 1.8: {a: 'value', b: 'value'}.
    * This is a valid method definition in 1.9 but not in 1.8:

    ```
    def method argument
    # stuff
    end
    ```

    El viernes, 21 de julio de 2017, 3:51:31 (UTC+2), pug breaker escribió:
    [use google translator]



    Yesterday I got a book called "Learning ruby - O'reilly" which was published in 2008.

    Now I see that people use Ruby version 2.3 or higher

    This book is based on Ruby 1.8.

    Is there any problem in studying with this book?

    I think

    If it were quite different, it would be a problem.

    If not, I will have to study a little more chapters.

    I want to study with that book as much as possible.

    I'd appreciate it if you could give me some more chapters to add in 1.8.

    I would also like to let you know some of the information about the update history between Ruby versions.

    (It's not obligatory, I can find it somehow :))

    Thank you.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Pete@21:1/5 to jburmac@gmail.com on Sat Sep 9 19:34:57 2017
    [Sorry, this is a somewhat aging thread, but I just read it now...]

    In article <1f82c7e4-8f25-45ea-858f-da97684ebf58@googlegroups.com>,
    Jesús Burgos <jburmac@gmail.com> wrote:

    * This is a valid method definition in 1.9 but not in 1.8:

    ```
    def method argument
    # stuff
    end
    ```
    Eh...? I have Ruby 1.8.4 on one of my older machines, and I copy/pasted
    the above into it. It compiles fine -- and can be invoked: e.g.
    "method 11" (returning a nil result). Am I missing your meaning?

    Re the original query, I still find my 'Pickaxe' book for 1.8 an
    invaluable reference, even for Ruby 2.2. It's the new [absurd (:-/)]
    behaviour of strings that I have to keep diving to the web to sort out.

    -- Pete --

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Byung-Hee HWANG =?utf-8?B?KO2Zqeuzk@21:1/5 to All on Sun Oct 8 21:47:26 2017
    pug breaker <pug1270@gmail.com> 께서 쓰시길,
    《記事 全文 <c5476fda-3f7b-4207-ba03-b70f452b5774@googlegroups.com>
    에서》:

    This book is based on Ruby 1.8.

    I want to study with that book as much as possible.

    $ /usr/bin/ruby --version
    ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-linux]

    As you see, i'm also 1.8.7 on Ubuntu 12.04.

    Just for study, no problem with ruby 1.8.7, i think.

    Sincerely,

    --
    ^고맙습니다 _地平天成_ 감사합니다_^))//

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)