Build Your Own Web Framework in Elixir: Develop lightning-fast web applications using Phoenix and metaprogramming
暫譯: 在 Elixir 中建立自己的網頁框架:使用 Phoenix 和元編程開發超快速的網頁應用程式

Iyengar, Aditya

  • 出版商: Packt Publishing
  • 出版日期: 2023-06-16
  • 售價: $1,600
  • 貴賓價: 9.5$1,520
  • 語言: 英文
  • 頁數: 274
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1801812543
  • ISBN-13: 9781801812542
  • 相關分類: Functional-programming
  • 海外代購書籍(需單獨結帳)

商品描述

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 的進階技術以創建特定領域語言 (Domain-Specific Languages, DSL) 並構建可擴展、可維護的網頁產品

書籍描述

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

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

在本書結束時,您將全面了解 Elixir 組件在 Phoenix 中的實現方式,以及如何利用其強大的功能來構建穩健的網頁應用程式。

您將學到的內容

- 全面了解基於 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

目錄大綱(中文翻譯)


  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