您好,欢迎光临本网站![请登录][注册会员]  
文件名称: CoffeeScript in Action
  所属分类: 网页制作
  开发工具:
  文件大小: 10mb
  下载次数: 0
  上传时间: 2018-09-08
  提 供 者: weixin_********
 详细说明:CoffeeScript是一套JavaScript的转译语言,创建者 Jeremy Ashkenas 戏称它是- JavaScript 的不那么铺张的小兄弟。因为 CoffeeScript 会将类似 Ruby 语法的代码编译成 JavaScript,而且大部分结构都相似,但不同的是 CoffeeScript 拥有更严格的语法。 语法:从 Lisp 系重生CoffeeScript打蛇打到七寸了. 它的最大功绩, 就是将 JavaScript 硬绑的 C/Java 语法抛弃了; 改为采用类似 Ruby/Python 的语法. Ruby/Python 本来就是深受 Lisp 影响的, 和 JavaScript 算是同门师兄, 他们的语法经过了实践考验, 是更适合函数式+动态语言内核的. Good Parts:CoffeeScript 只使用了 JavaScript 的 ”Good Parts(精粹)”, 抛弃了原来 JavaScript 晦涩的,容易出问题的那部分东西. 比如,全局变量声明, with 等. 语法糖和 ECMAScript:CoffeeScript 提供了很多语法糖, 让代码更优雅可读. 去主页仔细看看 CoffeeScript 的语法清单, 就会发现边边角角到处是创新. 这让编程语言真的成了开发者的朋友, 而不是机器的朋友. CoffeeScript 还提供了一个机会, 让你现在就可以使用 ECMAScript 里面的特性. 将来有个更多新特性, CoffeeScript 也有机会在浏览器支持之前实现它们. 程序员面对的是 CoffeeScript 的优雅接口, 它是程序员和JavaScript 之间的中间层, 脏活累活它都干了. CoffeeScript 构建在 JavaScript 上层, 这让人联想起 .Net 和 C#/F#/VB… , 以及 JVM 和 Java/JRuby/Scala… 在 JavaScript 上层做事情的, 不只 CoffeeScript, 还有很多其他的. 比如 Lua 就有通过 LLVM 转换成JavaScript 的实现. 前段时间的 JavaScript PC 模拟器也证明了这种思路的威力. 也许 JavaScript 就是下一个 JVM, 上面会有最适用于各种场景的各种语言. 很多人盼望 JavaScript 成为为未来的唯一语言, 看起来这是不切实际的幻想了.At the heart of JavaScript is a beautiful little language., Unfortunately, that inner beauty is clouded with awkward syntax and structure. CoffeeScript is a new way to write JavaScript, providing Ruby-like readability and a more expressive syntax. It compiles into standard JavaScript and works on all implementations without modification., CoffeeScript in Action is a tutorial that teaches you how, where, and why to use CoffeeScript. It begins by quickly exposing you to CoffeeScript's new, but instantly-familiar syntax. Then, you'll explore programming challenges that illustrate CoffeeScript's unique advantages. Language junkies will especially appreciate how this book takes idioms from other programming languages and shows you how CoffeeScript makes them available in JavaScript., So why you should bother learning a new way to code JavaScript?, CoffeeScript preserves everything you know and love about JavaScript and wraps it in a modern, efficient syntax. It's perfect for complex web programming, including server-side JavaScript executing on Node.js. CoffeeScript also enhances JavaScript's natural Functional Programming features, a big advantage for building high-capacity, fault-tolerant applications. CoffeeScript is fully supported in Rails 3.1, and, via a free plugin, even Microsoft Visual Studio. Plus, it's really cool., WHAT'S INSIDE, Complete coverage of CoffeeScript's syntax and structure, Examples illustrating best practices and patterns for web application development, Introduction to functional programming, Prototype-based OOP, This book is written for developers with exposure to JavaScript. No prior exposure to CoffeeScript is required.
(系统自动生成,下载前可以参看下载内容)

下载文件列表

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.
 相关搜索:
 输入关键字,在本站1000多万海量源码库中尽情搜索: