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


Groups > comp.lang.ruby > #7369

Re: how many diffrent between ruby 1.8 vs 2.3?

Newsgroups comp.lang.ruby
Date 2017-07-21 01:26 -0700
References <c5476fda-3f7b-4207-ba03-b70f452b5774@googlegroups.com>
Message-ID <1f82c7e4-8f25-45ea-858f-da97684ebf58@googlegroups.com> (permalink)
Subject Re: how many diffrent between ruby 1.8 vs 2.3?
From Jesús Burgos <jburmac@gmail.com>

Show all headers | View raw


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.

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


Thread

how many diffrent between ruby 1.8 vs 2.3? pug breaker <pug1270@gmail.com> - 2017-07-20 18:51 -0700
  Re: how many diffrent between ruby 1.8 vs 2.3? Jesús Burgos <jburmac@gmail.com> - 2017-07-21 01:26 -0700
    Re: how many diffrent between ruby 1.8 vs 2.3? neverland@GOODEVEca.net (Pete) - 2017-09-09 19:34 +0000
  Re: how many diffrent between ruby 1.8 vs 2.3? soyeomul@doraji.xyz (Byung-Hee HWANG (황병희, 黃炳熙)) - 2017-10-08 21:47 +0900

csiph-web