-
Notifications
You must be signed in to change notification settings - Fork 3
/
foreword.html
105 lines (86 loc) · 5.72 KB
/
foreword.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8"/>
<title>Ruby on Rails 教程 - 序</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="description" content="最好的 Ruby on Rails 入门教程"/>
<meta name="keywords" content="ruby, rails, tutorial"/>
<meta name="author" content="Michael Hartl"/>
<meta name="translator" content="安道"/>
<meta name="generator" content="persie 0.0.5.1"/>
<link rel="stylesheet" type="text/css" href="//railstutorial-china.org/assets/css/main.css"/>
<link rel="stylesheet" type="text/css" href="book.css"/>
<script type="text/javascript" src="//railstutorial-china.org/assets/js/global.js"></script>
</head>
<body class="book-page">
<nav class="navbar">
<div class="container">
<div class="clearfix">
<a class="navbar-brand hidden-sm-up" href="//railstutorial-china.org/" title="Ruby on Rails 教程">Ruby on Rails 教程</a>
<button class="navbar-toggler hidden-sm-up pull-xs-right" type="button" data-toggle="collapse" data-target="#main-nav">☰</button>
</div>
<a class="navbar-brand hidden-xs-down" href="//railstutorial-china.org/" title="Ruby on Rails 教程">Ruby on Rails 教程</a>
<div class="collapse navbar-toggleable-xs pull-sm-right" id="main-nav">
<ul class="nav navbar-nav">
<li class="nav-item"><a class="nav-link" href="//railstutorial-china.org/" title="首页">首页</a></li>
<li class="nav-item"><a class="nav-link" href="//railstutorial-china.org/blog/" title="博客">博客</a></li>
<li class="nav-item active"><a class="nav-link" href="//railstutorial-china.org/book/" title="阅读">阅读</a></li>
<li class="nav-item"><a class="nav-link" href="//railstutorial-china.org/#ebook" title="电子书">电子书</a></li>
</ul>
</div>
</div>
</nav>
<div class="content">
<div class="container">
<div class="row">
<div class="col-lg-offset-2 col-lg-8">
<div class="book-versions">
选择版本:
<a class="btn btn-primary" href="//railstutorial-china.org/book/" title="Ruby on Rails 教程(原书第 4 版,针对 Rails 5)">Rails 5</a>
<a class="btn btn-secondary" href="//railstutorial-china.org/rails42/" title="Ruby on Rails 教程(原书第 3 版,针对 Rails 4.2)">Rails 4.2</a>
<a class="btn btn-secondary" href="//railstutorial-china.org/rails4/" title="Ruby on Rails 教程(原书第 3 版,针对 Rails 4.0)">Rails 4.0</a>
<a class="btn btn-secondary" href="//railstutorial-china.org/rails3/" title="Ruby on Rails 教程(原书第 2 版,针对 Rails 3.2)">Rails 3.2</a>
</div>
<div class="alert alert-warning">
<p>在线版的内容可能落后于电子书,如果想及时获得更新,请<a href="//railstutorial-china.org/#ebook" title="购买电子书">购买电子书</a>。</p>
</div>
<article class="article">
<section data-type="foreword" id="_序">
<h1>序</h1>
<p>我之前工作的公司(CD Baby)是大张旗鼓转用 Ruby on Rails 最早的企业之一,然后又更加惹眼地换回了 PHP。(在 Google 中搜索我的名字,能搜到关于这场闹剧的文章)。很多人都强烈推荐 Michael Hartl 的这本书,所以我不得不读一下,读完之后,我又开始使用 Rails 做开发了。</p>
<p>我读过很多 Rails 相关的书,但是这本真正让我入门了。书里的一切都很符合“Rails 之道”,我以前觉得这个“道”很不自然,但是读完这本书,却感觉自然无比。本书也是唯一一本自始至终都使用“测试驱动开发”(Test-driven Development,TDD)理念的 Rails 书籍。很多行家都推荐使用 TDD,但是在这本书出版之前从没有人如此清楚地介绍过这个理念。书中的演示应用还用到了 Git、Bitbucket 和 Heroku,作者真是让你体验了一把开发真正能用的应用是什么感觉,而且书中用到的代码并不是凭空捏造出来的。</p>
<p>线性叙述是很好的模式。我花了三天的时间<sup>[<a id="fn-ref-1" href="#fn-1">1</a>]</sup>阅读本书,完成了书中所有的演示应用,也做了全部练习。从头至尾,循序渐进,不要跳着读,这样才能从中受益。</p>
<p>享受这本书吧!</p>
<p class="text-right">Derek Sivers (<a href="http://sivers.org" class="external-link">sivers.org</a>)<br />
CD Baby 创始人</p>
</section>
</article>
<nav class="pagination">
<ul class="pager">
<li class="pager-prev"><a class="prev" href="to-reader.html" title="致中国读者">« 致中国读者</a></li>
<li class="pager-next"><a class="next" href="acknowledgments.html" title="致谢">致谢 »</a></li>
</ul>
</nav>
<div class="footnotes">
<ol>
<li id="fn-1">这可不常见,读完整本书花的时间往往比三天长很多。 <a href="#fn-ref-1" class="symbol">↩</a></li>
</ol>
</div>
</div>
</div>
</div>
</div>
<footer class="footer">
<div class="container">
<p>©2013-2017 <a href="http://about.ac" title="安道的个人网站" target="_blank">安道</a></p>
<p>
<a href="https://twitter.com/andor_chen" title="在 Twitter 中关注 @andor_chen" target="_blank"><i class="icon-twitter"></i></a>
<a href="http://weibo.com/andor27" title="在微博中关注 @andor_chen" target="_blank"><i class="icon-weibo"></i></a>
</p>
<p>保留部分权利</p>
</div>
</footer>
</body>
</html>