Programming Phoenix Liveview: Interactive Elixir Web Programming Without Writing Any JavaScript

Tate, Bruce, Debenedetto, Sophie

  • 出版商: Pragmatic Bookshelf
  • 出版日期: 2024-07-16
  • 售價: $1,970
  • 貴賓價: 9.5$1,872
  • 語言: 英文
  • 頁數: 370
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1680508210
  • ISBN-13: 9781680508215
  • 相關分類: Functional-programmingJavaScript
  • 尚未上市,歡迎預購

商品描述

The days of the traditional request-response web application are long gone, but you don't have to wade through oceans of JavaScript to build the interactive applications today's users crave. The innovative Phoenix LiveView library empowers you to build applications that are fast and highly interactive, without sacrificing reliability. This definitive guide to LiveView isn't a reference manual. Learn to think in LiveView. Write your code layer by layer, the way the experts do. Explore techniques with experienced teachers to get the best possible performance.

Instead of settling for traditional manuals and tutorials, get insights that can only be learned from experience. Start with the Elixir language techniques that effortlessly marry your client templates and server-side handlers. Design your systems with the right layers in the right places so that your code is easier to understand, change, and support. Explore features like multi-part uploads and learn how to comprehensively test your live views. Roll into advanced techniques to tie your code to other services through the powerful publish-subscribe interface.

LiveView brings the most important programming techniques from the popular Elm and JavaScript React frameworks to Elixir. You'll experience firsthand how to harness that power by working side by side with some of the first LiveView users. You will write your programs to change data on the server, and you'll see how LiveView efficiently detects those changes and reflects them on the web page. Start from scratch, use built-in generators, and craft reusable components. Your single-purpose reducers will transform server data that your renderers can turn into efficient client-side diffs.

Don't settle for knowing how things work. To get the most out of LiveView, you need to know why they work that way. Co-authored by one of the most prolific authors and teachers in all of Elixir, this book is your perfect guide to one of the most important new frameworks of our generation.

What You Need:

Programming Phoenix LiveView uses Phoenix version 1.5, and any Elixir version compatible with it. You will also want PostgreSQL and JavaScript Node.

商品描述(中文翻譯)

傳統的請求-回應網路應用程式的時代已經過去,但你並不需要深入研究大量的JavaScript來建構現代使用者渴望的互動應用程式。創新的Phoenix LiveView函式庫讓你能夠建構快速且高度互動的應用程式,同時不會犧牲可靠性。這本權威指南並非參考手冊,而是教你如何以LiveView的思維來撰寫程式碼,逐層建構,就像專家們所做的一樣。透過與經驗豐富的教師一同探索技巧,以獲得最佳的效能。

不要只滿足於傳統的手冊和教學,從經驗中學習獨特的見解。從Elixir語言技巧開始,輕鬆結合客戶端模板和伺服器端處理程序。在正確的位置上設計適當的層級,使你的程式碼更容易理解、修改和支援。探索多部分上傳等功能,並學習如何全面測試你的即時視圖。進一步學習高級技巧,透過強大的發布-訂閱介面將你的程式碼與其他服務相連接。

LiveView將流行的Elm和JavaScript React框架中最重要的程式設計技巧引入到Elixir中。透過與一些最早使用LiveView的使用者並肩工作,你將第一手體驗如何利用這種力量。你將撰寫程式來改變伺服器上的資料,並看到LiveView如何高效地偵測這些變化並反映在網頁上。從零開始,使用內建的產生器,並創建可重複使用的元件。你的單一目的減少器將轉換伺服器資料,而你的渲染器則能將其轉換為高效的客戶端差異。

不要只滿足於知道事情是如何運作的,要充分了解為什麼它們以這種方式運作。這本書由Elixir中最多產的作者和教師之一共同撰寫,是你對我們這一代最重要的新框架的完美指南。

你需要什麼:
《Programming Phoenix LiveView》使用Phoenix 1.5版本,以及與之相容的任何Elixir版本。你還需要安裝PostgreSQL和JavaScript Node。

作者簡介

Bruce Tate is a programmer and CEO of Groxio where he is helping to redefine how computer languages are taught and learned. He's the author of Seven Languages in Seven Weeks and Programming Phoenix, among other titles and has been involved with Elixir from the very beginning. He's written more than 10 books.

Sophie DeBenedetto is an engineer at GitHub. She is a former graduate of, and teacher at, The Flatiron School and has a love of coding education. She has been an active member of the Elixir community for several years - she is co-organizer of, and speaker at, different Elixir conferences around the world, a podcast host, and a blogger.

作者簡介(中文翻譯)

Bruce Tate是一位程式設計師,也是Groxio的首席執行官,他正在重新定義如何教授和學習電腦語言。他是《七周七語言》和《Programming Phoenix》等書的作者,並從一開始就參與了Elixir的開發。他已經寫了超過10本書。

Sophie DeBenedetto是GitHub的工程師。她曾是Flatiron School的學生和教師,對編碼教育有濃厚的興趣。她多年來一直是Elixir社群的活躍成員,是世界各地不同Elixir會議的共同組織者、演講者,也是一位播客主持人和部落客。