Ruby and Rails Books (Links/Requests)

jonjonson

Member
Joined
Mar 4, 2004
Messages
145
Reaction score
28
Age
52
Strings are fundamentally different in Ruby 1.8 and Ruby 1.9:

In Ruby 1.8, strings are a sequence of bytes. When strings are used to represent text (instead of binary data), each byte of the string is assumed to represent a single ASCII character. In 1.8, the individual elements of a string are not characters, but numbers—the actual byte value or character encoding.

In Ruby 1.9, on the other hand, strings are true sequences of characters, and those characters need not be confined to the ASCII character set. In 1.9, the individual elements of a string are characters—represented as strings of length 1—rather than integer character codes. Every string has an encoding that specifies the correspondence between the bytes in the string and the characters those bytes represent. Encodings such as the UTF-8 encoding of Unicode characters use variable numbers of bytes for each character, and there is no longer a 1-to-1 (nor even a 2-to-1) correspondence between bytes and characters.
и так далее... Например, глава 2.4.1. Specifying Program Encoding.

OReilly - The Ruby Programming Language

Видимо плохо ищите.
 

jonjonson

Member
Joined
Mar 4, 2004
Messages
145
Reaction score
28
Age
52
Удалите дубль
 
Last edited by a moderator:

Deadlysleep

Member
Joined
May 4, 2005
Messages
6
Reaction score
0
Age
39
Location
Москва
Спасибо огромное, однако все равно методы upcase, downcase и т.д. в Ruby с кириллицей не работают...
 

_lamer_

Member
Joined
Aug 11, 2005
Messages
66
Reaction score
19
Age
38
Deadlysleep, спроси лучше тут: хттп://groups.google.com/group/ror2ru
 

Echo

Member
Joined
Mar 3, 2004
Messages
1,353
Reaction score
1,699
Wiley - Professional Ruby on Rails

Wiley - Professional Ruby on Rails.pdf

047022388X.jpg


Download:
http://mihd.net/widg6oj

Password:
Professional+Ruby-on_Rails=Wiley

Bookmarks have been created.
 

_lamer_

Member
Joined
Aug 11, 2005
Messages
66
Reaction score
19
Age
38
Programming Ruby 3: The Pragmatic Programmers' Guide, 3rd Edition (Beta)
by Dave Thomas, with Chad Fowler and Andy Hunt

не попадалась?
 

_lamer_

Member
Joined
Aug 11, 2005
Messages
66
Reaction score
19
Age
38
Название: Гибкая разработка веб-приложений в среде Rails
Original: Pragmatic - Agile Web Development with Rails 2nd
9060983dd977.jpg

download: http://rapidshare.com/files/133712552/002540.rar.html (20,8 Mb) (c) www.infanata.org

P.S.: Огромное спасибо Fafnir и NataHaus
P.S.S.: Читал бумажный вариант, довольно неплохой перевод ;-)
 
Last edited by a moderator:

_lamer_

Member
Joined
Aug 11, 2005
Messages
66
Reaction score
19
Age
38
Only on dumpz.ru :)
Pragmatic - Programming Ruby The Pragmatic Programmer's Guide 3rd - Beta.pdf
by Dave Thomas, with Chad Fowler and Andy Hunt

ruby3hq5.jpg


download: http://mihd.net/abgxiko (7.28 MB)
password: Programming+Ruby-The+3rd-Beta=Pragmatic

P.S.: Говорим спасибо echo за "очистку" книги :)
 
Top