好书推荐 好书速递 排行榜 读书文摘

Seven Languages in Seven Weeks

Seven Languages in Seven Weeks
作者:Bruce A. Tate
副标题:A Pragmatic Guide to Learning Programming Languages
出版社:Pragmatic Bookshelf
出版年:2010-10
ISBN:9781934356593
行业:其它
浏览数:1

内容简介

Ruby, Io, Prolog, Scala, Erlang, Clojure, Haskell. With Seven Languages in Seven Weeks, by Bruce A. Tate, you'll go beyond the syntax-and beyond the 20-minute tutorial you'll find someplace online. This book has an audacious goal: to present a meaningful exploration of seven languages within a single book. Rather than serve as a complete reference or installation guide, Seven Languages hits what's essential and unique about each language. Moreover, this approach will help teach you how to grok new languages.

For each language, you'll solve a nontrivial problem, using techniques that show off the language's most important features. As the book proceeds, you'll discover the strengths and weaknesses of the languages, while dissecting the process of learning languages quickly--for example, finding the typing and programming models, decision structures, and how you interact with them.

Among this group of seven, you'll explore the most critical programming models of our time. Learn the dynamic typing that makes Ruby, Python, and Perl so flexible and compelling. Understand the underlying prototype system that's at the heart of JavaScript. See how pattern matching in Prolog shaped the development of Scala and Erlang. Discover how pure functional programming in Haskell is different from the Lisp family of languages, including Clojure.

Explore the concurrency techniques that are quickly becoming the backbone of a new generation of Internet applications. Find out how to use Erlang's let-it-crash philosophy for building fault-tolerant systems. Understand the actor model that drives concurrency design in Io and Scala. Learn how Clojure uses versioning to solve some of the most difficult concurrency problems.

It's all here, all in one place. Use the concepts from one language to find creative solutions in another-or discover a language that may become one of your favorites.

......(更多)

作者简介

(Biography)

I started in this industry back in 1985, as a co-op with IBM in Austin. I joined IBM full time in 1987, and spent 13 years with them. I later left to join a startup, and ultimately started my own business where I focus on helping customers build software with lightweight technologies.

I've been writing technical books for more than 10 years now, with the last 7 coming since 2000. I write for the love of the craft.

Others have told me that my fundamental strength as an author is the ability to quickly recognize emerging trends. I do tend to find emerging frameworks just as they become popular, and that skill is a mixed blessing that--combined with my complete lack of political tact--gets me in trouble sometimes, as it did with Bitter Java (Java is too hard), Beyond Java (Java is not going to last forever), and most recently, From Java to Ruby: Things Every Manager should Know (there's a better language for some problems, but our managers don't know it yet.)

My promise to you is this: I will always seek to find better ways to do things, and will work hard to tell you the truth, without regard for any notion of political correctness. Thanks for reading.

......(更多)

目录

Changes 9

Beta 2.0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

Foreword 10

1 Introduction 13

1.1 Method to the Madness . . . . . . . . . . . . . . . . . . 13

1.2 The Languages . . . . . . . . . . . . . . . . . . . . . . . 15

1.3 Buy this Book... . . . . . . . . . . . . . . . . . . . . . . . 17

1.4 Don’t Buy this Book... . . . . . . . . . . . . . . . . . . . 18

1.5 Acknowledgements . . . . . . . . . . . . . . . . . . . . . 21

1.6 A final charge . . . . . . . . . . . . . . . . . . . . . . . . 22

2 Ruby 23

2.1 Quick history . . . . . . . . . . . . . . . . . . . . . . . . 24

2.2 Day 1: Finding a nanny . . . . . . . . . . . . . . . . . . 25

2.3 Day 2: Floating down from the sky . . . . . . . . . . . . 33

2.4 Day 3: Serious change . . . . . . . . . . . . . . . . . . . 45

2.5 Wrapping Up Ruby . . . . . . . . . . . . . . . . . . . . . 52

3 Io 56

3.1 Io . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56

3.2 Day 1: Skipping school, hanging out . . . . . . . . . . . 57

3.3 Day 2: The Sausage King . . . . . . . . . . . . . . . . . 68

3.4 Day 3: The Parade and Other Strange Places . . . . . . 75

3.5 Wrapping Up Io . . . . . . . . . . . . . . . . . . . . . . . 84

4 Prolog 88

4.1 About Prolog . . . . . . . . . . . . . . . . . . . . . . . . . 89

4.2 Day 1. An excellent driver. . . . . . . . . . . . . . . . . . 89

4.3 Day 2: Fifteen Minutes to Wapner . . . . . . . . . . . . 101

4.4 Day 3: Blowing up Vegas . . . . . . . . . . . . . . . . . . 112

4.5 Wrapping Up . . . . . . . . . . . . . . . . . . . . . . . . . 123

5 Scala 127

5.1 About Scala . . . . . . . . . . . . . . . . . . . . . . . . . 127

5.2 Day 1: The Castle on the Hill . . . . . . . . . . . . . . . 131

5.3 Day 2: Clipping bushes and other new tricks . . . . . . 146

5.4 Day 3: Cutting through the fluff . . . . . . . . . . . . . 159

5.5 Wrapping Up Scala . . . . . . . . . . . . . . . . . . . . . 167

6 Erlang 172

6.1 Introducing Erlang . . . . . . . . . . . . . . . . . . . . . 172

6.2 Day 1: Appearing Human . . . . . . . . . . . . . . . . . 176

6.3 Day 2: Changing Forms . . . . . . . . . . . . . . . . . . 186

6.4 Day 3: The Red Pill . . . . . . . . . . . . . . . . . . . . . 197

6.5 Wrapping Up Erlang . . . . . . . . . . . . . . . . . . . . 208

7 Clojure 212

7.1 Coming Soon... . . . . . . . . . . . . . . . . . . . . . . . 212

8 Haskell 213

8.1 Coming Soon... . . . . . . . . . . . . . . . . . . . . . . . 213

9 Wrap up 214

9.1 Coming Soon... . . . . . . . . . . . . . . . . . . . . . . . 214

A Bibliography 215

Index 216

......(更多)

读书文摘

一等对象应具有以下几项性质:可存储于变量或数据结构中;可作为参数传递给函数; 可作为返回值从函数返回;可在运行时创建。举例来说,C++中的对象就是一等对象,但其函数无法在运行时创 建,所以不是一等对象;与之相反,函数式语言中的函数是一等对象,因为它既可以传递和返回,也可以在运行 时动态创建。

......(更多)

猜你喜欢

点击查看