"Node.js+mongodb+angularjs Web Development" Reading notes and Lenovo

Source: Internet
Author: User
Tags mongodb version lenovo

General Introduction

"Node.js+mongodb+angularjs Web Development", published in June 2015, is a translation of the book, the original title is "Node.js,mongodb and AngularJS Web development", In general is a book about how to use JavaScript for the B/s architecture full stack development.

The book focuses on 4 technologies (frames), divided into 6 sections and 29 chapters. 4 technologies that are node. js, MongoDB, Express, AngularJS, the industry is called mean;6 Parts I personally understand: basic (Introduction), node. js, MongoDB, Express, AngularJS, comprehensive case. 29 chapters look more, but each chapter is not long, the book is 560 pages, the average is 19 pages per chapter.

Because Express is a node. js plugin, node. JS is a service-side language using JavaScript, ANGULARJS is the front-end JS-well-known MVVM framework, MongoDB is a very flexible NoSQL database ( Scripts also use JavaScript), so that only the use of JavaScript can take into account the B/s front, background, database three aspects of development.

I personally see ANGULARJS (hereinafter referred to as NG) Section 23, considering that Ng has to push 2.0, and the book Ng part of the feeling is not very good, the following sections may be stalled or directly see the Comprehensive case section.

The book begins to look like an application book, but some parts make me think this book is a dictionary book, well, it's not commendatory. Let me explain my understanding and suggestions on this book from various parts.

Introduction

Introduction A total of two chapters, the 1th chapter introduces the main elements of web development and the use of four parts of the book, the 2nd chapter is the basic introduction of JavaScript.

This part is nothing to say, the 1th chapter is all concepts, principles of things, you can know that some parts of the book is very boring. The 2nd chapter, which totals 22 pages, uses a large number of charts to illustrate JavaScript syntax.

I see the part of the time is basically jumping to see, it is recommended that unless the JS ability is relatively scarce or jumping to see better.

node. js

node. JS is a platform built on the chrome JavaScript runtime to easily build responsive, easy-to-scale Web applications. node. js is lightweight and efficient with event-driven, non-blocking I/O models and is ideal for data-intensive, real-time applications running on distributed devices. (Excerpt from Wikipedia)

node. JS is now a 4.3.1/5.6.0 version, and this book is the 0.10 version as an example.

After reading this book node. js section, I think its part of the design looks like the C language and Linux programming, such as the file system part of reading and writing files, the flow of pipeline parts, sub-process. Some peers may understand some of the problems with asynchronous operations, but they will understand the benefits if they are mostly used.

Most of the examples in this book can be used in the new version of node. JS, where the 9th chapter of the HTTP cluster I did not realize the effect of the description, downloaded the source code is not implemented, this left to study later.

Mongodb

Mongodb, a distributed document storage database, written in the C + + language, is designed to provide scalable, high-performance data storage solutions for Web applications. (Excerpt from Wikipedia)

This is my first time to touch a NoSQL database, and NoSQL refers to "not just SQL". Using the JSON binary form Bson to store data, because the SQL table structure is less restrictive, so more flexible. Unlike SQL tables and columns, MongoDB uses collections and documents to organize data.

The MongoDB version of this book is also backward, which causes some interfaces to be inconsistent. As the Db.adduser became Db.createuser. However, most tables, such as database role tables for user accounts, are still available.

This part of the content in addition to the 17th chapter is simple, but my personal view is to see quickly forget also fast. The high-level concept of the 17th chapter is estimated to be used in practical projects in order to understand the position.

Express

Express is a fast, open, minimalist web development framework based on the node. JS platform. (from the official website)

The book Express also only two chapters, I because of B/s structure is more familiar with, so here is also jumping to see. Suggest also have B/s experience of peer to see the template engine, custom middleware part is almost.

AngularJS

Angularjs is an excellent front-end JS framework that has been used by Google for a variety of products. Angularjs has many features, the core of which is MVVM, modularity, automated bidirectional data binding, semantic tagging, dependency injection, and more. (Excerpt from Wikipedia)

Angularjs, a personal understanding of NG, this type of MVVM framework makes front-end development somewhat like back-end development, the advantages are obvious: including templates, data bi-directional binding, routing, modularity, services, filters, dependency injection and other functions, these for software management significance is relatively large, But the shortcomings are also very obvious, Ng is too cumbersome, I now down to the version of compression also has 151KB, uncompressed there is 1m+. Now NG breaks apart many modules to reduce the size of the core.

In this book, NG uses the 1.2 version, the same opening is a lot of theory, and finally introduced Ng's use. In the 20th chapter, each design of Ng is described again, and then the following chapters describe in detail how these designs should be used.

Now the 2.0 version is also fast, although I do not have the actual project experience, but now there are many places to say that the 2.x is considerably larger than 1.x changes, it is estimated that some 2.x interface is different from 1.x.

Comprehensive case

This part should be the book most like the application of the part of the book, which has not been studied, to be followed by the supplementary.

Summarize

This book should be regarded as a good JS full stack of books, from theory to practice have. The disadvantage is that each part of the opening is often a lot of theory, easy to let people lose interest, personally think there is a "Hello world! "The opening is better. But also because there are a lot of theories and charts in this book, you can also think of this book as a dictionary tool, if the data in this book is not outdated, even though there are some places in the book that are out of date. Personally feel that the book primer and beginner can see, intermediate can be used as a dictionary.

"Node.js+mongodb+angularjs Web Development" Reading notes and Lenovo

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.