Node: Up and Running doc

202 803 0
Node: Up and Running doc

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... overconstrained client side of the Web, with the much-maligned Document Object Model and other historical accidents looming too large Node helps JavaScript by freeing it from its limiting client-side patrimony This book nicely conveys the spirit of Node and the knowledge of how to use it well to build interactive web apps and sites Node is a blast, and Node: Up and Running is a fitting guide for it Enjoy! —Brendan... significant amount of example code from this book into your product’s documentation does require permission We appreciate, but do not require, attribution An attribution usually includes the title, author, publisher, and ISBN For example: Node: Up and Running by Tom HughesCroucher and Mike Wilson (O’Reilly) Copyright 2012 Tom Hughes-Croucher and Mike Wilson, 978-1-449-39858-3.” If you feel your use of code... is still very young, and yet rarely have we seen such fervor around a project Both novices and experts have coalesced around the project to use and contribute to Node, making it both a pleasure to explore and a supportive place to share and get advice Installing Node.js Installing Node.js is extremely simple Node runs on Windows, Linux, Mac, and other POSIX OSes (such as Solaris and BSD) Node.js is... Sarah, Allan, Harold and Daniella, and Hipster Ariel) To the countless people who have given me encouragement, suggestions, and feedback I couldn’t have done it without you To the readers of this tome, thank you for trusting me with your learning xiv | Preface PART I Up and Running CHAPTER 1 A Very Brief Introduction to Node.js Node.js is many things, but mostly it’s a way of running JavaScript outside... browser implementation 1 Internet Explorer doesn’t actually support JavaScript or ECMAScript; it supports a language variety called JScript In recent years, JScript has fully supported the ECMAScript 3 standard and has some ECMAScript 5 support However, JScript also implements proprietary extensions in the same way that Mozilla JavaScript does and has features that ECMAScript does not 12 | Chapter 1: A... science I had always loved formal language and automata theory I’d built my own parsers and parser generators for fun At Silicon Graphics, I built network-monitoring tools that included packet-header matching and protocol description languages and compilers I was a huge fan of C and Unix So knocking out “Mocha” was really a matter of sustained application and concentration Sometime in the fall of 1995,... (www.safaribooksonline.com) is an on-demand digital library that delivers expert content in both book and video form from the world’s leading authors in technology and business Technology professionals, software developers, web designers, and business and creative professionals use Safari Books Online as their primary resource for research, problem solving, learning, and certification training Safari Books... exploration tool, but we don’t use it for production code Let’s launch Node REPL and try out a few bits of JavaScript to warm up (Example 1-6) Open up a console on your system I’m using a Mac with a custom command prompt, so your system might look a little different, but the commands should be the same Example 1-6 Starting Node REPL and trying some JavaScript $Enki:~ $ node > 3 > 2 > 1 false > true == 1 true... editors Simon, it has been a long project, but you’ve been with me week after week Andy, your eye for detail never fails to impress To Carlos Your drive and talent make you the writer I would like to be You are an inspiration To Nicole and Sean, for keeping me on track To Ryan and Isaac, who have put up with my endless stupid questions with the quiet patience of someone teaching a child To Rosemarie Without... Resig, Alex Russell, Thomas Fuchs, and many more have provided research, advice, tools, and primarily libraries that have allowed thousands of professional JavaScript programmers worldwide to practice their trade with a spirit of excellence Libraries such as jQuery, YUI, Dojo, Prototype, Mootools, Sencha, and many others are now used daily by thousands of people and deployed on millions of websites . h1" alt="" Node: Up and Running Tom Hughes-Croucher and Mike Wilson Beijing • Cambridge • Farnham • Köln • Sebastopol • Tokyo Node: Up and Running by Tom. details. Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of O’Reilly Media, Inc. Node: Up and Running, the image

Ngày đăng: 05/03/2014, 10:20

Từ khóa liên quan

Mục lục

  • Table of Contents

  • Foreword by Ryan Dahl

  • Foreword by Brendan Eich

  • Preface

    • Introduction

    • Conventions Used in This Book

    • Using Code Examples

    • Safari® Books Online

    • How to Contact Us

    • Acknowledgments

      • Tom’s Thanks

      • Part I. Up and Running

        • Chapter 1. A Very Brief Introduction to Node.js

          • Installing Node.js

          • First Steps in Code

            • Node REPL

            • A First Server

            • Why Node?

              • High-Performance Web Servers

              • Professionalism in JavaScript

              • Browser Wars 2.0

              • Chapter 2. Doing Interesting Things

                • Building a Chat Server

                • Let’s Build Twitter

                • Chapter 3. Building Robust Node Applications

                  • The Event Loop

                  • Patterns

                    • The I/O Problem Space

                      • Unordered parallel I/O

                      • Ordered serial I/O

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan