好书推荐 好书速递 排行榜 读书文摘

CoffeeScript

CoffeeScript
作者:Trevor Burnham
副标题:Accelerated JavaScript Development
出版社:Pragmatic Bookshelf
出版年:2011-09
ISBN:9781934356784
行业:计算机
浏览数:29

内容简介

CoffeeScript: Accelerated JavaScript Development offers a thorough introduction to this new language, starting from the basics. You’ll learn to use time-saving features like list comprehensions and splats, organize your code into modules with extensible classes, and see how to deploy your work to multiple environments. Each chapter is example-driven and includes challenging exercises to push your CoffeeScript know-how further.

Through the course of the book, you’ll build a fast-paced multiplayer word game‚ writing both the client (with jQuery) and server (with Node.js) in CoffeeScript. And because the two languages are so deeply intertwined, you’ll deepen your understanding of JavaScript along the way.

CoffeeScript makes it easier than ever to write powerful, standards-compliant JavaScript code. This book lets you start doing it today.

......(更多)

作者简介

Trevor Burnham is a full-stack web developer with a passion for new technologies. He is the founder of DataBraid, a startup developing data analysis and visualization tools that support remote collaboration. When on Twitter, he goes by @TrevorBurnham and @CoffeeScript. When offline, he’s usually in Cambridge, MA.

......(更多)

目录

Foreword

Acknowledgments

Preface

Getting Started

Functions, Scope and Context

Collections and Iteration excerpt

Modules and Classes

Web Interactivity with jQuery

Server-side Apps with Node.js excerpt

Answers to Exercises

Ways of Running CoffeeScript

Cheat Sheet for JavaScripters

Bibliography

......(更多)

读书文摘

c ?= d is shorthand for c = d unless c?.

You don’t have to be John “ JavaScript Ninja” Resig. In fact, if you’re only an amateur JavaScripter, great! You’ll learn a lot about JavaScript as you go through this book.

window.debugMode = document.location.hash.match(/debug/) and console? console.log 'This is the first of many debug-mode outputs' if debugMode

Once you’ve got a jQuery object, you have a massive arsenal of functions at your disposal

......(更多)

猜你喜欢

点击查看