注冊(cè) | 登錄讀書(shū)好,好讀書(shū),讀好書(shū)!
讀書(shū)網(wǎng)-DuShu.com
當(dāng)前位置: 首頁(yè)出版圖書(shū)科學(xué)技術(shù)計(jì)算機(jī)/網(wǎng)絡(luò)軟件與程序設(shè)計(jì)其他編程語(yǔ)言/工具學(xué)習(xí)Ruby(影印版)

學(xué)習(xí)Ruby(影印版)

學(xué)習(xí)Ruby(影印版)

定 價(jià):¥29.00

作 者: (美)菲茨杰拉德(Fitzgerald,M.) 著
出版社: 東南大學(xué)出版社
叢編項(xiàng):
標(biāo) 簽: 程序設(shè)計(jì)

購(gòu)買這本書(shū)可以去


ISBN: 9787564109639 出版時(shí)間: 2007-11-01 包裝: 平裝
開(kāi)本: 16 頁(yè)數(shù): 238 字?jǐn)?shù):  

內(nèi)容簡(jiǎn)介

  正如您在開(kāi)車的時(shí)候,并不需要知道關(guān)于汽車的一切;當(dāng)您開(kāi)始使用Ruby進(jìn)行編程的時(shí)候,也不需要立刻了解關(guān)于Ruby的一切。無(wú)論對(duì)于Ruby的新手還是老手,《學(xué)習(xí)Ruby》都是一本即學(xué)即用的實(shí)用教材。它提供了非常多的Ruby程序,并且解釋了這些程序如何運(yùn)行以及這樣運(yùn)行的原因。這些內(nèi)容已經(jīng)足以讓您開(kāi)始您的Ruby之旅。由于網(wǎng)絡(luò)開(kāi)發(fā)框架Ruby on Rails的流行和大受歡迎,Ruby已經(jīng)引起了很多Java和PHP開(kāi)發(fā)人員的興趣。但除了Rails之外,Ruby還有其他廣泛的用途,而學(xué)習(xí)這些用法的最好方法就是動(dòng)手嘗試編寫(xiě)代碼。在本書(shū)中,幾乎每一頁(yè)都可以找到代碼例子。您可以仿照或者改寫(xiě)這些例子,生成您自己的代碼。本書(shū)包含以下主題:* 介紹Ruby最重要的功能特性* 示例說(shuō)明如何使用條件語(yǔ)句以及如何使用Ruby字符串..* 涵蓋正則表達(dá)式* 解釋如何使用Ruby的操作符、有理數(shù)、算術(shù)表達(dá)式以及Math模塊的函數(shù)* 詳細(xì)介紹Ruby數(shù)組和hash功能* 講解使用Ruby進(jìn)行文件處理* 對(duì)Ruby類和mixin模塊的細(xì)節(jié)展開(kāi)討論,包括對(duì)面向?qū)ο缶幊痰暮?jiǎn)要介紹* 介紹XML處理、Tk工具包、RubyGems、反射機(jī)制(reflection)、RDoc、嵌入式Ruby、元編程(metaprogramming)、異常處理等內(nèi)容* 讓您掌握Rails的基本知識(shí),包括一個(gè)Rails的簡(jiǎn)單教程每一章都有一組問(wèn)題回顧,附錄中有Ruby編程的名詞對(duì)照表和書(shū)中用到的參考資料的出處。如果您想帶著Ruby開(kāi)車兜風(fēng),那么《學(xué)習(xí)Ruby》就是您的車鑰匙。

作者簡(jiǎn)介

  Michael Fitzgerald是一位有20多年經(jīng)驗(yàn)的程序員和作者,他認(rèn)為Ruby是到目前為止他最喜愛(ài)的編程語(yǔ)言。Michael還是《Learning XSLT》《XML hacks》《Ruby Pocket Reference》的作者,也是《XML Pocket Reference》的作者之一。以上提到的書(shū)籍均由O'Reilly出版。

圖書(shū)目錄

Preface 1. Ruby Basics Hello, Matz Interactive Ruby Resources Installing Ruby Permission Denied Associating File Types on Windows Review Questions 2. A Quick Tour of Ruby Ruby Is Object-Oriented Ruby's Reserved Words Comments Variables Strings Numbers and Operators Conditional Statements Arrays and Hashes Methods Blocks Symbols Exception Handling Ruby Documentation Review Questions 3. Conditional Love The if Statement The case Statement The while Loop The loop Method The for loop Execution Before or After a Program Review Questions 4. Strings Creating Strings Concatenating Strings Accessing Strings Comparing Strings Manipulating Strings Case Conversion Managing Whitespace, etc. Incrementing Strings Converting Strings Regular Expressions 1.9 and Beyond Review Questions 5. Math Class Hierarchy and Included Modules Converting Numbers Basic Math Operations Ranges Inquiring About Numbers More Math Methods Math Functions Rational Numbers Prime Numbers Review Questions 6. Arrays Creating Arrays Accessing Elements Concatenation Set Operations Unique Elements Blow Your Stack Comparing Arrays Changing Elements Deleting Elements Arrays and Blocks Sorting Things and About Face Multidimensional Arrays 1.9 and Beyond Other Array Methods Review Questions 7. Hashes Creating Hashes Accessing Hashes Iterating over Hashes Changing Hashes Converting Hashes to Other Classes 1.9 and Beyond Other Hash Methods Review Questions 8. Working with Files Directories Creating a New File Opening an Existing File Deleting and Renaming Files File Inquiries Changing File Modes and Owner The IO Class Review Questions 9. Classes Defining the Class Instance Variables Accessors Class Variables Class Methods Inheritance Modules public, private, or protected Review Questions 10. More Fun with Ruby Formatting Output with sprintf Processing XML Date and Time Reflection Using Tk Metaprogramming RubyGems Exception Handling Creating Documentation with RDoc Embedded Ruby Review Questions 11. A Short Guide to Ruby on Rails Where Did Rails Come From? Why Rails? What Have Other Folks Done with Rails? Hosting Rails Installing Rails Learning Rails A Brief Tutorial Review Questions A. Ruby Reference B. Answers to Review QuestionsGlossaryIndex

本目錄推薦

掃描二維碼
Copyright ? 讀書(shū)網(wǎng) ranfinancial.com 2005-2020, All Rights Reserved.
鄂ICP備15019699號(hào) 鄂公網(wǎng)安備 42010302001612號(hào)