This book is written for the working PRogrammer, who either wants to learn AngularJS, or already knows AngularJS and wants to know what makes it tick.
( 这本书是写给想学习AngularJS或者已经了解AngularJS但是想知道它是怎么工作的在职的程序员 )
AngularJS is not a small framework. It has a large surface area with many new concepts to grasp. Its codebase is also substantial, with 35K lines of javaScript in it. While all of those new concepts and all of those lines of code give you powerful tools to build the apps you need, they also come with a learning curve.
( AngularJS 不是一个小的框架。它涉及的范围非常广,并且创建了许多新的概念。 它的35K行Javascript代码也非常有质量。 它的所有代码以及新的概念组成了你编写程序强有力的工具。 并且也带来了一定的学习难度。 )
I hate working with technologies I don’t quite understand. Too often, it leads to code that just happens to work, not because you truly understand what it does, but because you went through a lot of trial and error to make it work. Code like that is difficult to change and debug. You can’t reason your way through problems. You just poke at the code until it all seems to align.
( 我不喜欢使用不了解的技术来工作。 由于不是真正理解它是如何工作的,只是由于经常使用并总结出来的经验,使得它刚刚好顺利执行。 这样的代码是非常难修改和debug。由于你不知道你真正碰到的问题是什么原因。 你只是不停的尝试不同的方式,直到它刚刚好可以按照你的意思执行而已。 )
Frameworks like AngularJS, powerful as they are, are prone to this kind of code. Do you understand how Angular does dependency injection? Do you know the mechanics of scope inheritance? What exactly happens during directive transclusion? When you don’t know how these things work, as I didn’t when I started working with Angular, you just have to go by what the documentation says. When that isn’t enough, you try different things until you have what you need.
( 像Angular这样的框架都非常的强大。你知道Angular是怎么注入?scope的控制的范围? 指令的嵌入到底发生了什么? 如果你不知道这些代码是如何工作的,你只是像我刚刚开始使用Angular一样,按照文档来写代码。 如果不是非常必要,你只是不停的尝试不同的方式,直到它刚刚好可以按照你的意思执行而已。 )
The thing is, while there’s a lot of code in AngularJS, it’s all just code. It’s no different from the code in your applications. Most of it is well-factored, readable code. You can study it to learn how Angular does what it does. When you’ve done that, you’re much better equipped to deal with the issues you face in your daily application development work. You’ll know not only what features Angular provides to solve a particular problem, but also how those features work, how to get the most out of them, and where they fall short.
( Angular 有非常多的代码,但是它们和业务代码没有什么两样,只是它拥有良好的结构、易读代码。 你可以学习Angular。当你了解了它,你就可以更好的解决日常开发中遇到的问题,你知道使用什么provider来解决, 知道怎么更好的使用他们,知道怎么避免他们的短板。 )
The purpose of this book is to help you demystify the inner workings of AngularJS. To take it apart and put it back together again, in order to truly understand how it works.
( 这本书是帮助你了解Angular内部是如何工作的,将Angular拆解开, 然后再看看各个模块是如何协作工作的,让你真正的了解他是怎么工作的。 )
A true craftsman knows their tools well. So well that they could in fact make their own tools if needed. This book will help you get there with AngularJS.
( 真正的工匠了解自己的工具,在必要的时候可以自己制作工具。这本书将为你解析AngularJS。 )
新闻热点
疑难解答