• Complain

Azat Mardan - Full Stack JavaScript: learn Backbone.js, Node.js and MongoDB

Here you can read online Azat Mardan - Full Stack JavaScript: learn Backbone.js, Node.js and MongoDB full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2016, publisher: Apress, Berkeley, CA, genre: Home and family. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Azat Mardan Full Stack JavaScript: learn Backbone.js, Node.js and MongoDB
  • Book:
    Full Stack JavaScript: learn Backbone.js, Node.js and MongoDB
  • Author:
  • Publisher:
    Apress, Berkeley, CA
  • Genre:
  • Year:
    2016
  • Rating:
    5 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 100
    • 1
    • 2
    • 3
    • 4
    • 5

Full Stack JavaScript: learn Backbone.js, Node.js and MongoDB: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Full Stack JavaScript: learn Backbone.js, Node.js and MongoDB" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Azat Mardan: author's other books


Who wrote Full Stack JavaScript: learn Backbone.js, Node.js and MongoDB? Find out the surname, the name of the author of the book and a list of all author's works by series.

Full Stack JavaScript: learn Backbone.js, Node.js and MongoDB — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Full Stack JavaScript: learn Backbone.js, Node.js and MongoDB" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Azat Mardan 2015
Azat Mardan Full Stack JavaScript 10.1007/978-1-4842-1751-1_1
1. Basics
Azat Mardan 1
(1)
CA, US
I think everyone should learn how to program a computer, because it teaches you how to think. I view computer science as a liberal art, something everyone should learn to do.
Steve Jobs
In this chapter, well cover these topics:
  • Overview of HTML, CSS, and JavaScript syntaxes
  • Brief introduction to Agile methodology
  • Advantages of cloud computing, Node.js, and MongoDB
  • Descriptions of HTTP requests/responses and RESTful API concepts
