forked from the5fire/backbonejs-learning-note
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
第十八章 再次总结的说 | ||
====================================== | ||
|
||
终于又到了写着一篇的时候了,从去年(2013)8月份决定再更新一版Backbonejs入门教程。原因在前言中已经介绍过了,主要是填一些坑。 | ||
|
||
看看上一版的那个总结 `16、总结的说 <http://www.the5fire.com/16-backbone-summary.html>`_ 的时间——2012.4.18。再看看这一篇的时间——2014.4.15,差不多刚好两年的时间。之前的状态是刚接触前端框架方面的东西,像是在迷雾中行走,摸摸探探的总算知道这是条什么样的路。 | ||
|
||
现在的这一本更多的是希望从一个实用的角度出发,在长期的实践开发中总结出来的经验是:如果你学了一个东西,最终没有把它用到实际应用中,那么你学习这个东西最终产生的价值就抵不上你所花得成本。软件开发这东西,大部分情况下你只有切身的经历了技术对最终产品的作用,你才会对如何运用这一技术有些感觉,不然的话真的是纸上谈兵。 | ||
|
||
因此在这一版中我一开始写的时候就确定了一个最终的目标,那就是要做一个上线的系统,能够让互联网用户访问得到。另外还希望所有用心看了这一系列教程的Backbonejs初学者能够把学到的东西运用进来。 | ||
|
||
在最开始确定要不要刨这么一个坑的时候我犹豫了很久。这个框架在实际的工作中并没有用到,这意味着我对Backbonejs的再次学习和整理对工作上的事情没有太大帮助,虽然我会据此同我们的前端同学进行交流。 | ||
|
||
时间成本是最大的成本,在后端的世界里也有很多东西值得我去探索。犹豫几天之后我写了这篇文章 `心存恐惧便无自由 <http://www.the5fire.com/fear-lead-to-not-free.html>`_ 。我觉得应该去做一些自己想做的事情,心里不受任何约束的。 | ||
|
||
一些牢骚完之后,再说些技术的东西。 | ||
|
||
Backbonejs学习最大的难点在于你需要有以一个前端MVC框架的概念。一旦有了这么一个概念之后,你就会意识到,所有的前端框架只是填充了MVC中的各个部分,然后提供给你一个工具,让你可以按这种方式来组织你的代码。 | ||
|
||
因此在学习过程中,你也只需要掌握里面的几个概念:Model、Collection、View、Router,剩下的东西就和框架无关了,都是你软件开发经验的运用。新手的话建议去参透官网的那个todos案例,关于这个案例的事情这里不再赘述了。 | ||
|
||
好了,就写这么多。这个持久的工程总算是到了尾声了。 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Backbonejs相关资源 | ||
=============================== | ||
|
||
这次没有参考太多资源,主要还是官方的东西: | ||
|
||
官网: | ||
http://backbonejs.org/ | ||
|
||
源码: | ||
https://github.com/jashkenas/backbone/blob/master/backbone.js | ||
|
||
todos代码: | ||
http://backbonejs.org/examples/todos/index.html | ||
|
||
当你对这个东西有一个感觉之后,去看最本质的东西才是王道! |