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

快學(xué)Scala

快學(xué)Scala

定 價(jià):¥79.00

作 者: (美)霍斯曼(Horstmann,C.S.)著高宇翔譯
出版社: 電子工業(yè)出版社
叢編項(xiàng):
標(biāo) 簽: 程序設(shè)計(jì)

ISBN: 9787121185670 出版時(shí)間: 2012-09-29 包裝: 平裝
開(kāi)本: 16開(kāi) 頁(yè)數(shù): 408頁(yè) 字?jǐn)?shù):  

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

  Scala是一門(mén)以Java虛擬機(jī)(JVM)為目標(biāo)運(yùn)行環(huán)境并將面向?qū)ο蠛秃瘮?shù)式編程語(yǔ)言的最佳特性結(jié)合在一起的編程語(yǔ)言。你可以使用Scala編寫(xiě)出更加精簡(jiǎn)的程序,同時(shí)充分利用并發(fā)的威力。由于Scala運(yùn)行于JVM之上,因此它可以訪(fǎng)問(wèn)任何Java類(lèi)庫(kù)并且與Java框架進(jìn)行互操作。本書(shū)從實(shí)用角度出發(fā),給出了一份快速的、基于代碼的入門(mén)指南。Horstmann以“博客文章大小”的篇幅介紹了Scala的概念,讓你可以快速地掌握和應(yīng)用。實(shí)際上手的操作,清晰定義的能力層次,從初級(jí)到專(zhuān)家級(jí),全程指導(dǎo)。本書(shū)適合有一定的Java編程經(jīng)驗(yàn)、對(duì)Scala感興趣,并希望盡快掌握Scala核心概念和用法的開(kāi)發(fā)者閱讀。

作者簡(jiǎn)介

  Cay S. Horstmann是《Java核心技術(shù)》卷1和卷2第8版(Sun Microsystems出版社2008年出版)的主要作者,除此之外,他還著有其他十多本面向?qū)I(yè)程序員和計(jì)算機(jī)科學(xué)專(zhuān)業(yè)學(xué)生的書(shū)籍。他是San Jose

圖書(shū)目錄

譯者序............................................III序...............................XV前言............................................XVII作者簡(jiǎn)介......................................XIX第1章 基礎(chǔ)A1 .............................11.1 Scala解釋器 .....................................11.2 聲明值和變量.................................31.3 常用類(lèi)型.........................................41.4 算術(shù)和操作符重載.............................................51.5 調(diào)用函數(shù)和方法..............................71.6 apply方法 ........................................81.7 Scaladoc...........................................9練習(xí).....................................11第2章 控制結(jié)構(gòu)和函數(shù)A1 ............................132.1  條件表達(dá)式..................................142.2 語(yǔ)句終止.......................................162.3 塊表達(dá)式和賦值...............................................162.4 輸入和輸出 ..................................172.5 循環(huán)...............................................182.6 高級(jí)for循環(huán)和for推導(dǎo)式..................................192.7 函數(shù)...............................................212.8 默認(rèn)參數(shù)和帶名參數(shù) L1..............................222.9 變長(zhǎng)參數(shù)L1...............................222.10 過(guò)程...............................................232.11 懶值L1.......................................242.12 異常...............................................25練習(xí).....................................27第3章 數(shù)組相關(guān)操作A1 ................................293.1 定長(zhǎng)數(shù)組.......................................293.2 變長(zhǎng)數(shù)組:數(shù)組緩沖.......................................303.3 遍歷數(shù)組和數(shù)組緩沖.......................................313.4 數(shù)組轉(zhuǎn)換.......................................323.5 常用算法.......................................343.6 解讀Scaladoc.................................353.7 多維數(shù)組.......................................373.8 與Java的互操作 ................................................37練習(xí).....................................38第4章 映射和元組A1 ...................................414.1 構(gòu)造映射.......................................414.2 獲取映射中的值...............................................424.3 更新映射中的值...............................................434.4 迭代映射.......................................444.5 已排序映射...................................444.6 與Java的互操作 ................................................454.7 元組...............................................454.8 拉鏈操作.......................................46練習(xí).....................................47第5章 類(lèi)A1 ...............................515.1 簡(jiǎn)單類(lèi)和無(wú)參方法...........................................515.2 帶getter和setter的屬性......................................525.3 只帶getter的屬性 ..............................................555.4 對(duì)象私有字段................................565.5 Bean屬性L(fǎng)1................................575.6 輔助構(gòu)造器...................................595.7 主構(gòu)造器.......................................605.8 嵌套類(lèi)L1...................................63練習(xí).....................................65第6章 對(duì)象A1 ...........................696.1 單例對(duì)象.......................................696.2 伴生對(duì)象.......................................706.3 擴(kuò)展類(lèi)或特質(zhì)的對(duì)象.......................................716.4 apply方法 ......................................726.5 應(yīng)用程序?qū)ο?...............................736.6 枚舉...............................................74練習(xí).....................................75第7章 包和引入A1 .......................................797.1 包...................................................807.2 作用域規(guī)則...................................817.3 串聯(lián)式包語(yǔ)句................................837.4 文件頂部標(biāo)記法...............................................837.5 包對(duì)象...........................................847.6 包可見(jiàn)性.......................................857.7 引入...............................................857.8 任何地方都可以聲明引入 ..............................867.9 重命名和隱藏方法...........................................877.10 隱式引入.......................................87練習(xí).....................................88第8章 繼承A1 ..........................918.1 擴(kuò)展類(lèi)...........................................918.2 重寫(xiě)方法.......................................928.3 類(lèi)型檢查和轉(zhuǎn)換...............................................938.4 受保護(hù)字段和方法...........................................948.5 超類(lèi)的構(gòu)造...................................948.6 重寫(xiě)字段.......................................958.7 匿名子類(lèi).......................................968.8 抽象類(lèi)...........................................978.9 抽象字段.......................................978.10 構(gòu)造順序和提前定義L3...............................988.11 Scala繼承層級(jí)..............................1008.12 對(duì)象相等性L(fǎng)1.............................................101練習(xí)......................................................102第9章 文件和正則表達(dá)式A1 .......................1059.1 讀取行.........................................1069.2 讀取字符.....................................1069.3 讀取詞法單元和數(shù)字.....................................1079.4 從URL或其他源讀取 .....................................1089.5 讀取二進(jìn)制文件.............................................1089.6 寫(xiě)入文本文件..............................1089.7 訪(fǎng)問(wèn)目錄.....................................1099.8 序列化.........................................1109.9 進(jìn)程控制A2 ..............................1119.10 正則表達(dá)式.................................1139.11 正則表達(dá)式組..............................114練習(xí)......................................................114第10章 特質(zhì)L1 ..........................................11710.1 為什么沒(méi)有多重繼承...................................11710.2 當(dāng)做接口使用的特質(zhì)...................................11910.3 帶有具體實(shí)現(xiàn)的特質(zhì)...................................12010.4 帶有特質(zhì)的對(duì)象...........................................12110.5 疊加在一起的特質(zhì).......................................12210.6 在特質(zhì)中重寫(xiě)抽象方法...............................12410.7 當(dāng)做富接口使用的特質(zhì)...............................12410.8 特質(zhì)中的具體字段.......................................12510.9 特質(zhì)中的抽象字段.......................................12610.10 特質(zhì)構(gòu)造順序...............................................12710.11 初始化特質(zhì)中的字段...................................12910.12 擴(kuò)展類(lèi)的特質(zhì)...............................................13110.13 自身類(lèi)型L2...............................................13210.14 背后發(fā)生了什么...........................................133練習(xí)......................................................135第11章 操作符L1 .......................................13911.1 標(biāo)識(shí)符.......................................13911.2 中置操作符................................14011.3 一元操作符................................14111.4 賦值操作符................................14211.5 優(yōu)先級(jí).......................................14211.6 結(jié)合性.......................................14311.7 apply和update方法........................................14411.8 提取器L2................................14511.9 帶單個(gè)參數(shù)或無(wú)參數(shù)的提取器L2..............................14611.10 unapplySeq方法L2....................................147練習(xí)......................................................148第12章 高階函數(shù)L1 ...................................15112.1 作為值的函數(shù)...............................................15112.2 匿名函數(shù)...................................15212.3 帶函數(shù)參數(shù)的函數(shù).......................................15312.4 參數(shù)(類(lèi)型)推斷.......................................15412.5 一些有用的高階函數(shù)...................................15512.6 閉包...........................................15612.7 SAM轉(zhuǎn)換...................................15712.8 柯里化.......................................15812.9 控制抽象...................................15912.10 return表達(dá)式...............................161練習(xí)......................................................162第13章 集合A2 ..........................................16513.1 主要的集合特質(zhì)...........................................16613.2 可變和不可變集合.......................................16713.3 序列...........................................16813.4 列表...........................................16913.5 可變列表...................................17013.6 集...............................................17113.7 用于添加或去除元素的操作符......................................17313.8 常用方法...................................17513.9 將函數(shù)映射到集合 .......................................17713.10 化簡(jiǎn)、折疊和掃描A3...............................17813.11 拉鏈操作...................................18113.12 迭代器.......................................18313.13 流A3.......................................18413.14 懶視圖.......................................18513.15 與Java集合的互操作 ....................................18613.16 線(xiàn)程安全的集合...........................................18813.17 并行集合...................................188練習(xí)......................................................190第14章 模式匹配和樣例類(lèi)A2 .....................19314.1 更好的switch..............................19414.2 守衛(wèi)...........................................19514.3 模式中的變量...............................................19514.4 類(lèi)型模式...................................19614.5 匹配數(shù)組、列表和元組...............................19714.6 提取器.......................................19814.7 變量聲明中的模式.......................................19914.8 for表達(dá)式中的模式 .......................................19914.9 樣例類(lèi).......................................20014.10 copy方法和帶名參數(shù)....................................20114.11 case語(yǔ)句中的中置表示法.............................20114.12 匹配嵌套結(jié)構(gòu)...............................................20214.13 樣例類(lèi)是邪惡的嗎.......................................20314.14 密封類(lèi).......................................20414.15 模擬枚舉...................................20514.16 Option類(lèi)型................................20514.17 偏函數(shù)L2................................207練習(xí)......................................................207第15章 注解A2 ..........................................21115.1 什么是注解................................21215.2 什么可以被注解...........................................21215.3 注解參數(shù)...................................21315.4 注解實(shí)現(xiàn)...................................21415.5 針對(duì)Java特性的注解 ....................................21615.5.1 Java修飾符 ......................................21615.5.2 標(biāo)記接口.........................................21615.5.3 受檢異常.........................................21715.5.4 變長(zhǎng)參數(shù).........................................21715.5.5 JavaBeans........................................21815.6 用于優(yōu)化的注解...........................................21915.6.1 尾遞歸.............................................21915.6.2 跳轉(zhuǎn)表生成與內(nèi)聯(lián).........................22015.6.3 可省略方法.....................................22115.6.4 基本類(lèi)型的特殊化.........................22215.7 用于錯(cuò)誤和警告的注解...............................223練習(xí)......................................................224第16章 XML處理
Copyright ? 讀書(shū)網(wǎng) ranfinancial.com 2005-2020, All Rights Reserved.
鄂ICP備15019699號(hào) 鄂公網(wǎng)安備 42010302001612號(hào)