Skip to content

Commit 45f5ceb

Browse files
committed
Improve chapter quotes
1 parent 33fc17b commit 45f5ceb

9 files changed

+31
-40
lines changed

Diff for: 03_functions.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
{{quote {author: "Donald Knuth", chapter: true}
44

5-
People think that computer science is the art of
6-
geniuses but the actual reality is the opposite, just many people
7-
doing things that build on each other, like a wall of mini stones.
5+
People think that computer science is the art of geniuses but the
6+
actual reality is the opposite, just many people doing things that
7+
build on each other, like a wall of mini stones.
88

99
quote}}
1010

Diff for: 05_higher_order.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ function textScripts(text) {
740740
}
741741
742742
console.log(textScripts('英国的狗说“woof”, 俄罗斯的狗说“тяв”'));
743-
// → 59% Han, 24% Latin, 18% Cyrillic
743+
// → 61% Han, 22% Latin, 17% Cyrillic
744744
```
745745

746746
{{index "characterScript function", "filter method"}}

Diff for: 07_robot.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ application tends to leave you with a collection of interconnected
116116
objects that each have their own internal, changing state. Such
117117
programs are often hard to understand and thus easy to break.
118118

119-
{{index "Jou Armstrong"}}
119+
{{index "Joe Armstrong"}}
120120

121-
{{quote {author: "Joe Armstrong", title: "interviewed in Coders at Work", chapter: true}
121+
{{quote {author: "Joe Armstrong", title: "interviewed in Coders at Work"}
122122

123123
The problem with object-oriented languages is they’ve got all this
124124
implicit environment that they carry around with them. You wanted a

Diff for: 10_modules.md

+2-14
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,9 @@
22

33
# Modules
44

5-
{{quote {author: "Master Yuan-Ma", title: "The Book of Programming", chapter: true}
5+
{{quote {author: "Tef", title: "Programming is Terrible", chapter: true}
66

7-
A beginning programmer writes her programs like an ant builds her
8-
hill, one piece at a time, without thought for the bigger structure.
9-
Her programs will be like loose sand. They may stand for a while, but
10-
growing too big they fall apart.
11-
12-
Realizing this problem, the programmer will start to spend a lot of
13-
time thinking about structure. Her programs will be rigidly
14-
structured, like rock sculptures. They are solid, but when they must
15-
change, violence must be done to them.
16-
17-
The master programmer knows when to apply structure and when to leave
18-
things in their simple form. Her programs are like clay, solid yet
19-
malleable.
7+
Write code that is easy to delete, not easy to extend.
208

219
quote}}
2210

Diff for: 11_async.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
{{meta {load_files: ["code/crows.js", "code/chapter/11_async.js"]}}}
22

3-
{{quote {author: "William S. Burroughs", title: "Naked Lunch", chapter: true}
3+
# Asynchronous Programming
4+
5+
{{quote {author: "Laozi", title: "Tao Te Ching", chapter: true}
46

5-
Your mind will answer most questions if you learn to relax and wait for the answer.
7+
Who can wait quietly while the mud settles?\
8+
Who can remain still until the moment of action?
69

710
quote}}
811

9-
# Asynchronous Programming
12+
{{index "Laozi"}}
1013

1114
The central part of a computer, the part that carries out the
1215
individual steps that make up our programs, is called the

Diff for: 12_language.md

-15
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,13 @@
22

33
# Project: A Programming Language
44

5-
{{if interactive
6-
75
{{quote {author: "Hal Abelson and Gerald Sussman", title: "Structure and Interpretation of Computer Programs", chapter: true}
86

97
The evaluator, which determines the meaning of expressions in a
108
programming language, is just another program.
119

1210
quote}}
1311

14-
if}}
15-
16-
{{if interactive
17-
18-
{{quote {author: "Master Yuan-Ma", title: "The Book of Programming", chapter: true}
19-
20-
When a student asked the master about the nature of the cycle of Data
21-
and Control, Yuan-Ma replied ‘Think of a compiler, compiling itself.’
22-
23-
quote}}
24-
25-
if}}
26-
2712
{{index "Abelson, Hal", "Sussman, Gerald", SICP, "project chapter"}}
2813

2914
Building your own ((programming language)) is surprisingly easy (as

Diff for: 14_dom.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# The Document Object Model
2+
13
{{quote {author: "Friedrich Nietzsche", title: "Beyond Good and Evil", chapter: true}
24

35
Too bad! Same old story! Once you've finished building your house you
@@ -6,8 +8,6 @@ have known—before you started.
68

79
quote}}
810

9-
# The Document Object Model
10-
1111
{{index drawing, parsing}}
1212

1313
When you open a web page in your browser, the browser retrieves the

Diff for: 18_http.md

+9
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
# HTTP and Forms
44

5+
{{quote {author: "Roy Fielding", title: "Architectural Styles and the Design of Network-based Software Architectures", chapter: true}
6+
7+
Communication must be stateless in nature [...] such that each request
8+
from client to server must contain all of the information necessary to
9+
understand the request, and cannot take advantage of any stored
10+
context on the server.
11+
12+
quote}}
13+
514
The _Hypertext Transfer Protocol_, already mentioned in [Chapter
615
?](browser#web), is the mechanism through which data is requested and
716
provided on the ((World Wide Web)). This chapter describes the

Diff for: 21_skillsharing.md

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
# Project: Skill-Sharing Website
44

5+
{{quote {author: "Margaret Fuller", chapter: true}
6+
7+
If you have knowledge, let others light their candles at it.
8+
9+
quote}}
10+
511
{{index "skill-sharing project", meetup, "project chapter"}}
612

713
A _((skill-sharing))_ meeting is an event where people with a shared

0 commit comments

Comments
 (0)