If you are an experienced web developer, I dont recommend it, but feel free to skip this chapter. Its important to brush up on the fundamental concepts before moving forward. Why? Maybe you have heard and are familiar with some terms, but wonder what they actually mean. Another good reason is that this chapter will cover the RESTful API in a very beginner-friendly manner. REST is used in virtually all modern web architectures, and well use it in the book a lot. There is one last reason: Youll look smart at a cocktail party or in front of your colleagues and your boss by acing the hodpodge of web acronyms.
Front-End Definitions
Front end is a term for browser applications. In some conversations, it could mean servers facing the requests first. However, for this book we assume that all front end is limited to the browser and mobile apps and their code.
Front-end development, or front-end web development, implies the usage of various technologies. Each of them individually is not too complex, but the sheer number of them makes beginners timid. For example, there are Cascading Style Sheets (CSS), Hypertext Markup Language (HTML),Extensible Markup Language (XML), JavaScript, JavaScript Object Notation (JSON), Uniform Resource Identifier (URI),Hypertext Transfer Protocol (HTTP), and many other abbreviations.
In addition to the low-level technologies, there are numerous frameworks, tools, and libraries; for example, jQuery, Backbone.js, Angular.js, Grunt, and so on. Please dont confuse front-end frameworks with back-end frameworks: The latter run on the server whereas the former run on the browser.
Front-end web development consists of these components:
HTML or templates that compile to HTML
Stylesheets to make HTML pretty
JavaScript to add interactivity or some business logic to the browser app
Some hosting (AWS, Apache, Heroku, etc.)
Build scripts to prepare code, manage dependencies, and do pretty much anything thats needed
Logic to connect to the server (typically via XHR requests and RESTful API)
Now you know what a job that has the title of front-end developer entails. The great payback to mastering this hodgepodge is the ability to express your creativity by building beautiful and useful apps.
Before we start building, lets cover a birds-eye view of the web request cycle.
Web Request Cycle
This is important for someone very new to the web development. The whole World Wide Web or the Internet is about communication between clients and servers. This communication happens by sending requests and receiving responses. Typically browsers (the most popular web clients) send requests to servers. Behind the scenes, servers send their own requests to other servers. Those requests are similar to the browser requests. The language of requests and responses is HTTP(S). Lets explore the browser request in more details.
The web request consists of the following steps:
A user types a URL or follows a link in his or her browser (also called the client).
The browser makes an HTTP request to the server.
The server processes the request, and if there are any parameters in a query string or body of the request, it takes them into account.
The server updates, gets, and transforms data in the database.
The server responds with an HTTP response containing data in HTML, JSON, or other formats.
The browser receives the HTTP response.
The browser renders an HTTP response to the user in HTML or any other format (e.g., JPEG, XML, JSON).
Mobile applications act in the same manner as regular web sites, only instead of a browser there is a native app. Mobile apps (native or HTML5) are just another client. Other minor differences between mobile and web include data transfer limitation due to carrier bandwidth, smaller screens, and the more efficient use of local storage. Most likely you, my reader, are a web developer aspiring to use your web chops in mobile. With JavaScript and HTML5 its possible, so its worth covering web development closer.
Mobile Development
Is mobile going to overtake web and desktop platforms? Maybe. For now the mobile development field is extremely immature and new. Its good if you are a pioneer, but most of us are not. This is a bigger gap in tooling and libraries compared to web. The gap is closing. With HTML5, you can write once and reuse code on mobile. There are other approaches as well.
These are the approaches to mobile development, each with its own advantages and disadvantages:
Native: Native iOS, Android, Blackberry apps built with Objective-C and Java.
Abstracted native: Native apps built with JavaScript in Appcelerator ( http://www.appcelerator.com ), Xamarin, ( https://xamarin.com ), Smartface ( http://www.smartface.io ) React Native or similar tools, and then compiled into native Objective-C or Java.
Responsive: Mobile web sites tailored for smaller screens with responsive design, CSS frameworks like Twitter Bootstrap ( http://twitter.github.io/bootstrap/ ) or Foundation ( http://foundation.zurb.com/ ), regular CSS, or different templates. You might use some JavaScript frameworks for the development like Backbone.js, Angular.js, Ember.js, or React.js.
Hybrid: HTML5 apps that consist of HTML, CSS, and JavaScript, and are usually built with frameworks like Sencha Touch ( http://www.sencha.com/products/touch ), Trigger.io ( https://trigger.io ), JO ( http://joapp.com ), React Native ( https://facebook.github.io/react-native ), or Ionic ( http://ionicframework.com ) and then wrapped into a native app with PhoneGap ( http://phonegap.com ). As in the third approach, you probably will want to use a JavaScript framework for the development, such as Backbone.js, Angular.js, Ember.js, or React.js.
My personal favorites are the second and fourth approaches. The second approach doesnt require a different code base. A minimal viable product (MVP) can be built by just adding a single link to the CSS library. The fourth approach is more powerful and provides more scalable (in a development sence) UIs. This is better suited for complex apps. Code reuse between cross-platform mobile and web is easy because most of the times youre writing in JavaScript.
HyperText Markup Language
HTML is not a programming language in itself. It is a set of markup tags that describe the content and present it in a structured and formatted way. HTML tags consist of a tag name inside of the angle brackets ( <> ). In most cases, tags surround the content, with the end tag having forward slash before the tag name.
In this example, each line is an HTML element:
Overview of HTML
HTML is a ...
rel="stylesheet" type="text/css" href="style.css" />
An HTML document itself is an element of the tag, and all other elements are children of that tag:
Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Full Stack JavaScript: learn Backbone.js, Node.js and MongoDB»

Look at similar books to Full Stack JavaScript: learn Backbone.js, Node.js and MongoDB. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Full Stack JavaScript: learn Backbone.js, Node.js and MongoDB»

Discussion, reviews of the book Full Stack JavaScript: learn Backbone.js, Node.js and MongoDB and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.