Programming Phoenix: Productive |> Reliable |> Fast (Paperback)

Chris McCord, Bruce Tate, Jose Valim

  • 出版商: Pragmatic Bookshelf
  • 出版日期: 2016-05-24
  • 定價: $1,160
  • 售價: 9.5$1,102
  • 語言: 英文
  • 頁數: 300
  • 裝訂: Paperback
  • ISBN: 1680501453
  • ISBN-13: 9781680501452
  • 相關分類: Functional-programming
  • 立即出貨 (庫存 < 3)



Don't accept the compromise between fast and beautiful: you can have it all. Phoenix creator Chris McCord, Elixir creator Jose Valim, and award-winning author Bruce Tate walk you through building an application that's fast and reliable. At every step, you'll learn from the Phoenix creators not just what to do, but why. Packed with insider insights, this definitive guide will be your constant companion in your journey from Phoenix novice to expert, as you build the next generation of web applications.

Phoenix is the long-awaited web framework based on Elixir, the highly concurrent language that combines a beautiful syntax with rich metaprogramming. The authors, who developed the earliest production Phoenix applications, will show you how to create code that's easier to write, test, understand, and maintain.

The best way to learn Phoenix is to code, and you'll get to attack some interesting problems. Start working with controllers, views, and templates within the first few pages. Build an in-memory repository, and then back it with an Ecto database layer. Learn to use change sets and constraints that keep readers informed and your database integrity intact. Craft your own interactive application based on the channels API for the real-time, high-performance applications that this ecosystem made famous. Write your own authentication components called plugs, and even learn to use the OTP layer for monitored, reliable services. Organize your code with umbrella projects so you can keep your applications modular and easy to maintain.

This is a book by developers and for developers, and we know how to help you ramp up quickly. Any book can tell you what to do. When you've finished this one, you'll also know why to do it.

What You Need:

To work through this book, you will need a computer capable of running Erlang 17 or better, Elixir 1.1, or better, Phoenix 1.0 or better, and Ecto 1.0 or better. A rudimentary knowledge of Elixir is also highly recommended.


不要在速度和美觀之間妥協:你可以兼得兩者。Phoenix 的創造者 Chris McCord、Elixir 的創造者 Jose Valim 和屢獲殊榮的作者 Bruce Tate 將帶領你建立一個快速且可靠的應用程式。在每一步中,你將從 Phoenix 的創造者那裡學到不僅僅是該做什麼,更重要的是為什麼要這樣做。這本充滿內幕見解的權威指南將成為你從 Phoenix 新手到專家的不離身的伴侶,當你建立下一代網絡應用程式的時候。

Phoenix 是期待已久的基於 Elixir 的網絡框架,Elixir 是一種高度並發的語言,結合了優雅的語法和豐富的元編程。這些作者是最早開發 Phoenix 生產應用程式的人,他們將向你展示如何創建更容易編寫、測試、理解和維護的程式碼。

學習 Phoenix 的最佳方式就是動手寫程式,你將有機會解決一些有趣的問題。在前幾頁中就開始使用控制器、視圖和模板。建立一個內存儲存庫,然後用 Ecto 數據庫層支持它。學習使用變更集和約束,以保持讀者的信息和數據庫的完整性。基於通道 API 創建自己的互動應用程式,用於實時高性能應用程式,這個生態系統因此而聞名。編寫自己的身份驗證組件,稱為插件,甚至學習使用 OTP 層來實現可監控、可靠的服務。使用傘型項目組織你的程式碼,這樣你可以保持應用程式的模塊化和易於維護。


你需要準備一台能運行 Erlang 17 或更高版本、Elixir 1.1 或更高版本、Phoenix 1.0 或更高版本以及 Ecto 1.0 或更高版本的電腦來閱讀本書。同時,強烈建議你具備基本的 Elixir 知識。