Learning Ruby (Paperback)

Michael James Fitzgerald

  • 出版商: O'Reilly
  • 出版日期: 2007-05-24
  • 定價: $1,250
  • 售價: 8.0$1,000
  • 語言: 英文
  • 頁數: 275
  • 裝訂: Paperback
  • ISBN: 0596529864
  • ISBN-13: 9780596529864
  • 相關分類: Ruby
  • 相關翻譯: Ruby 學習手冊 (Learning Ruby) (繁中版)
  • 立即出貨(限量) (庫存=5)

買這商品的人也買了...

商品描述

Description

You don't have to know everything about a car to drive one, and you don't need to know everything about Ruby to start programming with it. Written for both experienced and new programmers alike, Learning Ruby is a just-get-in-and-drive book -- a hands-on tutorial that offers lots of Ruby programs and lets you know how and why they work, just enough to get you rolling down the road.

Interest in Ruby stems from the popularity of Rails, the web development framework that's attracting new devotees and refugees from Java and PHP. But there are plenty of other uses for this versatile language. The best way to learn is to just try the code! You'll find examples on nearly every page of this book that you can imitate and hack. Briefly, this book:
  • Outlines many of the most important features of Ruby
  • Demonstrates how to use conditionals, and how to manipulate strings in Ruby. Includes a section on regular expressions
  • Describes how to use operators, basic math, functions from the Math module, rational numbers, etc.
  • Talks you through Ruby arrays, and demonstrates hashes in detail
  • Explains how to process files with Ruby
  • Discusses Ruby classes and modules (mixins) in detail, including a brief introduction to object-oriented programming (OOP)
  • Introduces processing XML, the Tk toolkit, RubyGems, reflection, RDoc, embedded Ruby, metaprogramming, exception handling, and other topics
  • Acquaints you with some of the essentials of Rails, and includes a short Rails tutorial.
Each chapter concludes with a set of review questions, and appendices provide you with a glossary of terms related to Ruby programming, plus reference material from the book in one convenient location. If you want to take Ruby out for a drive, Learning Ruby holds the keys.

商品描述(中文翻譯)

描述

你不需要對汽車的一切都了解才能開車,同樣地,你也不需要對Ruby的一切都了解才能開始使用它進行編程。《學習Ruby》這本書適合有經驗和新手程式設計師,它是一本實踐性的教程,提供了許多Ruby程式,並告訴你它們是如何運作的,只需要足夠的知識讓你上路。

對Ruby的興趣源於Rails的流行,這是一個吸引新的信徒和從Java和PHP轉移的網頁開發框架。但這個多功能語言還有很多其他用途。學習的最佳方式就是嘗試寫程式!你會在本書的幾乎每一頁找到可以模仿和修改的例子。簡而言之,本書包括以下內容:

- 概述了Ruby的許多重要特性
- 示範如何使用條件語句,以及如何在Ruby中操作字符串。包括正則表達式的部分
- 描述了如何使用運算符、基本數學、Math模塊中的函數、有理數等
- 引導你了解Ruby數組,並詳細介紹了哈希
- 解釋了如何使用Ruby處理文件
- 詳細介紹了Ruby類和模塊(混入),包括對面向對象編程(OOP)的簡要介紹
- 介紹了處理XML、Tk工具包、RubyGems、反射、RDoc、嵌入式Ruby、元編程、異常處理等主題
- 讓你熟悉Rails的一些基本知識,並包含一個簡短的Rails教程

每章結束時都有一組復習問題,附錄提供了與Ruby編程相關的術語詞彙表,以及書中的參考資料,方便查閱。如果你想開始使用Ruby,那麼《學習Ruby》就是你的鑰匙。