楼主: zli08
10446 55

Beginning Scala 2nd Edition [推广有奖]

  • 1关注
  • 2粉丝

博士生

28%

还不是VIP/贵宾

-

威望
0
论坛币
12433 个
通用积分
0.0000
学术水平
36 点
热心指数
27 点
信用等级
19 点
经验
3511 点
帖子
159
精华
1
在线时间
235 小时
注册时间
2014-1-25
最后登录
2024-2-19

相似文件 换一批

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币

  1. Author:David Pollak, Vishal Layka
  2. Isbn:978-1-4842-0233-3, 978-1-4842-0232-6, 1484202333
  3. Year:2015
  4. Pages:246
  5. Language:English
  6. File size:3.8 MB
  7. File format:PDF
  8. Category:Scala
  9. Book Description:

  10. Beginning Scala, Second Edition takes a down-to-earth approach to teaching Scala that leads you through simple examples that can be combined to build complex, scalable systems and applications.

  11. This book introduces you to the Scala programming language, its object-oriented and functional programming characteristics, and then guides you through Scala constructs and libraries that allow you to assemble small components into high-performance, scalable systems. You will learn why Scala is judiciously used for critical business applications by leading companies such as Twitter, LinkedIn, Foursquare, the Guardian, Morgan Stanley, Credit Suisse, UBS, and HSBC.

  12. Scala is a multi-paradigm programming language that combines both functional and object-oriented features. Moreover, this highly scalable language lends itself well to building cloud-based/deliverable Software as a Service (SaaS) online applications.
复制代码

本帖隐藏的内容

第二版Beginning Scala.pdf (3.77 MB, 需要: 29 个论坛币)

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Beginning Edition dition beginn editio beginning

已有 7 人评分经验 论坛币 学术水平 热心指数 信用等级 收起 理由
Lisrelchen + 100 + 1 + 1 + 1 精彩帖子
newfei188 + 1 精彩帖子
zl89 + 80 精彩帖子
kongqingbao280 + 20 + 2 精彩帖子
crystal8832 + 36 + 2 + 2 + 2 精彩帖子
fantuanxiaot + 1 + 1 + 1 精彩帖子
Nicolle + 100 精彩帖子

总评分: 经验 + 200  论坛币 + 136  学术水平 + 5  热心指数 + 6  信用等级 + 4   查看全部评分

本帖被以下文库推荐

  1. Listing 3-1. Concrete shapes
  2. class Rectangle(val width:Double,val height:Double) extends Shape {
  3. override def area:Double = width*height
  4. }
  5. class Circle(val radius:Double) extends Shape {
  6. override def area:Double = math.Pi*radius*radius
  7. }
复制代码

已有 1 人评分论坛币 收起 理由
Nicolle + 20 鼓励积极发帖讨论

总评分: 论坛币 + 20   查看全部评分

使用道具

藤椅
giggleholy 发表于 2015-5-5 11:26:21 |只看作者 |坛友微信交流群
  1. Listing 3-2. Parameter with val
  2. class Book(private val title: String) {
  3. def printTitle(b: Book) {
  4. println(b.title)
  5. }
  6. }
  7. scala> val book = new Book("Beginning Scala")
  8. book: Book = Book@ea05be
  9. scala> book.printTitle(new Book("Beginning Erlang"))
  10. Beginning Erlang
复制代码

已有 1 人评分论坛币 收起 理由
Nicolle + 20 鼓励积极发帖讨论

总评分: 论坛币 + 20   查看全部评分

使用道具

板凳
tonyme2 在职认证  发表于 2015-5-5 11:48:24 |只看作者 |坛友微信交流群
  1. Listing 3-3. Parameter without val/var
  2. class Book(title: String) {
  3. def printTitle(b: Book) {
  4. println(b.title)
  5. }
  6. }
复制代码

已有 1 人评分论坛币 收起 理由
Nicolle + 20 鼓励积极发帖讨论

总评分: 论坛币 + 20   查看全部评分

使用道具

报纸
fjrong 在职认证  发表于 2015-5-5 11:48:55 |只看作者 |坛友微信交流群
  1. Listing 3-4. Auxiliary constructor
  2. class Book (var title :String, var ISBN: Int) {
  3. def this(title: String) {
  4. this(title, 2222)
  5. }
  6. def this() {
  7. this("Beginning Erlang")
  8. this.ISBN = 1111
  9. }
  10. override def toString = s"$title ISBN- $ISBN"
  11. }
  12. Given these constructors, the same Book can be created in the following ways:
  13. val book1 = new Book
  14. val book2 = new Book("Beginning Clojure")
  15. val book3 = new Book("Beginning Scala", 3333)
  16. scala> val book1 = new Book
  17. book1: Book = Beginning Erlang ISBN- 1111
  18. scala> val book2 = new Book("Beginning Clojure")
  19. book2: Book = Beginning Clojure ISBN- 2222
  20. scala> val book3 = new Book("Beginning Scala", 3333)
  21. book3: Book = Beginning Scala ISBN- 3333
复制代码

已有 1 人评分论坛币 收起 理由
Nicolle + 20 鼓励积极发帖讨论

总评分: 论坛币 + 20   查看全部评分

使用道具

  1. Listing 3-5. Methods can reference any variables in their scope
  2. def readLines(br: BufferedReader) = {
  3. var ret: List[String] = Nil
  4. defreadAll():Unit= br.readLinematch {
  5. case null =>
  6. case s => ret ::= s ; readAll()
  7. }
  8. readAll()
  9. ret.reverse
  10. }
复制代码

已有 1 人评分论坛币 收起 理由
Nicolle + 20 鼓励积极发帖讨论

总评分: 论坛币 + 20   查看全部评分

使用道具

7
xiaohulu99 发表于 2015-5-5 12:53:40 |只看作者 |坛友微信交流群
  1. Listing 3-6. An abstract method without override
  2. abstractclassBase {
  3. defthing: String
  4. }
  5. classOneextends Base {
  6. defthing= "Moof"
  7. }
复制代码

已有 1 人评分论坛币 收起 理由
Nicolle + 20 精彩帖子

总评分: 论坛币 + 20   查看全部评分

使用道具

8
xiangyu71 发表于 2015-5-5 13:15:16 |只看作者 |坛友微信交流群
  1. Listing 3-7. Using override
  2. classTwoextends One{
  3. overridevalthing= (new java.util.Date).toString
  4. }
  5. classThree extends One{
  6. overridelazy valthing= super.thing + (newjava.util.Date).toString
  7. }
复制代码

使用道具

9
ydb8848 发表于 2015-5-5 13:35:36 |只看作者 |坛友微信交流群
  1. Listing 3-8. The result of a codeblock
  2. def meth3():String = {"Moof"}
  3. def meth4():String = {
  4. val d = new java.util.Date()
  5. d.toString()
  6. }
复制代码

使用道具

10
雪过无痕 发表于 2015-5-5 13:46:32 |只看作者 |坛友微信交流群
  1. Listing 3-9. variable definition code block
  2. val x3:String= {
  3. val d = new java.util.Date()
  4. d.toString()
  5. }
复制代码

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加JingGuanBbs
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-19 17:18