Build Your Own Web Framework in Elixir: Develop lightning-fast web applications using Phoenix and metaprogramming

Iyengar, Aditya

  • 出版商: Packt Publishing
  • 出版日期: 2023-06-16
  • 售價: $1,490
  • 貴賓價: 9.5$1,416
  • 語言: 英文
  • 頁數: 274
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1801812543
  • ISBN-13: 9781801812542
  • 相關分類: Functional-programming
  • 下單後立即進貨 (約3~4週)

商品描述

Discover the secrets of building high-performing and scalable web applications with clean code using Elixir's metaprogramming

Purchase of the print or Kindle book includes a free PDF eBook

Key Features

  • Explore the various web servers available to build robust web applications
  • Leverage Elixir's powerful Plug module to build a request-response pipeline
  • Explore advanced techniques of Elixir to create Domain-Specific languages and build scalable, maintainable web products

Book Description

Elixir's functional nature and metaprogramming capabilities make it an ideal language for building web frameworks, with Phoenix being the most ubiquitous framework in the Elixir ecosystem and a popular choice for companies seeking scalable web-based products. With an ever-increasing demand for Elixir engineers, developers can accelerate their careers by learning Elixir and the Phoenix web framework.

With Build Your Own Web Framework in Elixir, you'll start by exploring the fundamental concepts of web development using Elixir. You'll learn how to build a robust web server and create a router to direct incoming requests to the correct controller. Then, you'll learn to dispatch requests to controllers to respond with clean, semantic HTML, and explore the power of Domain-Specific Languages (DSL) and metaprogramming in Elixir. You'll develop a deep understanding of Elixir's unique syntax and semantics, allowing you to optimize your code for performance and maintainability. Finally, you'll discover how to effectively test each component of your application for accuracy and performance.

By the end of this book, you'll have a thorough understanding of how Elixir components are implemented within Phoenix, and how to leverage its powerful features to build robust web applications.

What you will learn

  • Get a comprehensive understanding of the Phoenix framework built on Elixir
  • Use metaprogramming to optimize your Elixir code and create high-performance web applications
  • Explore web development fundamentals including the principles of HTTP and HTML
  • Employ Elixir's templating engine to dispatch requests to a controller and respond with dynamically generated HTML
  • Improve the scalability and responsiveness of your web server by using OTP constructs
  • Streamline your routing logic using error handling

Who this book is for

This book is for web developers seeking to deepen their understanding of Elixir's role in the Phoenix framework. Basic familiarity with Elixir is a must.

商品描述(中文翻譯)

發現使用 Elixir 的元編程來建構高效能且可擴展的網頁應用程式的秘訣。

購買印刷版或 Kindle 版本的書籍將包含免費的 PDF 電子書。

主要特點:

- 探索各種可用的網頁伺服器以建構強大的網頁應用程式。
- 利用 Elixir 強大的 Plug 模組建立請求-回應流程。
- 探索 Elixir 的進階技巧,創建特定領域語言並建構可擴展且易於維護的網頁產品。

書籍描述:

Elixir 的函數式特性和元編程能力使其成為建構網頁框架的理想語言,而 Phoenix 則是 Elixir 生態系統中最普及的框架,也是企業尋求可擴展網頁產品的熱門選擇。隨著對 Elixir 工程師的需求不斷增加,開發人員可以通過學習 Elixir 和 Phoenix 網頁框架來加快他們的職業發展。

在《使用 Elixir 建構自己的網頁框架》中,您將首先探索使用 Elixir 進行網頁開發的基本概念。您將學習如何建立一個強大的網頁伺服器並創建一個路由器來將請求導向正確的控制器。然後,您將學習將請求分派給控制器以回應乾淨、語義化的 HTML,並探索在 Elixir 中使用特定領域語言(DSL)和元編程的威力。您將深入了解 Elixir 獨特的語法和語義,使您能夠優化代碼以提高性能和可維護性。最後,您將發現如何有效地測試應用程式的每個組件以確保準確性和性能。

通過閱讀本書,您將全面了解 Phoenix 框架在 Elixir 中的實現方式,並利用其強大功能建構強大的網頁應用程式。

您將學到什麼:

- 全面了解基於 Elixir 的 Phoenix 框架。
- 使用元編程優化您的 Elixir 代碼並建立高效能的網頁應用程式。
- 探索網頁開發基礎,包括 HTTP 和 HTML 的原則。
- 使用 Elixir 的模板引擎將請求分派給控制器並回應動態生成的 HTML。
- 通過使用 OTP 架構提高您的網頁伺服器的可擴展性和響應能力。
- 使用錯誤處理簡化您的路由邏輯。

本書適合尋求加深對 Elixir 在 Phoenix 框架中角色的網頁開發人員。基本熟悉 Elixir 是必要的。

目錄大綱

  1. Introducing the Cowboy Web Server
  2. Building an HTTP Server in Elixir
  3. Defining Web Application Specifications Using Plug
  4. Working with Controllers
  5. Adding Controller Plugs and Action Fallback
  6. Working with HTML and Embedded Elixir
  7. Working with Views
  8. Metaprogramming- Code That Writes Code
  9. Controller and View DSL
  10. Building the Router DSL

目錄大綱(中文翻譯)

- 介紹 Cowboy Web Server
- 在 Elixir 中建立 HTTP 伺服器
- 使用 Plug 定義網路應用程式規格
- 處理控制器
- 添加控制器插件和動作回退
- 使用 HTML 和嵌入式 Elixir
- 處理視圖
- 元程式設計 - 寫程式碼的程式碼
- 控制器和視圖 DSL
- 建立路由器 DSL