售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
CoffeeScript Application Development Cookbook
Table of Contents
CoffeeScript Application Development Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Getting Ready
Introduction
Configuring your environment and tools
Getting ready
How to do it...
Configuring Sublime Text
Getting ready
How to do it...
How it works...
Commands
Snippets
Configuring Visual Studio
Getting ready
How to do it...
A quick dive into CoffeeScript
How to do it...
There's more...
The CoffeeScript REPL
Debugging CoffeeScript using source maps
Getting ready
How to do it...
How it works...
Debugging CoffeeScript using Node Inspector
Getting ready
How to do it...
How it works...
2. Starting with the Basics
Introduction
Working with strings
String interpolation
Getting ready
How to do it...
How it works...
There's more...
Wrapping text
How to do it...
How it works...
See also
Truncating text
How to do it...
How it works...
Converting character casing
How to do it...
How it works...
Using regular expressions
How to do it...
How it works...
There's more...
Working with numbers
Converting between bases
How to do it...
How it works...
Generating random numbers
How to do it...
How it works...
Converting between degrees and radians
How to do it...
How it works...
Checking a credit card checksum
How to do it...
How it works...
There's more...
Working with dates and times
Performing date calculations
How to do it...
How it works...
Measuring elapsed time
How to do it...
How it works...
Working with arrays
Iterating over arrays
Getting ready
How to do it…
How it works...
There's more...
Sorting arrays
How to do it…
How it works...
Shuffling an array
Getting ready
How to do it…
How it works...
Mapping and reducing arrays
Getting ready
How to do it...
Filtering and testing arrays
Getting ready
How to do it...
How it works...
Working with classes
Defining classes
How to do it...
How it works...
Dealing with inheritance
How to do it...
How it works...
Class properties and methods
How to do it...
How it works...
Dealing with the this keyword
Getting ready
How to do it...
How it works...
3. Creating Client Applications
Introduction
Working with jQuery
Executing on load
Getting ready
How to do it...
How it works...
Handling DOM events
How to do it...
How it works...
Modifying the DOM
How to do it...
How it works...
There's more...
Communicating with the server using AJAX
How to do it...
How it works...
Using jQuery UI widgets
How to do it...
How it works...
There's more...
Displaying an image gallery using Lightbox
How to do it...
How it works...
Working with Backbone
Creating models
Getting ready
How to do it...
How it works...
Creating collections
Getting ready
How to do it...
How it works...
There's more...
Creating views
Getting ready
How to do it...
How it works...
Handling UI events
Getting ready
How to do it...
How it works...
Creating routers
How to do it...
How it works...
There's more...
Working with AngularJS
Creating an Angular application module
Getting ready
How to do it...
How it works...
There's more...
Creating Angular controllers
Getting ready
How to do it...
How it works...
There's more...
Creating Angular providers
How to do it…
How it works…
There's more...
Creating Angular directives
How to do it...
How it works...
Creating Angular routers
How to do it...
How it works...
Handling inter-controller events
How to do it...
How it works…
There's more...
Communicating in real time with Socket.io
Getting ready
How to do it...
How it works…
4. Using Kendo UI for Desktop and Mobile Applications
Introduction
Using the Kendo UI Core widgets
Getting ready
How to do it...
How it works...
There's more...
Using the Kendo UI Core mobile widgets
Getting ready
How to do it...
How it works...
There's more...
5. Going Native with Cordova
Introduction
Creating a basic Cordova application
Getting ready
How to do it...
How it works...
Using the camera
Getting ready
How to do it...
How it works...
There's more...
Using geolocation
Getting ready
How to do it...
How it works...
There's more...
Using contacts
Getting ready
How to do it...
How it works...
There's more...
Getting device information
Getting ready
How to do it...
How it works...
6. Working with Databases
Introduction
Working with SQLite
Getting started
Inserting and updating records, and executing commands
How to do it...
How it works...
There's more...
Reading records
How to do it...
How it works...
There's more...
Executing queries in parallel versus serial
How to do it...
How it works...
Working with Redis
Connecting to the Redis server
How to do it...
How it works...
Storing and retrieving single values
How to do it...
How it works...
There's more...
Using counters
Getting ready
How to do it...
How it works...
There's more...
Storing and retrieving hashes
How to do it…
How it works...
There's more...
Storing and retrieving lists
How to do it...
How it works...
There's more...
Deleting keys
How to do it...
How it works...
There's more...
Working with MongoDB
Opening a connection
Getting ready...
How to do it...
How it works...
Inserting documents
How to do it...
How it works...
Finding documents
How to do it...
How it works...
There's more...
Updating documents
How to do it...
How it works...
There's more...
Deleting documents
How to do it...
How it works...
Working with CouchDB
Opening a connection
Getting ready...
How to do it...
How it works...
There's more...
Creating documents
How to do it...
How it works...
Updating documents
How to do it...
How it works...
Reading documents
How to do it...
How it works...
Deleting documents
How to do it...
How it works...
Querying documents using views
How to do it...
How it works...
There's more...
7. Building Application Services
Introduction
Working with base64 encoding
Encoding a string as base64
Getting ready
How to do it...
How it works...
Encoding a binary file as base64
Getting ready
How to do it...
How it works...
Working with domain name services
Retrieving the IP address for a domain name
Getting ready
How to do it...
How it works...
There's more...
Retrieving a hostname for an IP address
Getting ready
How to do it...
How it works...
Parsing a URL into its various components
Getting ready
How to do it...
How it works...
There's more...
Creating RESTful web services
Managing dependencies with package.json
Getting ready
How to do it...
How it works...
There's more...
Creating a basic express application
Getting ready
How to do it...
How it works...
Creating a web API
Getting ready
How to do it...
How it works...
There's more...
8. Using External Services
Introduction
Working with web services
Getting ready
How to do it...
How it works...
There's more...
Sending e-mail
Getting ready
How to do it...
How it works...
There's more...
Sending SMS and MMS messages
Getting ready
How to do it...
How it works...
There's more...
Working with Amazon's S3 storage
Getting ready
How to do it...
How it works...
There's more...
Transferring files via FTP
Getting ready
How to do it...
How it works...
There's more...
9. Testing Our Applications
Introduction
Unit testing with QUnit
Getting ready
How to do it...
How it works...
There's more...
End-to-end testing with Mocha and Zombie.js
Getting ready
How to do it...
How it works...
There's more...
Stubbing and mocking with Sinon
Getting ready
How to do it...
How it works...
There's more...
10. Hosting Our Web Applications
Introduction
Compiling our source with Grunt
Getting ready
How to do it...
How it works...
Preparing deployments for staging and production
Getting ready
How to do it...
How it works...
There's more...
Deploying our application to Heroku
Getting ready
How to do it...
How it works...
Deploying our application to Microsoft Azure
Getting ready
How to do it...
How it works...
There's more...
11. Scripting for DevOps
Introduction
Executing shell commands with exec
Getting ready
How to do it...
How it works...
There's more...
Executing shell commands with spawn
Getting ready
How to do it...
How it works...
There's more...
Copying, moving, and deleting files and directories
Getting ready
How to do it...
How it works...
There's more...
Archiving files and directories
Getting ready
How to do it...
How it works...
Parsing CSV files
Getting ready
How to do it...
How it works...
There's more...
Parsing fixed-width files
Getting ready
How to do it...
How it works...
Padding and aligning output
Getting ready
How to do it...
How it works...
Formatting dates with moment.js
Getting ready
How to do it...
How it works...
There's more...
Formatting numbers with accounting.js
Getting ready
How to do it...
How it works...
There's more...
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