Dart 1 for Everyone: Fast, Flexible, Structured Code for the Modern Web (Paperback)
暫譯: Dart 1 為每個人:現代網頁的快速、靈活、結構化程式碼 (平裝本)

Chris Strom

  • 出版商: Pragmatic Bookshelf
  • 出版日期: 2014-12-23
  • 定價: $800
  • 售價: 8.8$704
  • 語言: 英文
  • 頁數: 164
  • 裝訂: Paperback
  • ISBN: 1941222250
  • ISBN-13: 9781941222256
  • 相關分類: JavaScript
  • 立即出貨(限量) (庫存=1)

買這商品的人也買了...

相關主題

商品描述

Psst! You're not stuck with JavaScript anymore. Google's Dart language makes programming for the Web simpler, faster, and more powerful. With version 1.0 in 2013 and an ECMA standard in 2014, Dart is ready to radically change web development for the better. And Dart 1 for Hipsters has got you covered. Completely updated for Dart 1 and the ECMA standard, with new sections on new Dart features like method cascades, event streams, and class constructor syntax, this book wastes no time in immersing you in the finer points of this powerful and surprisingly beautiful language.

Dart has changed significantly since the first printing of this book and Dart 1 for Everyone has kept up. Every chapter has been revised and some chapters have been almost completely rewritten since the first printing. The MVC project chapters dumped the old JavaScript-like event handlers for the sleek new streams interface, and the chapter on testing reflects the extensive changes in testing now available in Dart.

Brand-new sections explore some of Dart's beautiful new features, such as:

Method cascades: Improve code readability dramatically.

Event streams: Simplified event handling, consistent with virtually every other asynchronous interaction in Dart.

Library parts: Yet another way Dart promotes code organization.

New class constructor syntax: Dart supports a nice variety of surprisingly expressive and concise ways to declare constructors.

* Building your own packages: Quickly share your work with the world.

You'll start writing Dart code on page 1, and throughout the book, you'll refactor that code to explore Dart's features: OOP, real libraries and packages, testing, and more. You'll learn how to write beautiful, maintainable application code that just works in all modern browsers. Caution: after reading you may develop an intense attachment to structured code and skinny jeans.

What You Need:You will need the Dart SDK, which is freely available from https://dartlang.org. Most of the book works with Dartium, a preview release of Chrome that is included in the SDK and has the Dart VM built-in. Some of the examples use either the dart2js tool or the Dart Editor to compile Dart down into JavaScript - both are part of the SDK.

商品描述(中文翻譯)

嘘!你不再被 JavaScript 限制了。Google 的 Dart 語言使得網頁編程變得更簡單、更快速且更強大。自 2013 年推出 1.0 版本及 2014 年成為 ECMA 標準以來,Dart 已準備好徹底改變網頁開發。Dart 1 for Hipsters 將為你提供全面的支持。這本書完全更新為 Dart 1 和 ECMA 標準,新增了有關 Dart 新特性的章節,如方法級聯、事件流和類別建構子語法,讓你迅速沉浸於這種強大且驚人美麗的語言的細節中。

自本書首次印刷以來,Dart 已經發生了顯著變化,而 Dart 1 for Everyone 也隨之更新。每一章都經過修訂,有些章節幾乎完全重寫。MVC 專案章節拋棄了舊的類似 JavaScript 的事件處理器,改為流暢的新事件流介面,而測試章節則反映了 Dart 中現有的廣泛測試變化。

全新的章節探討了 Dart 一些美麗的新特性,例如:

方法級聯:顯著提高代碼可讀性。

事件流:簡化事件處理,與 Dart 中幾乎所有其他異步交互一致。

庫部分:Dart 促進代碼組織的又一種方式。

新的類別建構子語法:Dart 支持多種驚人表達力和簡潔的方式來聲明建構子。

* 建立自己的套件:快速與世界分享你的作品。

你將在第 1 頁開始編寫 Dart 代碼,並在整本書中重構這些代碼以探索 Dart 的特性:物件導向編程、真正的庫和套件、測試等等。你將學會如何編寫美觀、可維護的應用程式代碼,這些代碼在所有現代瀏覽器中都能正常運行。警告:閱讀後你可能會對結構化代碼和緊身牛仔褲產生強烈的依戀。

你需要的:你需要 Dart SDK,該 SDK 可從 https://dartlang.org 免費獲得。本書的大部分內容使用 Dartium,這是包含在 SDK 中的 Chrome 預覽版本,內建 Dart VM。有些範例使用 dart2js 工具或 Dart Editor 將 Dart 編譯成 JavaScript - 這兩者都是 SDK 的一部分。