TypeScript的发展历程### AltJS CoffeeScript ASM.JS Jangaroo FINALLY THE BEST OF TWO WORLDS BJECTIVE-J TypeScript DART Pyjs FundScrip HAXE ## TypeScript ●JS + 静态类型 ● 工具完善 ● 贴合语言标准 ## TS和伙伴们 ● 动态类型语法糖:CoffeeScript ●静态类型新语言: ●静态类型新语言: BuckleScript ●渐进定型: Flow Type ## CoffeeScript ●纯语法糖,动态类型 ● 上手简单 ● 工具不良 ● 与新标准有冲突 ## BuckleScript ● 脱胎于OCaml ●类型系统强大 ●编译高度优化 ●语义语法疏远,上手难 $ ^{*} $ ## Flow Type ● JS+类型标注 ● 工具相对完善 ● 上手容易 上手容易 ● 与TS设计相似 $ ^{*} $ |比较|类型系统|难度|工具链| |---|---|---|---| |CoffeeScript|动态|低|差| |BuckleScript|很强|高|较好| |FlowType|强|较低|较好| |TypeScript|强|低|很好| ## TS发展史 ● 简单易用,不求完美 ●原汁原味,贴合JS ●从简单到强大 ## TS发展史 ![Imag0 码力 | 64 页 | 6.17 MB | 2 年前3
Why I Was Wrong About
TypeScriptCompile to JavaScript tools ## • There are a lot · 345 • Source: https://github.com/jashkenas/coffeescript/wiki/List-of-languages-that-compile-to-JS • Ruby, Python, Erlang, Java, Scala, C#, F#, Lisp, com/jashkenas/coffeescript/wiki/List-of-languages-that-compile-to-JS • Ruby, Python, Erlang, Java, Scala, C#, F#, Lisp, Scheme, Haskell, Smalltalk, C, C++, Basic, Go, PHP, and way more. |CoffeeScript|TABLE OF OF CONTENTS|TRY COFFEESCRIPT|ANNOTATED SOURCE| |---|---|---|---| CoffeeScript is a little language that compiles into JavaScript. Underneath that awkward Java-esque patina, JavaScript has always had a0 码力 | 61 页 | 3.65 MB | 2 年前3
Web的未来
新技术和新语言带来的改变输出:'top-level' ## CoffeeScript 2009, 4年前 Jeremy Ashkenas ## CoffeeScript ## CoffeeScript ## 受 Ruby 和 Python 影响较多 - 简洁、语法清晰 • 缩进表示 - 变量声明和作用域 • 支持类 ## CoffeeScript #coffee alert "I knew elvis != "undefined" && elvis != null) { alert("I knew it"); } ## CoffeeScript math = root: Math.sqrt square: square cube: (x) -> x * square x math = { root: Math.sqrt http://try.dartlang.org/ TypeScript http://www.typescriptlang.org/Playground/ • CoffeeScript http://coffeescript.org/ CoffeeScript等编译器就是 JS 实现的,可以在线直接编译。Dart 有所不同,dart2js 编译器是 Dart 语言实现的,然后 dart2js 自己把自己编译成了0 码力 | 91 页 | 3.44 MB | 2 年前3
Learning GulpExamples ..... 36 Using Browserify with Vanilla Javascript ..... 36 Using Browserify with Coffeescript ..... 36 Chapter 15: Using file filters ..... 38 Examples ..... 38 Creating Images, JS, function() { // compile sass css }); gulp.task('two', function() { // compile coffeescript }); // task three will execute only after tasks one and two have been completed // note that insertGlobals: true }) .pipe(gulp.dest[-]./build/'); }); ## Using Browserify with Coffeescript First install gulp and browserify via npm i gulp gulp-coffeeify. This will install browserify0 码力 | 45 页 | 977.19 KB | 2 年前3
Laravel 5.0 Documentation
fear no more. Elixir makes it a cinch to get started using Gulp to compile your Less, Sass, and CoffeeScript. It can even run your tests for you! For more information on Elixir, check out the full documentation yml, bower.json and other similar tooling configuration files. You may move your Sass, Less, or CoffeeScript to any location you wish. The resources/assets directory could be a good default location. ## JavaScript, CSS, etc.). The resources directory contains your views, raw assets (LESS, SASS, CoffeeScript), and "language" files. The storage directory contains compiled Blade templates, file0 码力 | 242 页 | 1.44 MB | 2 年前3
Objeet Oriented Python
TutorialParadigmProcedural C, C++, C#, Objective-C, Java, Go Scripting CoffeeScript, JavaScript, Python, Perl, Php, Ruby Functional Clojure, Erlang, Haskell Class Static C, C++, C#, Objective-C, Java, Go, Haskell, Scala Dynamic CoffeeScript, JavaScript, Python, Perl, Php, Ruby, Clojure, Erlang Type Class Python, Ruby, Clojure, Erlang, Haskell, Scala Weak C, C++, Objective-C, CoffeeScript, JavaScript, Perl, Php Memory Class Managed Othe 0 码力 | 111 页 | 3.32 MB | 2 年前3
Nim - the first high performance language with full support for hot codereloading at runtimeof C, elegance of Python, flexibility of Perl - Peter Munch-Ellingsen • Nim is to C++ as CoffeeScript is to JavaScript ■ cjhanks, hackernews Apr 18, 2017 ## Comparison with others • D, Rust, Jai always thought was a brilliant idea that I never get to use. It's a shame. Nim is to C/C++ as CoffeeScript is to JavaScript. A highly extensible template language atop a portable language with libraries0 码力 | 63 页 | 2.91 MB | 1 年前3
Laravel 5.1 中文文档为 SQLite 数据库存放目录; public 目录包含了前端控制器和资源文件(图片、js、css 等); resources 目录包含了视图文件及原生资源文件(LESS、SASS、CoffeeScript),以及本地化文件; storage 目录包含了编译过的 Blade 模板、基于文件的 session、文件缓存,以及其它由框架生成的文件,该文件夹被隔离成 app、framework 和 文件,例如编译 ECMAScript 6, CoffeeScript, Browserify,最小化以及简单连接原生 JavaScript 文件。 ### 5.1 CoffeeScript coffee 方法用于将 CoffeeScript 编译成原生 JavaScript。该方法接收关联到 resources/assets/coffee 目录的 CoffeeScript 文件的一个字符串或数组并在 public/js0 码力 | 307 页 | 3.46 MB | 2 年前3
electron中文教程
require('electron').remote; console.log(remote.app.版本); 如果想运行应用,参考 Run your app。 ## 解构任务 如果你使用的是CoffeeScript或Babel,你可以使用destructuring assignment来让使用内置模块更简单: const {app, BrowserWindow} = require('electron'); 中的接口和数据类型,所以希望你能熟悉它们。Chromium 中的重要接口和数据结构就是一篇不错的入门文档,里面提到了一些特殊类型、域内类型(退出作用域时自动释放内存)、日志机制,等等。 ## CoffeeScript 对于 CoffeeScript,我们遵循 GitHub 的编码规范及以下规则: - 文件不要以换行符结尾,我们要遵循 Google 的编码规范。 - 文件名使用 - 而不是 _ 来连接单词,比如 file-name0 码力 | 203 页 | 2.72 MB | 2 年前3
Laravel 5.2 中文文档SQLite 数据库存放目录; public 目录包含了前端控制器和资源文件(图片、JavaScript、CSS 等); resources 目录包含了视图文件及原生资源文件(LESS、SASS、CoffeeScript),以及本地化文件; storage 目录包含了编译过的 Blade 模板、基于文件的 session、文件缓存,以及其它由框架生成的文件,该文件夹被细分为成 app、framework 文件,例如编译 ECMAScript 6,CoffeeScript,Browserify,最小化以及简单连接原生 JavaScript 文件。 ### 5.1 CoffeeScript coffee 方法用于将 CoffeeScript 编译成原生 JavaScript。该方法接收关联到 resources/assets/coffee 目录的 CoffeeScript 文件的一个字符串或数组并在 public/js0 码力 | 377 页 | 4.56 MB | 2 年前3共 32 条- 1
- 2
- 3
- 4













