1. 首页
  2. 课程学习
  3. 讲义
  4. Scala in action

Scala in action

上传者: 2019-09-10 04:18:06上传 PDF文件 9.51MB 热度 33次
非常优秀的书,建议学习大数据Spark的同学的下载认真看看Scala in actionNILANJAN RAYCHAUDHURIMANNINGSHELTER ISLANDFor online information and ordering of this and other Manning books, please visitwww.manning.com.ThepublisheroffersdiscountsonthisbookwhenorderedinquantityFor more information, please contactSpecial Sales DepartmentManning publications co20 Baldwin roadPO Box 261helter lsland,NY11964Email:orders@manning.com@2013 by Manning Publications Co. All rights reservedNo part of this publication may be reproduced, stored in a retrieval system, or transmitted, inany form or by means electronic, mechanical, photocopying, or otherwise, without prior writtenpermission of the publisherMany of the designations used by manufacturers and sellers to distinguish their products areclaimed as trademarks. Where those designations appear in the book, and manningPublications was aware of a trademark claim, the designations have been printed in initial capsor all caps@o Recognizing the importance of preserving what has been written, it is Mannings policy to havethe books we publish printed on acid-free paper and we exert our best efforts to that endRecognizing also our responsibility to conserve the resources of our planet, Manning bookare printed on paper that is at least 15 percent recycled and processed without the use ofelemental chlorineManning publications coDevelopment editor Cynthia Kane20 Baldwin roTechnical Proofreaders: Ivan Kirkpatrick, Clint CombsPO Box 261Copyeditor: Corbin CollinsShelter island. ny11964Proofreader: Elizabeth martinTypesetter: Dottie marsicoCover designer: Marija TudorISBN9781935182757Printed in the united states of america12345678910=MAL-181716151413brief contentsPART 1 SCALA THE BASICS1 Why Scala? 3Getting started 20g3■ OoP in scala554 Having fun with functional data structures 93Functional programming 182PART 2 WORKING WITH SCALA. .............................................1676 Building web applications in functional style 1697 Connecting to a database 1938Building scalable and extensible components 224Concurrency programming in Scala 25510 Building confidence with testing 288PART 3 ADVANCED STEPS...........................32111 Interoperability between Scala and Java 32812Scalable and distributed applications using akka 344contentsforeword xiiipreface xUacknowledgments xvibout this bookabout the cover illustration xxiPART 1 SCALA: THE BASICS●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●自●●Why scala? 31.1 What's Scala? 4Scala as an object-oriented language 4. Scala as a functionalanguage 6 Scala as a multi-paradigm language 8Scala as a scalable and extensible language g Scala runs onthe /vM 101.2 The current crisis 11End of Moore's law 11 Programming for multicores II8 Transitioning from Java to Scala 13Scala improves productivity 13. Scala does more with less1.4 Coming from a dynamic language 15Case for static typing, the right way 16CONTENTS1.5 For the programming language enthusiast 181.6 Summary 18Getting started 202.1 REPL with Scala interpreter 212.2 Scala basics 22Basic types 23. Defining variables 28 Definingfunctions 302.3 Working with array and list 362.4 Controlling flow with loops and ifs 382.5 For-comprehensions 392.6 Pattern matching 422.7Eeption handiP2.8 Command-line rest client: building a workingexample 46g Http client lit48· Building the client,step by step2.9 Summary 543ooP in Scala 553.1 Building a scala mongodb driver: user stories 563.2 Classes and constructors 578.8 Packaging 613.4 Scala imports 683.5 Objects and companion objects 653.6 Mixin with Scala traits 69Class linearization 75 Stackable traits 773.7C783.8 Named and default arguments and copy constructors 833.9 Modifiers 868.10 Value classes: objects on a diet 878.11 Implicit conversion with implicit classes 883.12 Scala class hierarchy 913.13 Summary 92CONTENTSHaving fun with functional data structures 934.1 Introducing type parameterization 944.2 Type variance with covariance and contravariance 954.8 Lower and upper type bounds 994.4 Higher-order functions, including mapflatMap, and friends 1014.5 USing foldLeft and foldRight 1064.6 Building your own function objects 1084.7 Scala collection hierarchy4. 8 Mutable and immutable collections 1134.9 Working with List and ListBuffer 114Working with Set and sortedset 115 Working with Maand Tuple 117. Under the hood of for-comprehension 118Use option not Null 1214. 10 Working with lazy collections: views and streams 122Convert a strict collection to a nonstrict collection with vieus 123Working with streams 1254.11 Divide and conquer with parallel collections 127Parallel collection hierarchy 129. Switching between sequentialand parallel collections 1304.12 Summary 131Functional programming 1325.1 What is functional programming133The benefits of referential transparency 134 A pure functionalrogram 1355.2 Moving from OoP to functional programming 185Pure vs impure programming 136.Object-oriented patternsin functional programming 137- Modeling purely functionalprograms 1385.3 Functions in all shapes and forms 140Methods vs functions 141 Higher-order functions 141Function curing 144- Function composition and partialfunctions 145 Recursion 1485.4 Thinking recursively 149Tail recursion 150
下载地址
用户评论
码姐姐匿名网友 2019-09-10 04:18:06

不错,是MANNING的版本。