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。 )
新聞熱點
疑難解答